Score:0

Cannot install Wine

in flag

I am trying to install Wine, but this error comes up when doing the final step:

$ sudo apt install --install-recommends winehq-stable
[sudo] password for ocean: 
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~hirsute-1)
E: Unable to correct problems, you have held broken packages.

How can I resolve this?

N0rbert avatar
zw flag
What is your Ubuntu version?
nobody avatar
gh flag
looks like hirsute
Ocean Stock avatar
in flag
it is 20.04 LTS
Score:1
zw flag

You have added wrong repository of Wine. If you are running 20.04 LTS, then its codename is focal. The hirsute codename means 21.04, which is not your version. You have to remove wrong repository, then add correct one instead.

To fix the problem use the following terminal commands:

sudo add-apt-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main'

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
sudo apt-get update
sudo apt install --install-recommends winehq-stable
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.