Not able to install wine

Questions about Wine on Linux
Locked
moonship
Level 1
Level 1
Posts: 7
Joined: Sun Dec 12, 2021 12:23 am

Not able to install wine

Post by moonship »

i have following this guide but nothing works
https://wine.htmlvalidator.com/install- ... an-10.html

Code: Select all

sudo apt install --install-recommends wine-stable-i386 wine-stable-amd64
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-stable-i386:i386 : Depends: libfaudio0:i386 (>= 19.06.07) but it is not going to be installed
                         Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                         Depends: libgphoto2-port12:i386 (>= 2.5.10) but it is not going to be installed
                         Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                         Depends: libpulse0:i386 (>= 0.99.1) but it is not going to be installed
                         Depends: libudev1:i386 (>= 183) but it is not going to be installed
                         Depends: libvkd3d1:i386 (>= 1.0) but it is not going to be installed
                         Depends: libasound2-plugins:i386 but it is not going to be installed
                         Recommends: libcups2:i386 but it is not going to be installed
                         Recommends: libdbus-1-3:i386 but it is not going to be installed
                         Recommends: libglu1-mesa:i386 but it is not going to be installed or
                                     libglu1:i386
                         Recommends: libgssapi-krb5-2:i386 but it is not going to be installed
                         Recommends: libkrb5-3:i386 but it is not going to be installed
                         Recommends: libosmesa6:i386 but it is not going to be installed
                         Recommends: libsane:i386 but it is not going to be installed or
                                     libsane1:i386
                         Recommends: libsdl2-2.0-0:i386 but it is not going to be installed
                         Recommends: libtiff5:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Not able to install wine

Post by jkfloris »

Somehow the 32-bit packages cannot be installed.
Did you run "sudo apt update" after adding the 32-bit architecture?

Code: Select all

sudo dpkg --add-architecture i386
sudo apt update
The version of the 32-bit packages should be exactly the same as the 64-bit packages.
Usually this is the case on Debian, but adding another repository can cause conflicts.
What is the output of:

Code: Select all

grep -R ^deb /etc/apt/sources.list*
moonship
Level 1
Level 1
Posts: 7
Joined: Sun Dec 12, 2021 12:23 am

Re: Not able to install wine

Post by moonship »

jkfloris wrote: Sun Dec 12, 2021 12:47 pm Somehow the 32-bit packages cannot be installed.
Did you run "sudo apt update" after adding the 32-bit architecture?

Code: Select all

sudo dpkg --add-architecture i386
sudo apt update
The version of the 32-bit packages should be exactly the same as the 64-bit packages.
Usually this is the case on Debian, but adding another repository can cause conflicts.
What is the output of:

Code: Select all

grep -R ^deb /etc/apt/sources.list*
grep -R ^deb /etc/apt/sources.list*
/etc/apt/sources.list:deb http://mirror.hetzner.de/debian/packages buster main contrib non-free
/etc/apt/sources.list:deb http://mirror.hetzner.de/debian/security buster/updates main contrib non-free
/etc/apt/sources.list:deb http://mirror.hetzner.de/debian/packages buster-updates main contrib non-free
/etc/apt/sources.list:deb http://deb.debian.org/debian/ buster main non-free contrib
/etc/apt/sources.list:deb http://security.debian.org/debian-security buster/updates main contrib non-free
/etc/apt/sources.list:deb http://deb.debian.org/debian/ buster-updates main contrib non-free
/etc/apt/sources.list:deb http://deb.debian.org/debian buster-backports main
/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/debian/ stable main
/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/debian/ buster main
/etc/apt/sources.list.d/x2go.list:deb http://packages.x2go.org/debian buster main
/etc/apt/sources.list.d/x2go.list:deb-src http://packages.x2go.org/debian buster main
/etc/apt/sources.list.d/mkvtoolnix.download.list.save:deb [signed-by=/usr/share/keyrings/gpg-pub-moritzbunkus.gpg] https://mkvtoolnix.download/debian/ buster main
/etc/apt/sources.list.d/x2go.list.save:deb http://packages.x2go.org/debian buster main
/etc/apt/sources.list.d/x2go.list.save:deb-src http://packages.x2go.org/debian buster main
/etc/apt/sources.list.d/mkvtoolnix.download.list:deb [signed-by=/usr/share/keyrings/gpg-pub-moritzbunkus.gpg] https://mkvtoolnix.download/debian/ buster main
/etc/apt/sources.list.d/mono-xamarin.list.save:deb https://download.mono-project.com/repo/debian buster/snapshots/6.8/. main
/etc/apt/sources.list.d/microsoft-prod.list.save:deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/10/prod buster main
/etc/apt/sources.list.d/microsoft-prod.list:deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/10/prod buster main
/etc/apt/sources.list.d/mono-xamarin.list:deb https://download.mono-project.com/repo/debian buster/snapshots/6.8/. main
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/google-chrome.list.save:deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/syncthing.list:deb http://apt.syncthing.net/ syncthing release
/etc/apt/sources.list.d/syncthing.list.save:deb http://apt.syncthing.net/ syncthing release
/etc/apt/sources.list.save:deb http://mirror.hetzner.de/debian/packages buster main contrib non-free
/etc/apt/sources.list.save:deb http://mirror.hetzner.de/debian/security buster/updates main contrib non-free
/etc/apt/sources.list.save:deb http://mirror.hetzner.de/debian/packages buster-updates main contrib non-free
/etc/apt/sources.list.save:deb http://deb.debian.org/debian/ buster main non-free contrib
/etc/apt/sources.list.save:deb http://security.debian.org/debian-security buster/updates main contrib non-free
/etc/apt/sources.list.save:deb http://deb.debian.org/debian/ buster-updates main contrib non-free
/etc/apt/sources.list.save:deb http://deb.debian.org/debian buster-backports main
/etc/apt/sources.list.save:deb https://dl.winehq.org/wine-builds/debian/ stable main
moonship
Level 1
Level 1
Posts: 7
Joined: Sun Dec 12, 2021 12:23 am

