I have been running wine on Ubuntu 16.04, installed via sudo apt-get install wine
, but I would like to switch to wine-staging. I am attempting to follow the instructions at https://wiki.winehq.org/Ubuntu
I first uninstalled wine and made sure all packages were up to date:
sudo apt-get remove wine wine-mono wine-gecko winetricks
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
I then rebooted and ran the following series of commands:
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
However, the command to install winehq-staging
fails with unmet dependency on wine-staging:
sudo apt-get install --install-recommends winehq-staging
The following packages have unmet dependencies:
winehq-staging : Depends: wine-staging (= 2.13.0~xenial)
E: Unable to correct problems, you have held broken packages.
Installing wine-staging fails with unmet dependency on wine-staging-i386
:
sudo apt-get install wine-staging
The following packages have unmet dependencies:
wine-staging : Depends: wine-staging-i386 (= 2.13.0~xenial)
E: Unable to correct problems, you have held broken packages.
Installing wine-staging-i386
fails with various unmet dependencies on -i386
packages. Showing a few of them (the list is much longer):
sudo apt-get install wine-staging-i386
The following packages have unmet dependencies:
wine-staging-i386:i386 : Depends: libasound2:i386 (>= 1.0.16) but it is not installable
Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not installable
Depends: libgphoto2-6:i386 (>= 2.5.9) but it is not installable
Depends: libgphoto2-port12:i386 (>= 2.5.9) but it is not installable
(snip)
Recommends: libxslt1.1:i386 (>= 1.1.25) but it is not installable
Recommends: libxxf86vm1:i386 but it is not installable
E: Unable to correct problems, you have held broken packages.
If I try to install the first one, it is not available:
sudo apt-get install libasound2:i386
Package libasound2:i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libasound2-data
E: Package 'libasound2:i386' has no installation candidate
However, package libasound2-data
is already installed and the latest version.
I'm not sure what to try next.
Best Answer
this is an addition to the answer of Elber CM
before execution of "$ sudo apt-get install --install-recommends winehq-staging" I needed to install the following libraries:
and finally
voila, now it works.