[SOLVED] Update has broken Wine

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
Terryphi
Level 4
Level 4
Posts: 254
Joined: Mon Jun 06, 2011 6:30 am
Location: West Wales. UK
Contact:

[SOLVED] Update has broken Wine

Post 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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Image
Version: LM 21.3 64bit Mate "If something is worth doing, it is worth doing for free."
User avatar
Terryphi
Level 4
Level 4
Posts: 254
Joined: Mon Jun 06, 2011 6:30 am
Location: West Wales. UK
Contact:

Re: Update has broken Wine

Post 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
Image
Version: LM 21.3 64bit Mate "If something is worth doing, it is worth doing for free."
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Update has broken Wine

Post 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.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
Terryphi
Level 4
Level 4
Posts: 254
Joined: Mon Jun 06, 2011 6:30 am
Location: West Wales. UK
Contact:

Re: Update has broken Wine

Post 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.
Last edited by Terryphi on Mon May 06, 2019 1:40 pm, edited 1 time in total.
Image
Version: LM 21.3 64bit Mate "If something is worth doing, it is worth doing for free."
User avatar
Terryphi
Level 4
Level 4
Posts: 254
Joined: Mon Jun 06, 2011 6:30 am
Location: West Wales. UK
Contact:

Re: Update has broken Wine

Post 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
Image
Version: LM 21.3 64bit Mate "If something is worth doing, it is worth doing for free."
User avatar
Terryphi
Level 4
Level 4
Posts: 254
Joined: Mon Jun 06, 2011 6:30 am
Location: West Wales. UK
Contact:

Re: Update has broken Wine

Post 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.
Image
Version: LM 21.3 64bit Mate "If something is worth doing, it is worth doing for free."
User avatar
clem
Level 12
Level 12
Posts: 4308
Joined: Wed Nov 15, 2006 8:34 am
Contact:

Re: [TEMPORARY SOLUTION] Update has broken Wine

Post 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.
Image
User avatar
Terryphi
Level 4
Level 4
Posts: 254
Joined: Mon Jun 06, 2011 6:30 am
Location: West Wales. UK
Contact:

Re: [TEMPORARY SOLUTION] Update has broken Wine

Post 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.
Image
Version: LM 21.3 64bit Mate "If something is worth doing, it is worth doing for free."
User avatar
clem
Level 12
Level 12
Posts: 4308
Joined: Wed Nov 15, 2006 8:34 am
Contact:

Re: [SOLVED] Update has broken Wine

Post 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.
Image
Summerof69
Level 4
Level 4
Posts: 200
Joined: Sun Oct 25, 2015 11:52 am
Location: Mainland,Denmark

Re: [SOLVED] Update has broken Wine

Post by Summerof69 »

FWIW the wine update in question also uninstalls playonlinux. I had to roll back and blacklist the wine update.
For millions of years mankind lived much like the animals
Then something happened which unleashed the power of our imagination
We learned to talk
All we need to do is make sure we keep talking
Stephen Hawkin's voice on Keep Talking by Pink Floyd
User avatar
clem
Level 12
Level 12
Posts: 4308
Joined: Wed Nov 15, 2006 8:34 am
Contact:

Re: [SOLVED] Update has broken Wine

Post 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?
Image
Summerof69
Level 4
Level 4
Posts: 200
Joined: Sun Oct 25, 2015 11:52 am
Location: Mainland,Denmark

Re: [SOLVED] Update has broken Wine

Post 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)
For millions of years mankind lived much like the animals
Then something happened which unleashed the power of our imagination
We learned to talk
All we need to do is make sure we keep talking
Stephen Hawkin's voice on Keep Talking by Pink Floyd
User avatar
clem
Level 12
Level 12
Posts: 4308
Joined: Wed Nov 15, 2006 8:34 am
Contact:

Re: [SOLVED] Update has broken Wine

Post 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.
Image
Summerof69
Level 4
Level 4
Posts: 200
Joined: Sun Oct 25, 2015 11:52 am
Location: Mainland,Denmark

Re: [SOLVED] Update has broken Wine

Post by Summerof69 »

Here are a screenshot of the update manager:
https://postimg.cc/HVTQwyxQ
Last edited by Summerof69 on Tue May 07, 2019 1:22 pm, edited 1 time in total.
For millions of years mankind lived much like the animals
Then something happened which unleashed the power of our imagination
We learned to talk
All we need to do is make sure we keep talking
Stephen Hawkin's voice on Keep Talking by Pink Floyd
User avatar
Moem
Level 22
Level 22
Posts: 16233
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: [SOLVED] Update has broken Wine

Post 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.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Summerof69
Level 4
Level 4
Posts: 200
Joined: Sun Oct 25, 2015 11:52 am
Location: Mainland,Denmark

Re: [SOLVED] Update has broken Wine

Post 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. :)
For millions of years mankind lived much like the animals
Then something happened which unleashed the power of our imagination
We learned to talk
All we need to do is make sure we keep talking
Stephen Hawkin's voice on Keep Talking by Pink Floyd
Summerof69
Level 4
Level 4
Posts: 200
Joined: Sun Oct 25, 2015 11:52 am
Location: Mainland,Denmark

Re: [SOLVED] Update has broken Wine

Post by Summerof69 »

@Moem: I'm a bit slow today; your post confirms that update manager uninstalls POL.
For millions of years mankind lived much like the animals
Then something happened which unleashed the power of our imagination
We learned to talk
All we need to do is make sure we keep talking
Stephen Hawkin's voice on Keep Talking by Pink Floyd
User avatar
Moem
Level 22
Level 22
Posts: 16233
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: [SOLVED] Update has broken Wine

Post 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.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Summerof69
Level 4
Level 4
Posts: 200
Joined: Sun Oct 25, 2015 11:52 am
Location: Mainland,Denmark

Re: [SOLVED] Update has broken Wine

Post 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.
For millions of years mankind lived much like the animals
Then something happened which unleashed the power of our imagination
We learned to talk
All we need to do is make sure we keep talking
Stephen Hawkin's voice on Keep Talking by Pink Floyd
User avatar
Moem
Level 22
Level 22
Posts: 16233
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: [SOLVED] Update has broken Wine

Post 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.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Locked

Return to “Software & Applications”