Re: Not able to install wine

Post by moonship »

running

Code: Select all

sudo apt update
Hit:1 http://mirror.hetzner.de/debian/packages buster InRelease
Hit:2 http://mirror.hetzner.de/debian/security buster/updates InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 http://deb.debian.org/debian buster InRelease
Hit:5 http://mirror.hetzner.de/debian/packages buster-updates InRelease
Hit:6 http://deb.debian.org/debian buster-updates InRelease
Hit:7 http://packages.x2go.org/debian buster InRelease
Hit:8 http://deb.debian.org/debian buster-backports InRelease
Hit:9 https://dl.winehq.org/wine-builds/debian stable InRelease
Hit:10 https://dl.winehq.org/wine-builds/debian buster InRelease
Hit:11 https://download.mono-project.com/repo/debian buster/snapshots/6.8/. InRelease
Ign:12 https://mkvtoolnix.download/debian buster InRelease
Hit:13 https://packages.microsoft.com/debian/10/prod buster InRelease
Hit:14 https://mkvtoolnix.download/debian buster Release
Hit:15 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:16 http://apt.syncthing.net syncthing InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:29 and /etc/apt/sources.list.d/winehq.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:29 and /etc/apt/sources.list.d/winehq.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:29 and /etc/apt/sources.list.d/winehq.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:29 and /etc/apt/sources.list.d/winehq.list:1
W: Conflicting distribution: https://download.mono-project.com/repo/debian buster/snapshots/6.8/. InRelease (expected buster/snapshots/6.8/. but got buster)
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:29 and /etc/apt/sources.list.d/winehq.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:29 and /etc/apt/sources.list.d/winehq.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:29 and /etc/apt/sources.list.d/winehq.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:29 and /etc/apt/sources.list.d/winehq.list:1
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Not able to install wine

Post by jkfloris »

Code: Select all

...
/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/debian/ stable main
/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/debian/ buster main
...
You have the Wine repository listed twice in /etc/apt/sources.list.
Debian stable is Bullseye not Buster

Remove the line

Code: Select all

/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/debian/ stable main
and remove the /etc/apt/sources.list.d/winehq.list file
moonship
Level 1
Level 1
Posts: 7
Joined: Sun Dec 12, 2021 12:23 am

Re: Not able to install wine

Post by moonship »

Will try and back
moonship
Level 1
Level 1
Posts: 7
Joined: Sun Dec 12, 2021 12:23 am

Re: Not able to install wine

Post by moonship »

Code: Select all

 lupinishost@lupininshost:/etc/apt/sources.list.d$ sudo apt update
