Cannot install winehq on Ubuntu 20.04: unmet dependencies

Questions about Wine on Linux
Locked
ahangarha
Newbie
Newbie
Posts: 3
Joined: Mon May 25, 2020 3:43 am

Cannot install winehq on Ubuntu 20.04: unmet dependencies

Post by ahangarha »

I am using Kubuntu 20.04. I have added winehq PPA as per instruction on the website. But I cannot install it due to the following error:

Code: Select all

  ~ sudo apt install --install-recommends winehq-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:
 winehq-staging : Depends: wine-staging (= 5.9~focal)
E: Unable to correct problems, you have held broken packages.
I cannot install wine-staging also as it depends on wine-staging-i386 (= 5.9~focal) which doesn't exist.

It is same if I want to install stable release from ppa.
ahangarha
Newbie
Newbie
Posts: 3
Joined: Mon May 25, 2020 3:43 am

Re: Cannot install winehq on Ubuntu 20.04: unmet dependencies

Post by ahangarha »

Doesn't help. See:

Code: Select all

➜  ~ sudo apt install winehq-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:
 winehq-staging : Depends: wine-staging (= 5.9~focal)
E: Unable to correct problems, you have held broken packages.
➜  ~ 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-i386 (= 5.9~focal)
E: Unable to correct problems, you have held broken packages.
➜  ~ sudo apt install wine-staging=i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version 'i386' for 'wine-staging' was not found
➜  ~ 

jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Cannot install winehq on Ubuntu 20.04: unmet dependencies

Post by jkfloris »

wine-staging : Depends: wine-staging-i386
...
sudo apt install wine-staging=i386
What error message do you get without the typo?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Cannot install winehq on Ubuntu 20.04: unmet dependencies

Post by dimesio »

The last error message said

Code: Select all

wine-staging-i386  
but you tried to install

Code: Select all

wine-staging=i386
See the difference?
ahangarha
Newbie
Newbie
Posts: 3
Joined: Mon May 25, 2020 3:43 am

Re: Cannot install winehq on Ubuntu 20.04: unmet dependencies

Post by ahangarha »

I don't now how I made such mistake!

This is the error:

Code: Select all

➜  ~ sudo apt install wine-staging-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-staging-i386:i386 : Depends: libasound2-plugins:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I tried

Code: Select all

sudo apt install libasound2-plugins:i386
which installed the dependency. Then, I tried

Code: Select all

sudo apt install winehq-staging
and it is installed now

Sorry for my stupid mistake! I don't make such mistakes usually.
Locked