Unable to Upgrade to Version 5

Questions about Wine on Linux
Locked
Kraus
Newbie
Newbie
Posts: 3
Joined: Thu Jan 23, 2020 12:45 pm

Unable to Upgrade to Version 5

Post by Kraus »

I'm on Ubuntu 19.10.

I awoke this morning to an available Wine upgrade:

Code: Select all

$ apt list --upgradable 
Listing... Done
wine-stable-amd64/eoan 5.0.0~eoan amd64 [upgradable from: 4.0.3~eoan]
wine-stable-i386/eoan 5.0.0~eoan i386 [upgradable from: 4.0.3~eoan]
wine-stable/eoan 5.0.0~eoan amd64 [upgradable from: 4.0.3~eoan]
winehq-stable/eoan 5.0.0~eoan amd64 [upgradable from: 4.0.3~eoan]
So I attempted to!

Code: Select all

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  wine-stable wine-stable-amd64 wine-stable-i386:i386 winehq-stable
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
After web searching for "The following packages have been kept back", I glanced at a decade-old solution from here with the following results:

Code: Select all

$ sudo apt-get --with-new-pkgs upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  wine-stable wine-stable-amd64 wine-stable-i386:i386 winehq-stable
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Nothing, so tried the next:

Code: Select all

$ sudo apt-get install wine-stable wine-stable-amd64 wine-stable-i386:i386 winehq-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine-stable-amd64 : Depends: libfaudio0 (>= 19.06.07) but it is not going to be installed
 wine-stable-i386:i386 : Depends: libfaudio0:i386 (>= 19.06.07) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Hesitant to try the third "aggressive solution," I web searched "but it is not going to be installed" and that is where the trail seems to run cold. Is this a dependency compatibility issue with Ubuntu 19.10? Forgive me, I'm still pretty new at all this.
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to Upgrade to Version 5

Post by dimesio »

Code: Select all

The following packages have unmet dependencies:
 wine-stable-amd64 : Depends: libfaudio0 (>= 19.06.07) but it is not going to be installed
 wine-stable-i386:i386 : Depends: libfaudio0:i386 (>= 19.06.07) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
You need to install libfaudio0, and Ubuntu 19.10 provides it in the universe repository, so I don't know why your package manager won't install it. Try installing it directly and see what your package manager complains about, then fix that. Keep working your way backwards until you find whatever is blocking everything else.
rpr
Newbie
Newbie
Posts: 1
Joined: Sat Jan 25, 2020 7:04 pm

Re: Unable to Upgrade to Version 5

Post by rpr »

I'm also seeing this issue but on Ubuntu 18.04 LTS.

Code: Select all

$ sudo apt-get install wine-stable wine-stable-amd64 wine-stable-i386:i386 winehq-stable
...
The following packages have unmet dependencies:
 wine-stable-amd64 : Depends: libfaudio0 but it is not installable
 wine-stable-i386:i386 : Depends: libfaudio0:i386 but it is not installable
E: Unable to correct problems, you have held broken packages.
It seems libfaudio0 is not available for Ubuntu 18.04 from standard repositories.
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to Upgrade to Version 5

Post by dimesio »

rpr wrote: Sat Jan 25, 2020 7:15 pm It seems libfaudio0 is not available for Ubuntu 18.04 from standard repositories.
You're right, it's not. That's why there's a sticky at the top of this forum explaining what to do about it. viewtopic.php?f=8&t=32192
Kraus
Newbie
Newbie
Posts: 3
Joined: Thu Jan 23, 2020 12:45 pm

Re: Unable to Upgrade to Version 5

Post by Kraus »

posting.php?mode=reply&f=8&t=33421#preview

Hello!

Coming back to this problem a couple weeks later, holy moly, I found the answer to the problem thanks to dimesio's advice of just flowing down the tree of dependencies until I untangled things. That's the short version of the story.

But... I have a follow-up question. Unfortunately, but the only way I can properly frame it is to give you the tl;dr version.

(Is there a spoiler tag for this forum? No? Oh well, here goes...)

...

