This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[SOLVED] yet another Wine question

carmar

Tue Feb 18, 2020 2:19:36 am

Basically, I'm trying to see if there is a way to get back to the default Wine install for Zorin - where the program menu Wine item shows the Winecfg (and one or two items I can't recall).

Background:
Recently, when I saw Aravisian's post (viewtopic.php?f=5&t=15352&p=69240), I decided to update my Wine. I decided to follow the steps here (https://askubuntu.com/questions/15551/h ... completely) before following his steps. I noticed two things:
1. Wine no longer lists in the programs menu (as it used to do in the screenshot).
2. One of my games, Tiberian Sun, barely shows the mouse pointer and does not show any sub menus when I click on the selections. I tried the "automatically capture mouse.." and "windowed" options under winecfg but neither helped. My other games run fine. I'm not certain if I screwed something up.

Fyi, when I first got Wine, it was from the Software Manager. The Wine menu item shown in screenshot only created when I happened to install another game directly rather than using my usual fare of PlayOnLinux. When I go into it, all I see are shortcuts created by the game, not the usual Winecfg shortcut that used to see in the past.

Aravisian

Tue Feb 18, 2020 7:57:23 am

carmar wrote:Basically, I'm trying to see if there is a way to get back to the default Wine install for Zorin - where the program menu Wine item shows the Winecfg (and one or two items I can't recall).

Background:
Recently, when I saw Aravisian's post (viewtopic.php?f=5&t=15352&p=69240), I decided to update my Wine. I decided to follow the steps here (https://askubuntu.com/questions/15551/h ... completely) before following his steps. I noticed two things:
1. Wine no longer lists in the programs menu (as it used to do in the screenshot).
2. One of my games, Tiberian Sun, barely shows the mouse pointer and does not show any sub menus when I click on the selections. I tried the "automatically capture mouse.." and "windowed" options under winecfg but neither helped. My other games run fine. I'm not certain if I screwed something up.

Fyi, when I first got Wine, it was from the Software Manager. The Wine menu item shown in screenshot only created when I happened to install another game directly rather than using my usual fare of PlayOnLinux. When I go into it, all I see are shortcuts created by the game, not the usual Winecfg shortcut that used to see in the past.

Carmar, had you removed the previous traces of Wine from your system before installing the latest version?
https://wiki.winehq.org/Ubuntu

carmar

Tue Feb 18, 2020 3:45:13 pm

Probably not. I did a couple of runs. The first time I tried removing was using Synaptic. Second time was the suggested steps in the askubuntu link in my first post. I also missed the "sudo apt-get --purge remove wine" step the first time around.

So, should I do the following steps?
1. Remove current Wine using askubuntu method.
2. Follow steps in your posted link (using ubuntu 18.04 repository, I believe that is Zorin, right?)
3. Install stable branch package.

Aravisian

Tue Feb 18, 2020 10:14:53 pm

carmar wrote:Probably not. I did a couple of runs. The first time I tried removing was using Synaptic. Second time was the suggested steps in the askubuntu link in my first post. I also missed the "sudo apt-get --purge remove wine" step the first time around.

So, should I do the following steps?
1. Remove current Wine using askubuntu method.
2. Follow steps in your posted link (using ubuntu 18.04 repository, I believe that is Zorin, right?)
3. Install stable branch package.

That is what I would try, first. In the past, I was always successful doing that even though I always left essential portions of the .wine folder in home folder. The reason I left most of what was in Home Folder was because that preserved programs and settings for them.
You'll want to immediately ensure you install gecko and such after.

carmar

Wed Feb 19, 2020 1:08:58 am

Thanks.

What I did:
1. Used Synaptic to uninstall all Wine programs, Playonlinux, Windows App Support.
2.
Code:
sudo apt-get remove wine
rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm
sudo apt-get remove --purge wine
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove

3.
Code:
sudo dpkg --add-architecture i386
sudo apt-get -y install software-properties-common wget
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt update
sudo apt install --install-recommends winehq-stable


Synaptic now shows: (all 5.0.0~bionic) wine-stable, wine-stable-amd6, wine-stable-i386:i386, winehq-stable

Still no Wine in the Program menu.

Aravisian

Wed Feb 19, 2020 1:20:20 am

carmar wrote:Thanks.

What I did:
1. Used Synaptic to uninstall all Wine programs, Playonlinux, Windows App Support.
2.
Code:
sudo apt-get remove wine
rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm
sudo apt-get remove --purge wine
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove

