1

Running on Ubuntu Desktop 17.10, I tried to install wine but I always get the following error message:

root@abdrzj-VPCEH26EA:/etc/apt# apt-get install wine
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Package wine is a virtual package provided by:

winehq-devel 2.22.0~xenial wine-stable 2.0.2-2ubuntu1 wine-development 2.18-1 You should explicitly select one to install. E: Package 'wine' has no installation candidate

Kulfy
  • 17,696

2 Answers2

3

try:

sudo apt-get install wine-stable

  • The following packages have unmet dependencies: wine-stable : Depends: wine-stable-i386 (= 2.0.3~artful) E: Unable to correct problems, you have held broken packages. – Abdulkader Alrezej Dec 04 '17 at 23:07
  • have a look here: https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages – neferpitou Dec 04 '17 at 23:08
-1

Run command to install the key:

wget https://dl.winehq.org/wine-builds/Release.key && sudo apt-key add Release.key

Also add the Wine repository via command:

sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

run sudo dpkg --add-architecture i386 to make sure 32 bit architecture is enabled

Lastly, run sudo apt-get update && sudo apt-get install --install-recommends wine-stable to install wine-stable.

  • 1
    The following packages have unmet dependencies: wine-devel : Depends: wine-devel-i386 (= 2.22.0~artful) E: Unable to correct problems, you have held broken packages. – Abdulkader Alrezej Dec 05 '17 at 06:52