0

I am trying to install Wine 5 stable release, but I keep getting broken packages error. I have been using the steps provided here and on the official Wine website. These were the other threads I have tried to use to solve the problem which didn't work (I have made sure I installed the one for 18.04):

If I were to install Winehq-stable I would be met with another package. Upon trying to install it, I would get more and more.

Here are the logs:

xnetwork@xnetwork:~$ sudo dpkg --add-architecture i386
[sudo] password for xnetwork: 
xnetwork@xnetwork:~$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
File ‘winehq.key’ already there; not retrieving.

xnetwork@xnetwork:~$ sudo apt-key add winehq.key
OK
xnetwork@xnetwork:~$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
File ‘winehq.key’ already there; not retrieving.

xnetwork@xnetwork:~$  sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.winehq.org/wine-builds/ubuntu artful InRelease                                      
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                                          
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                         
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic InRelease                                          
Hit:6 http://archive.canonical.com/ubuntu bionic InRelease                                          
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                        
Hit:8 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                                     
Hit:9 https://repo.windscribe.com/ubuntu zesty InRelease                                            
Hit:10 https://dl.winehq.org/wine-builds/ubuntu eoan InRelease                                      
Hit:11 http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu bionic InRelease               
Get:12 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                     
Hit:14 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease         
Fetched 252 kB in 1s (175 kB/s)                   
Reading package lists... Done
xnetwork@xnetwork:~$ sudo apt update
Hit:1 http://dl.winehq.org/wine-builds/ubuntu artful InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                        
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                                          
Hit:4 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                                     
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic InRelease                                          
Hit:6 https://dl.winehq.org/wine-builds/ubuntu eoan InRelease                                       
Hit:7 https://repo.windscribe.com/ubuntu zesty InRelease                                            
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                        
Hit:9 http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu bionic InRelease                
Get:10 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                        
Hit:12 http://archive.canonical.com/ubuntu bionic InRelease                                         
Get:13 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                     
Hit:14 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease                        
Fetched 252 kB in 1s (178 kB/s)                                                                     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
xnetwork@xnetwork:~$ 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 (= 5.0.0~eoan)
E: Unable to correct problems, you have held broken packages.
xnetwork@xnetwork:~$ sudo apt install --install-recommends wine-devel winehq-devel
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-devel : Depends: wine-devel-i386 (= 5.3~eoan)
              Depends: wine-devel-amd64 (= 5.3~eoan) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
xnetwork@xnetwork:~$ sudo apt-get install wine
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package wine is a virtual package provided by:
  winehq-staging 5.3~eoan
  winehq-stable 5.0.0~eoan
  winehq-devel 5.3~eoan
  wine-development 3.6-1
You should explicitly select one to install.

E: Package 'wine' has no installation candidate
xnetwork@xnetwork:~$ 
4
  • 1
    Does this answer your question? can't install wine on ubuntu (actually lubuntu) 18.04 – N0rbert Mar 12 '20 at 11:02
  • First of all remove https://dl.winehq.org/wine-builds/ubuntu eoan InRelease It is not for bionic. And continue with the link from @N0rbert – nobody Mar 12 '20 at 12:24
  • Ok, I will send the results of N0rtbert's instructions – Xeon Network Mar 12 '20 at 23:08
  • grep -r deb /etc/apt/sources.list /etc/apt/sources.list.d please. – nobody Mar 13 '20 at 16:55