I've been following this post : Can't install Wine Ubuntu 18.04
but the solution of installing wine-staging
didn't work for me.
Here's the output of my attempt :
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 to resolve the situation:
The following packages have unmet dependencies:
wine-staging : Depends: wine-staging-amd64 (= 4.0~rc5~cosmic) but it is not going to be installed
Depends: wine-staging-i386 (= 4.0~rc5~cosmic)
E: Unable to correct problems, you have held broken packages.
Tried to install wine-staging-amd64 but then, get other dependencies issues :
sudo apt-get install wine-staging-amd64
[sudo] password for gerard:
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:
wine-staging-amd64 : Depends: libavcodec58 (>= 7:4.0) but it is not installable
Depends: libavutil56 (>= 7:4.0) but it is not installable
Depends: libvkd3d1 but it is not installable
Recommends: libcapi20-3 but it is not going to be installed
Recommends: libodbc1 but it is not going to be installed
Recommends: libosmesa6 but it is not going to be installed
Recommends: libsdl2-2.0-0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Edit: I deleted all external sources on the Ubuntu Software GUI in the section "Other software", ran upgrade, reboot and followed Elvir instructions. It worked, thanks !
wine-staging
package is not in Ubuntu. You are getting it from somewhere else. You have unwisely added a non-Ubuntu source that provides packages that are incompatible with your release of Ubuntu. Determine the source using theapt-cache policy
command (see the manpage for apt-cache), uninstall ALL packages from that source, and delete that source. Look up theppa-purge
command for how. – user535733 Jan 13 '19 at 22:16