3.
Code:
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt update
sudo apt install --install-recommends winehq-stable


Synaptic now shows: (all 5.0.0~bionic) wine-stable, wine-stable-amd6, wine-stable-i386:i386, winehq-stable

Still no Wine in the Program menu.

Is Wine functioning properly otherwise? because as long as it is, we can add it to the Menu.
First. check if it is already available, but not showing/. You can use Menulibre or Alacarte
Open one of the above Menu Editors and check if it is present, but Unchecked.

carmar

Wed Feb 19, 2020 1:53:06 am

I see. It seems to show listed.

Aravisian

Wed Feb 19, 2020 1:56:40 am

carmar wrote:I see. It seems to show listed.

Is "hide from menus" checked?

carmar

Wed Feb 19, 2020 2:18:04 am

I unchecked "hide from menus" and saved. Wine now shows under the Others on the menu.
Tried Tiberian Sun and it still doesn't show the cursor but Wine is functioning fine (it downloaded Mono and Gecko as well).
Thank you.

Aravisian

Wed Feb 19, 2020 2:51:19 am

carmar wrote:I unchecked "hide from menus" and saved. Wine now shows under the Others on the menu.
Tried Tiberian Sun and it still doesn't show the cursor but Wine is functioning fine (it downloaded Mono and Gecko as well).
Thank you.

So, mostly solved- but mouse not grabbing remains.
Would any of these patches help?
https://answers.ea.com/t5/C-C-The-Ultim ... -p/6545286

carmar

Wed Feb 19, 2020 3:44:58 am

Thank you. You've helped a lot already, so if this game's issue doesn't get resolved, I still consider it a success.

Continuing on that issue, I installed the Tiberian Sun patch listed there. With the patch, the cursor now shows when hovering about the main screen but clicking on a menu doesn't display any new sub-window. Same as what these people experience: https://answers.ea.com/t5/C-C-The-Ultim ... -p/1130506
I tried their proposed fixes, really came down to only two that I could try. No luck.

Strange though that this game ran fine when I installed Wine using the Software Manager. Perhaps it was the Wine version, since that one was version 4 or version 3.

PS - Incidentally, I was playing around with wine's configuration (between "automatically capture mouse" and "windowed mode"), and at one point, after winecfg popped up the configuration window, it gave me the following message: "002c:fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet"

Aravisian

Wed Feb 19, 2020 3:51:55 am

carmar wrote:Thank you. You've helped a lot already, so if this game's issue doesn't get resolved, I still consider it a success.

Continuing on that issue, I installed the Tiberian Sun patch listed there. With the patch, the cursor now shows when hovering about the main screen but clicking on a menu doesn't display any new sub-window. Same as what these people experience: https://answers.ea.com/t5/C-C-The-Ultim ... -p/1130506
I tried their proposed fixes, really came down to only two that I could try. No luck.

Strange though that this game ran fine when I installed Wine using the Software Manager. Perhaps it was the Wine version, since that one was version 4 or version 3.

PS - Incidentally, I was playing around with wine's configuration (between "automatically capture mouse" and "windowed mode"), and at one point, after winecfg popped up the configuration window, it gave me the following message: "002c:fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet"

that would be Wine 4. I wonder if you rolled back to Wine 4 if that may help, I am not sure.
Wine 5 is still a bit new...

carmar

Wed Feb 19, 2020 5:59:45 am

Any suggestion on how I can install Wine 4? The instructions I find online end up installing version 5.

I also tried, "apt-get install wine=4" but that gave me the following messages:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

voltairea

Wed Feb 19, 2020 6:08:08 am

carmar wrote:Any suggestion on how I can install Wine 4? The instructions I find online end up installing version 5.

I also tried, "apt-get install wine=4" but that gave me the following messages:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?


You need root permission to install anything on your device. So that just put "sudo" in the first part.
Code:
sudo apt-get install wine=4

carmar

Wed Feb 19, 2020 6:19:34 am

Thanks. I had used sudo earlier in the terminal and thought I still had access. Used sudo and got: E: Version '4' for 'wine' was not found

voltairea

Wed Feb 19, 2020 6:59:43 am

carmar wrote:Thanks. I had used sudo earlier in the terminal and thought I still had access. Used sudo and got: E: Version '4' for 'wine' was not found

