Installation error on Linux Mint 20.3

Questions about Wine on Linux
Locked
bheeshmpita
Newbie
Newbie
Posts: 1
Joined: Thu Jun 02, 2022 6:39 am

Installation error on Linux Mint 20.3

Post by bheeshmpita »

After following instructions from https://wiki.winehq.org/Ubuntu with the following command it leads to error which upon online searching didn't lead to success.
Help me in fixing this issue

Code: Select all

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 (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.
abhi@workstation:~$ sudo apt install wine-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:
 wine-stable : Depends: wine-stable-i386 (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.
abhi@workstation:~$ sudo apt install wine-stable-i386
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: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                         Depends: libsane:i386 (>= 1.0.24) but it is not going to be installed
                         Depends: libvkd3d1:i386 (>= 1.2~focal-1) but it is not going to be installed
                         Recommends: libglu1-mesa:i386 but it is not going to be installed or
                                     libglu1:i386
E: Unable to correct problems, you have held broken packages.[/color][/color]
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation error on Linux Mint 20.3

Post by jkfloris »

You're almost there. Try installing the missing dependencies by hand.
First check if the 32 and 64-bit version are the same for the packages that have an :i386 suffix.

Code: Select all

apt policy libgphoto2-6:i386 libgphoto2-6
If in both versions the "Candidate" version number is the same, try installing the package.

Code: Select all

sudo apt install libgphoto2-6:i386
And repeat the steps until you come across a package where the version numbers do not match.
In that case, install the version number that appears for both architectures.
For example

Code: Select all

sudo apt install package:i386=1.2.3 package=1.2.3
Locked