Page 1 of 2

[SOLVED] Update has broken Wine

Posted: Mon May 06, 2019 10:51 am
by Terryphi
Since I accepted upgrade to wine-stable 4.0 in Update Manager wine no longer works.

Trying to run a program on wine produces this error:

Code: Select all

Command 'wine' not found, but can be installed with:

sudo apt install wine-development
sudo apt install wine-stable
Running sudo apt install wine-stable confirms that wine is already installed.

What is the solution to this?

Re: Update has broken Wine

Posted: Mon May 06, 2019 11:01 am
by Terryphi
This doesn't look right. Package Manager says that I now have these installed:
wine-stable
wine-stable-amd64
wine-stable-i386:i386
wine1.6
wine32:i386
wine 64

Re: Update has broken Wine

Posted: Mon May 06, 2019 12:13 pm
by Flemur
Terryphi wrote:
Mon May 06, 2019 11:01 am
This doesn't look right. Package Manager says that I now have these installed:
wine-stable
wine-stable-amd64
wine-stable-i386:i386
wine1.6
wine32:i386
wine 64
Is that before of after the "'wine' not found" error?

What do

Code: Select all

which wine 
wine --version
dpkg -l "*wine*" | grep ii
return?

The fix is probably - depending on what the problem really is - to PURGE ("completely remove") all the wine packages and reinstall the version you want.

Re: Update has broken Wine

Posted: Mon May 06, 2019 1:05 pm
by Terryphi
Flemur,

That is after the "wine not found" error. There is now a wine directory in /opt but not in /usr/lib. I suspect that this has resulted in a symlink error(s)/ omission(s) in the update package. I am checking some of them. For example, /etc/alternatives/wine is broken because it has a symlink to /usr/bin/wine-stable which does not exist!
If the package is broken a reinstall would solve nothing.

Re: Update has broken Wine

Posted: Mon May 06, 2019 1:27 pm
by Terryphi
Flemur,
This is the only one that recognises that wine is installed:

Code: Select all

~ $ dpkg -l "*wine*" | grep ii
ii  wine-stable           4.0~bionic   amd64        WINE Is Not An Emulator - runs MS Windows programs
ii  wine-stable-amd64     4.0~bionic   amd64        WINE Is Not An Emulator - runs MS Windows programs
ii  wine-stable-i386:i386 4.0~bionic   i386         WINE Is Not An Emulator - runs MS Windows programs
Not recognised with:

Code: Select all

 ~ $ wine --version

Command 'wine' not found, but can be installed with:

sudo apt install wine-development
sudo apt install wine-stable

Re: Update has broken Wine

Posted: Tue May 07, 2019 3:12 am
by Terryphi
I used Timeshift to roll back and then install updates except wine. That fixed it. I have blacklisted wine in Update Manager as the update is clearly broken.

Re: [TEMPORARY SOLUTION] Update has broken Wine

Posted: Tue May 07, 2019 7:09 am
by clem
Hi Terry,

I'm not sure it's "broken" per se, I think it's incomplete. The Ubuntu packaging of WINE in 18.04 is a mess. The upstream version from WineHQ deals with 32-bit dependencies much better, it specifies the mimetype handler (missing in Ubuntu) and it's more up to date. Some of its content is in "winehq-stable" though and you're missing that. We also added missing desktop entries in "wine-desktop-files". Can you upgrade again and install "wine-installer" to make sure the installation is complete?

If you can, I'd also like a "dpkg -l | grep wine" before and after the upgrade.

Re: [TEMPORARY SOLUTION] Update has broken Wine

Posted: Tue May 07, 2019 9:09 am
by Terryphi
Hi Clem,
As you suggested I updated wine and then ran

Code: Select all

sudo apt install wine installer
Updated wine now works as expected.

BEFORE UPDATE OF WINE

Code: Select all

~ $ dpkg -l | grep wine
ii  libwine:amd64                                3.0-1ubuntu1                                amd64        Windows API implementation - library
ii  libwine:i386                                 3.0-1ubuntu1                                i386         Windows API implementation - library
ii  wine-stable                                  3.0-1ubuntu1                                all          Windows API implementation - standard suite
ii  wine1.6                                      1:1.8.4ubuntu1                              amd64        Windows API implementation (transitional package)
ii  wine32:i386                                  3.0-1ubuntu1                                i386         Windows API implementation - 32-bit binary loader
ii  wine64                                       3.0-1ubuntu1                                amd64        Windows API implementation - 64-bit binary loader
AFTER UPDATE OF WINE

Code: Select all

dpkg -l | grep wine
ii  libwine:amd64                                3.0-1ubuntu1                                amd64        Windows API implementation - library
ii  libwine:i386                                 3.0-1ubuntu1                                i386         Windows API implementation - library
ii  wine-desktop-files                           4.0.5                                       all          Microsoft Windows Compatibility Layer
ii  wine-installer                               4.0.5                                       all          Microsoft Windows Compatibility Layer
ii  wine-stable                                  4.0~bionic                                  amd64        WINE Is Not An Emulator - runs MS Windows programs
ii  wine-stable-amd64                            4.0~bionic                                  amd64        WINE Is Not An Emulator - runs MS Windows programs
ii  wine-stable-i386:i386                        4.0~bionic                                  i386         WINE Is Not An Emulator - runs MS Windows programs
ii  wine32:i386                                  3.0-1ubuntu1                                i386         Windows API implementation - 32-bit binary loader
ii  wine64                                       3.0-1ubuntu1                                amd64        Windows API implementation - 64-bit binary loader
ii  winehq-stable                                4.0~bionic                                  amd64        WINE Is Not An Emulator - runs MS Windows programs
Thanks for looking at this.

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 9:26 am
by clem
Thanks Terry,

