I followed the WineHQ Wiki in order to install WINE, So I typed all the following lines:
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
sudo apt update
and then when typing:
sudo apt install --install-recommends winehq-stable
In order to get the packages of the Stable branch
. I had the following output:
sudo apt install --install-recommends 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:
winehq-stable : Depends: wine-stable (= 4.0~trusty)
E: Unable to correct problems, you have held broken packages.
What does it mean please?
edit: I already tried to run
sudo apt-get update
but it doesn't work.
it seems to me your issue is you are attempting to use Cosmic sources with Bionic : https://wiki.ubuntu.com/Releases
run :
also as a long-time user of wine who has experience using it, the best possible wine experience comes from letting other programs configure & use it for you, E.G. Steam and Lutris. While both are meant to be used for running specifically gaming apps, I've used them successfully with non-gaming apps. You should probably take a look.
sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu/ focal-updates main universe restricted multiverse'
sudo apt-add-repository 'deb http://security.ubuntu.com/ubuntu focal-security main universe restricted multiverse'
sudo apt update
sudo apt full-upgrade
i was missing some respositories and this fixed it for me