After I posted my original forum question, I thought I fixed things using some suggestions from an AskUbuntu thread, but it turned out I only buried the problem by hiding the upgrade notifications without actually installing Wine 5.

I realized my error tonight when I attempted to run WineHQ. I discovered it wasn't installed. I discovered that the unmet dependencies were still unmet. Only now, there was only one unmet dependency listed.

How this happened, I cannot begin to fathom. All of the output that my CLI returned when I ran the suggested commands from AskUbuntu are long gone, but luckily I do have the bash history which may provide a few clues:

Code: Select all

 1930  sudo apt update
 1931  apt list --upgradable 
 1932  sudo apt upgrade
 1933  sudo apt-get --with-new-pkgs upgrade
 1934  sudo apt --with-new-pkgs upgrade
 1935  sudo apt-get install wine-stable wine-stable-amd64 wine-stable-i386:i386 winehq-stable
 1936  sudo apt clean
 1937  sudo apt autoclean
 1938  sudo apt-get -f install
 1939  sudo apt-get -u dist-upgrade
 1940  apt list --upgradable 
 1941  apt list --upgradable -a
 1942  sudo apt update
 1943  apt list --upgradable 
 1944  sudo apt upgrade
 1945  sudo apt autoremove
In doing this, I might have either made the problem worse or better. I can't tell. What I can say is that there were less dependencies facing me than before. Following your advice, dimesio, I followed the chain downward until I hit my personal Groundhog Day. Instead of posting the full spammy output, here is a simplified version of the chain:

Code: Select all