We might need to add some conflicts/replaces clauses in wine-installer to get rid of libwine, wine32 and wine64.

I can't really automate the process of installing wine-installer. Ubuntu used the name wine-stable for the top package, and that name is already used upstream (not only that, it conflicts with the previously named "wine" metapackage..).

I'll clean this up and update the release notes.

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 11:21 am
by Summerof69
FWIW the wine update in question also uninstalls playonlinux. I had to roll back and blacklist the wine update.

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 12:39 pm
by clem
I can't reproduce the playonlinux removal. I tested both 32 and 64 bit, there's no conflict with playonlinux, are you using a PPA version or something?

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 12:44 pm
by Summerof69
clem wrote:
Tue May 07, 2019 12:39 pm
I can't reproduce the playonlinux removal. I tested both 32 and 64 bit, there's no conflict with playonlinux, are you using a PPA version or something?
Hi Clem. No I don't have any ppa's at all.
I installed POL after installation of Linux Mint 19 64 bit, Cinnamon, and the necessary wine got installed alongside:

Fonts-wine
wine-stable 3.0
wine64

The rest is downloaded via POL.(Wine versions 32 and 64 bit)

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 12:50 pm
by clem
Can you paste the result of a dist-upgrade with the wine updates whitelisted? I can't understand what would trigger the removal.

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 12:53 pm
by Summerof69
Here are a screenshot of the update manager:
https://postimg.cc/HVTQwyxQ

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 12:57 pm
by Moem
Summerof69 wrote:
Tue May 07, 2019 11:21 am
FWIW the wine update in question also uninstalls playonlinux. I had to roll back and blacklist the wine update.
I allowed the Wine upgrade. After doing it, I reinstalled PlayOnLinux which had been removed, then ran winecfg, installed the Wine package that was suggested, and then it all worked.
So, no, you do not have to blacklist that Wine update/upgrade.

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 1:03 pm
by Summerof69
@Clem: Result of apt dist-upgrade:

$ apt dist-upgrade
Indlæser pakkelisterne... Færdig
Opbygger afhængighedstræ
Læser tilstandsoplysninger... Færdig
Beregner opgraderingen... Færdig
Følgende pakker blev installeret automatisk, og behøves ikke længere:
libasn1-8-heimdal:i386 libgsm1:i386 libgssapi3-heimdal:i386
libhcrypto4-heimdal:i386 libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386
libhx509-5-heimdal:i386 libkrb5-26-heimdal:i386 libldap-2.4-2:i386
libosmesa6:i386 libpcap0.8:i386 libroken18-heimdal:i386 libsasl2-2:i386
libsasl2-modules:i386 libsasl2-modules-db:i386 libssl1.1:i386 libv4l-0:i386
libv4lconvert0:i386 libwind0-heimdal:i386 libwine libwine:i386
ocl-icd-libopencl1:i386 wine-stable wine-stable-amd64 wine-stable-i386:i386
wine32:i386 wine64
Brug »sudo apt autoremove« til at fjerne dem.
Følgende NYE pakker vil blive installeret:
libwine-development wine-development wine-stable-amd64 wine-stable-i386:i386
wine64-development
Følgende pakker vil blive opgraderet:
linux-libc-dev wine-stable
2 opgraderes, 5 nyinstalleres, 0 afinstalleres og 0 opgraderes ikke.
69,8 MB skal hentes fra arkiverne.
Efter denne handling, vil 632 MB yderligere diskplads være brugt


@Moem: Thanks. I actually tried to reinstall POL after the wine update, and it worked, but I wasn't sure if I needed the extra wine files - so I ran Timeshift, and decided to wait with the installation until I was sure what was going on - following this thread. :)

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 1:44 pm
by Summerof69
@Moem: I'm a bit slow today; your post confirms that update manager uninstalls POL.

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 1:49 pm
by Moem
Summerof69 wrote:
Tue May 07, 2019 1:44 pm
@Moem: I'm a bit slow today; your post confirms that update manager uninstalls POL.
Hello, no worries.
Yes indeed, it did uninstall POL. I then reinstalled it through the Software Manager and had no issues with that.

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 1:57 pm
by Summerof69
@Moem: I'm not sure if the new files are needed, because the wine versions needed for running the few legacy games I've installed in POL, use the wine version that's installed in POL in ~/.PlayOnLinux/wine - and the newest available wine version is v 3.20, because POL is discontinued.
I'm considering the flatpak version of POL; Phoenicis PlayOnLinux.

Re: [SOLVED] Update has broken Wine

Posted: Tue May 07, 2019 2:39 pm
by Moem
Well, I was prompted to install an extra Wine package (the development thing) by the terminal output when I ran winecfg, so that's what I did and it worked. That's all I know, I'm not a guru.