Cannot install wineHQ

Questions about Wine on Linux
Locked
bahman
Level 2
Level 2
Posts: 10
Joined: Sun May 30, 2021 4:12 pm

Cannot install wineHQ

Post by bahman »

So I was trying to play a game and I install wine64. The wine then told me that I need to install wine32 which I was not able to. I post my problem on the Kubuntu forum and they asked me to install wineHQ. I uninstall wine and try to install wineHQ but I receive the following error:
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-staging : Depends: wine-staging (= 6.9~focal-1)
E: Unable to correct problems, you have held broken packages.
Thanks in advance for your time.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Cannot install wineHQ

Post by jkfloris »

Read the instructions on the wiki:
https://wiki.winehq.org/FAQ#How_do_I_so ... ll_Wine.3F

If that does not resolve the issue, post the output of

Code: Select all

grep -R ^deb /etc/apt/sources.list*
bahman
Level 2
Level 2
Posts: 10
Joined: Sun May 30, 2021 4:12 pm

Re: Cannot install wineHQ

Post by bahman »

jkfloris wrote: Sun May 30, 2021 5:34 pm Read the instructions on the wiki:
https://wiki.winehq.org/FAQ#How_do_I_so ... ll_Wine.3F

If that does not resolve the issue, post the output of

Code: Select all

grep -R ^deb /etc/apt/sources.list*
Thanks for the reply. I followed the instruction in the link and I faced a long number of dependencies that I should install. Should I follow that?

Here is the outcome of the command
/etc/apt/sources.list:deb http://ir.archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list:deb http://ir.archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list:deb http://ir.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list:deb http://ir.archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list:deb http://ir.archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list:deb http://ir.archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list:deb http://ir.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security multiverse
/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
/etc/apt/sources.list.d/lutris-team-ubuntu-lutris-focal.list:deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/google-chrome.list.save:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/lutris-team-ubuntu-lutris-focal.list.save:deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main
/etc/apt/sources.list.save:deb http://ir.archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list.save:deb http://ir.archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list.save:deb http://ir.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list.save:deb http://ir.archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list.save:deb http://ir.archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list.save:deb http://ir.archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list.save:deb http://ir.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list.save:deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list.save:deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list.save:deb http://security.ubuntu.com/ubuntu focal-security multiverse
/etc/apt/sources.list.save:deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
bahman
Level 2
Level 2
Posts: 10
Joined: Sun May 30, 2021 4:12 pm

Re: Cannot install wineHQ

Post by bahman »

I tried to resolve the dependency issue by installing what is requested. It asked me to install another dependency, etc. Until I came to install libc6:i386 which required installing 6 packages and removing 2800 packages which seemed potentially harmful so stop that track.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Cannot install wineHQ

Post by jkfloris »

Make sure the i386 and the amd64 versions of libc6 are exactly the same.

You can find the available versions with:

Code: Select all

apt policy libc6 libc6:i386
And install a specific version with:

Code: Select all

sudo apt install libc6:i386=<the version number you found>
bahman
Level 2
Level 2
Posts: 10
Joined: Sun May 30, 2021 4:12 pm

Re: Cannot install wineHQ

Post by bahman »

I use the only version which was available but the same problem. It tells me that 2160 packages will be removed and 6 packages will be installed.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Cannot install wineHQ

Post by jkfloris »

What is the output of:

Code: Select all

apt policy libc6 libc6:i386
bahman
Level 2
Level 2
Posts: 10
Joined: Sun May 30, 2021 4:12 pm

Re: Cannot install wineHQ

Post by bahman »

jkfloris wrote: Tue Jun 01, 2021 1:43 am What is the output of:

Code: Select all

apt policy libc6 libc6:i386
Here the output:
ibc6:
Installed: 2.31-0ubuntu9.3
Candidate: 2.31-0ubuntu9.3
Version table:
*** 2.31-0ubuntu9.3 100
100 /var/lib/dpkg/status
2.31-0ubuntu9.2 500
500 http://ir.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
2.31-0ubuntu9 500
500 http://ir.archive.ubuntu.com/ubuntu focal/main amd64 Packages
libc6:i386:
Installed: (none)
Candidate: 2.31-0ubuntu9.2
Version table:
2.31-0ubuntu9.2 500
500 http://ir.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages
2.31-0ubuntu9 500
500 http://ir.archive.ubuntu.com/ubuntu focal/main i386 Packages
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Cannot install wineHQ

Post by jkfloris »

From https://bugs.launchpad.net/ubuntu/+sour ... ug/1926918
Please downgrade libc6 to the version in focal-updates. The one installed has been removed from -updates because it caused regressions and the new version superseding 2.31-0ubuntu9.3 is not yet released.

...

Try this:

Code: Select all

sudo apt install libc6=2.31-0ubuntu9.2
Now you should be able to install libc6:i386
bahman
Level 2
Level 2
Posts: 10
Joined: Sun May 30, 2021 4:12 pm

Re: Cannot install wineHQ

Post by bahman »

jkfloris wrote: Tue Jun 01, 2021 3:57 pm From https://bugs.launchpad.net/ubuntu/+sour ... ug/1926918
Please downgrade libc6 to the version in focal-updates. The one installed has been removed from -updates because it caused regressions and the new version superseding 2.31-0ubuntu9.3 is not yet released.

...

Try this:

Code: Select all

sudo apt install libc6=2.31-0ubuntu9.2
Now you should be able to install libc6:i386
Good. I just have one question. Doesn't libc6 get upgraded again when I upgrade the system?
bahman
Level 2
Level 2
Posts: 10
Joined: Sun May 30, 2021 4:12 pm

Re: Cannot install wineHQ

Post by bahman »

After downgrading lib6 I was able to install wineHQ without the need to go through dependency. Thanks for your time.
Locked