Hit:1 http://mirror.hetzner.de/debian/packages buster InRelease
Hit:2 http://mirror.hetzner.de/debian/security buster/updates InRelease                                                                                                                                                           
Get:3 http://mirror.hetzner.de/debian/packages buster-updates InRelease [51.9 kB]                                                                                                                                                 
Hit:4 http://deb.debian.org/debian buster InRelease                                                                                                                                                                               
Hit:5 http://deb.debian.org/debian buster-updates InRelease                                                                                                                                                                       
Hit:6 http://deb.debian.org/debian buster-backports InRelease                                                                                                                                                                     
Get:7 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]                                                                                                                                               
Hit:8 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                                                     
Hit:9 https://packages.microsoft.com/debian/10/prod buster InRelease                                                                                                                                                              
Ign:10 https://mkvtoolnix.download/debian buster InRelease                                                                                                                                                                        
Hit:11 https://download.mono-project.com/repo/debian stable-buster InRelease                                                                                                                                                      
Hit:12 http://apt.syncthing.net syncthing InRelease                                                                                                                                                                               
Get:13 https://dl.winehq.org/wine-builds/debian bullseye InRelease [8,045 B]                                                                                                                                                      
Hit:14 http://packages.x2go.org/debian buster InRelease                                                                                                                                                                           
Hit:15 https://mkvtoolnix.download/debian buster Release                                                                                                                                                                          
Get:16 https://dl.winehq.org/wine-builds/debian bullseye/main all Packages [904 B]                                                                                                                                                
Get:17 https://dl.winehq.org/wine-builds/debian bullseye/main i386 Packages [482 kB]                                                                                                                                              
Get:19 https://dl.winehq.org/wine-builds/debian bullseye/main amd64 Packages [472 kB]                                                                                                                                             
Fetched 1,080 kB in 7s (155 kB/s)                                                                                                                                                                                                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
lupinishost@lupininshost:/etc/apt/sources.list.d$ 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 (= 6.0.2~bullseye-1)
E: Unable to correct problems, you have held broken packages.
lupinishost@lupininshost:/etc/apt/sources.list.d$ 
moonship
Level 1
Level 1
Posts: 7
Joined: Sun Dec 12, 2021 12:23 am

Re: Not able to install wine

Post by moonship »

Removed winehq.list kept source.list as buster release only since I’m on Debian 10 however nothing has changed

Code: Select all

 lupinishost@lupininshost:/etc/apt$ sudo apt update
Hit:1 http://packages.x2go.org/debian buster InRelease
Hit:2 http://mirror.hetzner.de/debian/packages buster InRelease                                                                                 
Hit:3 http://deb.debian.org/debian buster InRelease                                                                                             
Hit:4 http://deb.debian.org/debian buster-updates InRelease                                                                                     
Hit:5 http://deb.debian.org/debian buster-backports InRelease                                                                                   
Hit:6 http://security.debian.org/debian-security buster/updates InRelease                                                                       
Hit:7 http://apt.syncthing.net syncthing InRelease                                                                                                                                                                                
Get:8 http://mirror.hetzner.de/debian/security buster/updates InRelease [65.4 kB]                                                                                                                                                 
Hit:9 http://mirror.hetzner.de/debian/packages buster-updates InRelease                                                                                                                                                           
Ign:10 https://mkvtoolnix.download/debian buster InRelease                                                                                                                                                                        
Hit:11 https://mkvtoolnix.download/debian buster Release                                                                                                                                                                          
Hit:12 https://download.mono-project.com/repo/debian stable-buster InRelease                                                                                                        
Get:13 https://dl.winehq.org/wine-builds/debian buster InRelease [6,266 B]                                                                                                          
Hit:14 https://dl.google.com/linux/chrome/deb stable InRelease                                                    
Hit:15 https://packages.microsoft.com/debian/10/prod buster InRelease         
Get:17 https://dl.winehq.org/wine-builds/debian buster/main amd64 Packages [1,061 kB]
Get:18 https://dl.winehq.org/wine-builds/debian buster/main i386 Packages [1,097 kB]
Fetched 2,230 kB in 3s (850 kB/s)                        
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
lupinishost@lupininshost:/etc/apt$ 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 (= 6.0.2~buster-1)
E: Unable to correct problems, you have held broken packages.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Not able to install wine

Post by jkfloris »

You probably installed a 64-bit package from buster-backports. This repository is given a lower preference number by default, so they are not installed automatically.
I'm not sure, but this might work:

Code: Select all

sudo apt -t buster-backports install winehq-stable
Otherwise, you would have to manually find out which package is blocking the installation:

Code: Select all

sudo apt install winehq-stable
# some error message with: Depends: wine-stable
sudo apt install wine-stable
# error Depends: wine-stable-amd64 wine-stable-i386
sudo apt install wine-stable-i386
# error Depends: somepackage:i386
sudo apt install somepackage:i386
# and so on
moonship
Level 1
Level 1
Posts: 7
Joined: Sun Dec 12, 2021 12:23 am

Re: Not able to install wine

Post by moonship »

works installed development version
thank you
Locked