$ sudo apt install --install-recommends winehq-stable
$ sudo apt install wine-stable
$ sudo apt install wine-stable-i386
$ sudo apt install libfaudio0:i386
[...]
The following packages have unmet dependencies:
 libfaudio0:i386 : Depends: libavcodec58:i386 (>= 7:4.0)
                   Depends: libavutil56:i386 (>= 7:4.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ sudo apt install libavcodec58:i386
[...]
The following packages have unmet dependencies:
 libavcodec58:i386 : Depends: libavutil56:i386 (= 7:4.1.4-1build2) but it is not going to be installed
                     Depends: libswresample3:i386 (= 7:4.1.4-1build2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ sudo apt install libavutil56:i386
[...]
The following packages have unmet dependencies:
 libavutil56:i386 : Depends: libvdpau1:i386 (>= 0.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ sudo apt install libswresample3:i386
[...]
The following packages have unmet dependencies:
 libswresample3:i386 : Depends: libavutil56:i386 (= 7:4.1.4-1build2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
This is where I realized I was in a loop.

Code: Select all

$ sudo apt install libavutil56:i386
[...]
The following packages have unmet dependencies:
 libavutil56:i386 : Depends: libvdpau1:i386 (>= 0.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ sudo apt install libvdpau1:i386
[...]
The following additional packages will be installed:
  libxcb-xfixes0:i386 mesa-vdpau-drivers:i386 vdpau-driver-all:i386
Suggested packages:
  libvdpau-va-gl1:i386 nvidia-vdpau-driver:i386 nvidia-legacy-340xx-vdpau-driver:i386 nvidia-legacy-304xx-vdpau-driver:i386
The following packages will be REMOVED:
  audacity ffmpeg gstreamer1.0-libav kid3-cli kid3-core kid3-qt libavcodec57 libavcodec58 libavdevice57 libavdevice58 libavfilter6 libavfilter7 libavformat57 libavformat58 libavresample3 libavresample4 libavutil55
  libavutil56 libchromaprint1 libfaudio0 libpostproc54 libpostproc55 libswresample2 libswresample3 libswscale4 libswscale5 libvdpau1 mesa-vdpau-drivers nvidia-settings obs-studio vdpau-driver-all
The following NEW packages will be installed:
  libvdpau1:i386 libxcb-xfixes0:i386 mesa-vdpau-drivers:i386 vdpau-driver-all:i386
0 upgraded, 4 newly installed, 31 to remove and 0 not upgraded.
Need to get 2,699 kB of archives.
After this operation, 86.1 MB disk space will be freed.
Do you want to continue? [Y/n] 
Get:1 http://us.archive.ubuntu.com/ubuntu eoan/main i386 libvdpau1 i386 1.2-1ubuntu1 [24.3 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu eoan/main i386 libxcb-xfixes0 i386 1.13.1-2 [9,772 B]
Get:3 http://us.archive.ubuntu.com/ubuntu eoan-updates/main i386 mesa-vdpau-drivers i386 19.2.8-0ubuntu0~19.10.2 [2,661 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu eoan/main i386 vdpau-driver-all i386 1.2-1ubuntu1 [4,412 B]
Fetched 2,699 kB in 2s (1,134 kB/s)         
(Reading database ... 213084 files and directories currently installed.)
Removing audacity (2.3.2-2) ...
Removing ffmpeg (7:4.2.1-2~18.04.york2) ...
Removing gstreamer1.0-libav:amd64 (1.16.1-1) ...
Removing kid3-cli (3.7.1-3) ...
Removing kid3-qt (3.7.1-3) ...
Removing kid3-core (3.7.1-3) ...
Removing obs-studio (24.0.3-0obsproject1~bionic) ...
Removing libavdevice57:amd64 (7:3.4.6-0ubuntu0.18.04.1) ...
Removing libavdevice58:amd64 (7:4.2.1-2~18.04.york2) ...
Removing libavfilter7:amd64 (7:4.2.1-2~18.04.york2) ...
Removing libavformat58:amd64 (7:4.2.1-2~18.04.york2) ...
Removing libfaudio0:amd64 (19.07-1) ...
Removing libavfilter6:amd64 (7:3.4.6-0ubuntu0.18.04.1) ...
Removing libavformat57:amd64 (7:3.4.6-0ubuntu0.18.04.1) ...
Removing libavresample3:amd64 (7:3.4.6-0ubuntu0.18.04.1) ...
Removing libavresample4:amd64 (7:4.2.1-2~18.04.york2) ...
Removing libswscale4:amd64 (7:3.4.6-0ubuntu0.18.04.1) ...
Removing libswscale5:amd64 (7:4.2.1-2~18.04.york2) ...
Removing libchromaprint1:amd64 (1.4.3-3) ...
Removing libpostproc54:amd64 (7:3.4.6-0ubuntu0.18.04.1) ...
Removing libpostproc55:amd64 (7:4.2.1-2~18.04.york2) ...
Removing vdpau-driver-all:amd64 (1.3-0ubuntu0~gpu18.04.2) ...
Removing mesa-vdpau-drivers:amd64 (19.2.8-0ubuntu0~19.10.2) ...
Removing nvidia-settings (435.21-0ubuntu2) ...
Removing libavcodec57:amd64 (7:3.4.6-0ubuntu0.18.04.1) ...
Removing libavcodec58:amd64 (7:4.2.1-2~18.04.york2) ...
Removing libswresample2:amd64 (7:3.4.6-0ubuntu0.18.04.1) ...
Removing libavutil55:amd64 (7:3.4.6-0ubuntu0.18.04.1) ...
Removing libswresample3:amd64 (7:4.2.1-2~18.04.york2) ...
Removing libavutil56:amd64 (7:4.2.1-2~18.04.york2) ...
Removing libvdpau1:amd64 (1.3-0ubuntu0~gpu18.04.2) ...
Selecting previously unselected package libvdpau1:i386.
(Reading database ... 211617 files and directories currently installed.)
Preparing to unpack .../libvdpau1_1.2-1ubuntu1_i386.deb ...
Unpacking libvdpau1:i386 (1.2-1ubuntu1) ...
Selecting previously unselected package libxcb-xfixes0:i386.
Preparing to unpack .../libxcb-xfixes0_1.13.1-2_i386.deb ...
Unpacking libxcb-xfixes0:i386 (1.13.1-2) ...
Selecting previously unselected package mesa-vdpau-drivers:i386.
Preparing to unpack .../mesa-vdpau-drivers_19.2.8-0ubuntu0~19.10.2_i386.deb ...
Unpacking mesa-vdpau-drivers:i386 (19.2.8-0ubuntu0~19.10.2) ...
Selecting previously unselected package vdpau-driver-all:i386.
Preparing to unpack .../vdpau-driver-all_1.2-1ubuntu1_i386.deb ...
Unpacking vdpau-driver-all:i386 (1.2-1ubuntu1) ...
Setting up libxcb-xfixes0:i386 (1.13.1-2) ...
Setting up libvdpau1:i386 (1.2-1ubuntu1) ...
Setting up mesa-vdpau-drivers:i386 (19.2.8-0ubuntu0~19.10.2) ...
Setting up vdpau-driver-all:i386 (1.2-1ubuntu1) ...
Processing triggers for mime-support (3.63ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for libc-bin (2.30-0ubuntu2) ...
Processing triggers for man-db (2.8.7-3) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu1) ...
After that, I attempted to install WineHQ again but the next three dependencies ended up needing to be installed first.

Code: Select all

$ sudo apt install libavutil56:i386 [...]
$ sudo apt install libswresample3:i386 [...]
$ sudo apt install libfaudio0:i386
That last one installed the whole missing package. After that, WineHQ installed.

However.. remember that final question I had? Well, technically I have four...

Wine is still missing from my list of "Show Applications" menu in Gnome. So, I brought up Ubuntu Software. It's not showing up as installed. I searched for it, and found it was available to install. It's suggesting 4.0.2-1.

Image

2) Knowing that I installed through CLI, I ignored it. But I thought, well, let's see which version is installed. Using this thread on AskUbuntu as a guide, I tried both commands:

Code: Select all

$ apt show wine
Package: wine
Version: 4.0.2-1
Built-Using: khronos-api (= 4.6+git20180514-1), unicode-data (= 12.1.0~pre1-2)
Priority: optional
Section: universe/otherosfs
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian Wine Party <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 195 kB
Depends: wine64 (>= 4.0.2-1) | wine32 (>= 4.0.2-1), wine64 (<< 4.0.2-1.1~) | wine32 (<< 4.0.2-1.1~)
Suggests: q4wine, winbind, winetricks, playonlinux, wine-binfmt, dosbox (>= 0.74-4.2~), exe-thumbnailer | kio-extras
Breaks: wine-stable (<< 3.0.1ubuntu1~)
Replaces: wine-stable (<< 3.0.1ubuntu1~)
Homepage: https://www.winehq.org
Download-Size: 51.7 kB
APT-Sources: http://us.archive.ubuntu.com/ubuntu eoan/universe amd64 Packages
Description: Windows API implementation - standard suite
 Wine is a free MS-Windows API implementation.
 This is still a work in progress and many applications may still not work.
 .
 This package provides essential wrappers and convenience tools for the
 standard Wine components. It also employs the Debian alternatives system to
 provide the usual command names, e.g. "wine" instead of "wine-stable".

$ wine --version
wine-5.0
(Similar story compared to the fellow on the exchange thread.)

So... my follow-up questions... *drumroll*
  1. Why is Wine not appearing on my list of applications in Gnome?
  2. Why isn't it listed as installed through Ubuntu Software?
  3. Why am I showing two versions installed? Same reason as the fellow in the AU thread?
  4. How can I access Wine's GUI through CLI if all else fails?
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to Upgrade to Version 5

Post by dimesio »

Why is Wine not appearing on my list of applications in Gnome?
If you mean menu items/desktop links, vanilla Wine does not create them for any of its builtin programs. When you install something in Wine, menu items should be added for the installed program, so long as it is a program that normally creates Start Menu entries for itself in Windows.
Why isn't it listed as installed through Ubuntu Software?
Maybe because you didn't install it through Ubuntu Software? Sorry, I really don't know enough about that program to say more.
Why am I showing two versions installed? Same reason as the fellow in the AU thread?
The WineHQ packages are designed to allow you to install them alongside a distro version. Apparently that's what you did.
How can I access Wine's GUI through CLI if all else fails?
https://wiki.winehq.org/Wine_User%27s_G ... s_programs
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Unable to Upgrade to Version 5

Post by jkfloris »

Keep in mind the difference in names between the Wine packages:
wine - the Wine package from Ubuntu
winehq-stable and wine-stable - the Wine packages from WineHQ

apt show wine-stable should give you the output you want.
Locked