0

Im on ubuntu 22.04 and i tried installing wine. i followed all the steps on the website and it was good the repository was working but when i did sudo apt install --install-recommends winehq-stable it gave me an error:

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.1~jammy-1)
E: Unable to correct problems, you have held broken packages.

Please help

  • What is "the website"? Unless you have a specific need for the latest version of wine, undo all you have done and install wine from the Ubuntu repos. – Organic Marble Dec 29 '22 at 13:01
  • winehq.org , i need the latest version because ubuntu 22.04 doesn't support older versions – Mr. Anonymous Dec 29 '22 at 13:50
  • I guarantee you Ubuntu 22.04 supports the version in its repos. – Organic Marble Dec 29 '22 at 15:56
  • 2
    Does this answer your question? [How do I resolve unmet dependencies after adding a PPA?](https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa) – karel Jan 04 '23 at 15:48

1 Answers1

0

I have no problems to install it.

sudo dpkg --add-architecture i386

add 32-bit arch. Now we need the key for repo

wget -O- https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/winehq.gpg

Then we add the repo for jammy.

echo deb [signed-by=/usr/share/keyrings/winehq.gpg] http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main | sudo tee /etc/apt/sources.list.d/winehq.list

Now

sudo apt update && sudo apt install --install-recommends winehq-stable

Gives on my System

wine --version
wine-7.0.1

Sidenote I have only mozillateam repo enabled (for firefox and thunderbird packages). All other packages on my system from default repos.

source

nobody
  • 5,149
  • 5
  • 22
  • 43