I’ve finally made the jump from removing Windows from my life, but alas I do still need some Windows-only applications. I’ve been trying to install Wine on my Ryzen 5 1500x system running Ubuntu 18.04 LTS, but there are just gigantic rabbit holes of unmet dependencies.
When I try running sudo apt-get install --install-recommends winehq-stable, I am shown this: The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 3.0.3~cosmic) E: Unable to correct problems, you have held broken packages.
So, then I figured I’d run sudo apt-get install --install-recommends wine-stable to install the dependency. Then wine-stable has a dependency that needs installed: wine-stable-i386. The list goes on and on forever, and I’m kinda at a loss as to what to do.
Note: Pre-install I ran sudo apt-get install --install-recommends wine-stable & wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add - & sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ artful main' as multiple guides instructed.
For some reason it is making mention of Cosmic, and the note at the end mentions Artful (end of life) and you are on Bionic. It looks like Bionic exists in ‘http://dl.winehq.org/wine-builds/ubuntu/’ , so maybe you can change that last part to bionic and get things squared away. It would likely require removing the artful repository first.
Btw, wine should be provided by the ubuntu repository. I would recommend removing the winehq repository altogether and check whether wine installs then. Try the winehq repo later when you are sure, that you need a more recent version.
Glad that you got wine running. Here an other bonus tip:
For 32 bit applications you want to run 32 bit wine, which i think is not installed by default, so its highly encouraged to install the wine32 package also:
I had the same problem. Like D3koit said, go into Software & Updates > other software and delete wine.
Also, this seemed to be caused by grabbing the wrong repository in the wine setup process. Don’t be like me. Know what version of Ubuntu you are using. Don’t just mindlessly copy and paste the first one without thinking.