I didn't read all posts, so I don't know all story. But if you want to install Wine 4, you better download .deb installation file and install it directly.
You can download here any version of wine you need:
https://pkgs.org/download/wine

Aravisian

Wed Feb 19, 2020 7:07:09 am

voltairea wrote:
carmar wrote:Thanks. I had used sudo earlier in the terminal and thought I still had access. Used sudo and got: E: Version '4' for 'wine' was not found

I didn't read all posts, so I don't know all story. But if you want to install Wine 4, you better download .deb installation file and install it directly.
You can download here any version of wine you need:
https://pkgs.org/download/wine

I second this recommendation.
https://ubuntu.pkgs.org/18.04/winehq-am ... 4.deb.html

I had just tried as great variety of the terminal routes and got nowhere. And ended up having to remove Wine 5.2 from my machine twice.

carmar

Thu Feb 20, 2020 12:09:55 am

Thanks to you both.
I downloaded https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb (1.9 kB)
Double-clicked and it gave me the install option under Software Manager, as I get with any deb.
When I click Install, it goes from 0 to 100% and then shows Install again. Nothing gets installed. Perhaps the download size 0 bytes?

PS - I ran steps 1-4 of "Install Howto" (https://ubuntu.pkgs.org/18.04/winehq-am ... 4.deb.html). Didn't run step 5 because I have a feeling that will again install Wine 5 instead of Wine 4.

Aravisian

Thu Feb 20, 2020 5:50:07 am

carmar wrote:Thanks to you both.
I downloaded https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb (1.9 kB)
Double-clicked and it gave me the install option under Software Manager, as I get with any deb.
When I click Install, it goes from 0 to 100% and then shows Install again. Nothing gets installed. Perhaps the download size 0 bytes?

PS - I ran steps 1-4 of "Install Howto" (https://ubuntu.pkgs.org/18.04/winehq-am ... 4.deb.html). Didn't run step 5 because I have a feeling that will again install Wine 5 instead of Wine 4.

Odd that it says DL size zero bytes. Maybe because the installer did not do the download?
I would download the .deb file again, just to be sure,
https://ubuntu.pkgs.org/18.04/winehq-am ... 4.deb.html
then open a terminal,
Code:
cd ~/Downloads

Then enter
Code:
sudo dpkg -i winehq-devel_4.21~bionic_amd64.deb

carmar

Fri Feb 21, 2020 12:04:34 am

Thanks.

I got error messages:
************
Selecting previously unselected package winehq-devel.
(Reading database ... 298735 files and directories currently installed.)
Preparing to unpack winehq-devel_4.21~bionic_amd64.deb ...
Unpacking winehq-devel (4.21~bionic) ...
dpkg: dependency problems prevent configuration of winehq-devel:
winehq-devel depends on wine-devel (= 4.21~bionic); however:
Package wine-devel is not installed.

dpkg: error processing package winehq-devel (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2+zorin1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
winehq-devel
************

I downloaded the package from: https://ubuntu.pkgs.org/18.04/winehq-am ... 4.deb.html
ran:
Code:
sudo dpkg -i wine-devel_4.21~bionic_amd64.deb


more errors:
************
Selecting previously unselected package wine-devel.
(Reading database ... 298799 files and directories currently installed.)
Preparing to unpack wine-devel_4.21~bionic_amd64.deb ...
Unpacking wine-devel (4.21~bionic) ...
dpkg: dependency problems prevent configuration of wine-devel:
wine-devel depends on wine-devel-amd64 (= 4.21~bionic); however:
Package wine-devel-amd64 is not installed.
wine-devel depends on wine-devel-i386 (= 4.21~bionic); however:
Package wine-devel-i386 is not installed.

dpkg: error processing package wine-devel (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
wine-devel
************

Then downloaded from: https://ubuntu.pkgs.org/18.04/winehq-i3 ... 6.deb.html

more errors:
************
Selecting previously unselected package wine-devel-i386:i386.
(Reading database ... 298941 files and directories currently installed.)
Preparing to unpack wine-devel-i386_4.21~bionic_i386.deb ...
Unpacking wine-devel-i386:i386 (4.21~bionic) ...
dpkg: dependency problems prevent configuration of wine-devel-i386:i386:
wine-devel-i386:i386 depends on libasound2 (>= 1.0.16).
wine-devel-i386:i386 depends on libfaudio0.
wine-devel-i386:i386 depends on libglib2.0-0 (>= 2.12.0); however:
Package libglib2.0-0:i386 is not installed.
wine-devel-i386:i386 depends on libgphoto2-6 (>= 2.5.10); however:
wine-devel-i386:i386 depends on libgphoto2-port12 (>= 2.5.10); however:
wine-devel-i386:i386 depends on libgstreamer-plugins-base1.0-0 (>= 1.0.0); however:
wine-devel-i386:i386 depends on libgstreamer1.0-0 (>= 1.4.0); however:
wine-devel-i386:i386 depends on liblcms2-2 (>= 2.2+git20110628); however:
wine-devel-i386:i386 depends on libldap-2.4-2 (>= 2.4.7); however:
wine-devel-i386:i386 depends on libmpg123-0 (>= 1.13.7); however:
wine-devel-i386:i386 depends on libopenal1 (>= 1.14); however:
wine-devel-i386:i386 depends on libpcap0.8 (>= 0.9.8); however:
wine-devel-i386:i386 depends on libpulse0 (>= 0.99.1); however:
Package libpulse0:i386 is not installed.
wine-devel-i386:i386 depends on libx11-6; however:
wine-devel-i386:i386 depends on libxext6; however:
Package libxext6:i386 is not installed.
wine-devel-i386:i386 depends on libxml2 (>= 2.9.0); however:
wine-devel-i386:i386 depends on ocl-icd-libopencl1 | libopencl1; however:
wine-devel-i386:i386 depends on ocl-icd-libopencl1 (>= 1.0) | libopencl-1.1-1; however:
wine-devel-i386:i386 depends on libasound2-plugins; however:

dpkg: error processing package wine-devel-i386:i386 (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.28-0ubuntu1+zorin4) ...
Errors were encountered while processing:
wine-devel-i386:i386
************

Is it possible to get all the dependencies in one package?

Update: I noticed something (see attached screenshot). Selected "show updates". Software updater lists a bunch of updates, with 4 of them on Wine. All 4 were about updating to Version 5.2. I can uncheck those 4 and proceed but I thought I'd see what you guys say first. I checked Synaptic and if I try to select install dependencies, it still says it will upgrade the packages.

Aravisian

Fri Feb 21, 2020 2:27:07 am

Yes, the dependency rabbit hole... Usually what I do is I install a few of the dependencies, then in the same terminal, I try
Code:
sudo apt-get --fix-broken install

If you do not install enough of the missing dependencies, it will opt for the easier approach of REMOVING what you are trying to install instead of downloading and installing the dependencies so READ YOUR TERMINAL OUTPUT before hitting "y" to anything.

Another option would be for you to go ahead and Up it to 5.2and install those missing updates you just found and see if they help... But then if not, we will be back to trying to get 4 installed again. I do not understand why Wine doesn't repo their versions like other folk, so that you can install the version that works best.

carmar

Fri Feb 21, 2020 3:11:07 am

There were a lot of dependencies, dpkg itself had 4. I decided one game isn't worth it and went with the option to just upgrade. Software updater then decided it couldn't help. Used Synaptic to update. Ran the game. Lo and behold, after mono and gecko installed, the sub-menus came up. Runs very sluggish but that is a problem for another day.

Thanks for your help in making this through.

Aravisian

Fri Feb 21, 2020 7:09:17 pm

From what I have read, it will always be sluggish running a game in a virtual environment or on Wine unless you are running just the Top o' the line machine. I do not know from personal experience on that.

Swarfendor437

Fri Feb 21, 2020 8:03:27 pm

Also, just a reminder, Wine only works with 32-bit environments - any apps/games written for Windows 64-bit will not run ... period. ;)

carmar

Fri Feb 21, 2020 10:40:27 pm

Thanks. I suspected as much since over the months I found that 64 bit installs didn't do well in PlayOnLinux even though it asks separately for 64 bit. I didn't worry about it since I don't need all my games working, just a few are enough to keep me happy.
Besides, while my desktop can handle them, my laptop will die if I even try to install one of my higher end games. Always helps to have hardware as the more restricting constraint. :lol:

carmar

Mon Jun 01, 2020 4:03:20 pm

I finally found the solution to the Tiberian Sun part of this topic. Use installer here, which is already patched for Wine: https://cnc-comm.com/tiberian-sun/downl ... /installer
Since I already have all the installation files, I didn't use the installer to download further, I did minimal install and then copied the movies and music files (.mix files) over to where I installed the game. Works fine now.