I had previously installed wine-stable, but for a particular program I wanted to run it was recommended that I run wine-staging. So I uninstalled wine-stable, and tried to install wine-staging as normal.
When I run
sudo apt install wine-staging
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 resolve the situation:
The following packages have unmet dependencies:
wine-staging : Depends: wine-staging-amd64 (= 4.0~rc7~cosmic) but it is not going to be installed
Depends: wine-staging-i386 (= 4.0~rc7~cosmic)
E: Unable to correct problems, you have held broken packages.
Solution as follows:
I had similar issue. I forgot to add the wine repository key.
$ wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -
then add the repository
$ sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main'
and install your flavor of wine
$ sudo apt install winehq-staging
$ sudo apt install winehq-stable
Checkout the new version
$ wine --version
I had multiple sources for wine in my
/etc/apt/sources.list.d/additional-repositories.list. Before you do the nuclear option, correct repo key and install what you need.