Wine cannot be installed.

Questions about Wine on Linux
Locked
Baldovska
Newbie
Newbie
Posts: 1
Joined: Sun Dec 26, 2021 10:29 am

Wine cannot be installed.

Post by Baldovska »

I'm kinda new to the whole Linux thing so I'm probably doing something obviously wrong here...
I wanted to install Wine because many apps that I use don't have Linux support. I opened Ubuntu Software store and started downloading Wine but after a while an error appeared:

Code: Select all

Unable to install Wine: The following packages have unmet dependencies.
After a while of searching the web I found an wiki about downloading it thought terminal (https://wiki.winehq.org/Ubuntu).
I followed it but unsuccessfully. This is what terminal outputted:

-sudo dpkg --add-architecture i386
nothing

-wget -nc https://dl.winehq.org/wine-builds/winehq.key

Code: Select all

--2021-12-26 18:00:04--  https://dl.winehq.org/wine-builds/winehq.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.194.217, 151.101.130.217, 151.101.66.217, ...
Connecting to dl.winehq.org (dl.winehq.org)|151.101.194.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3220 (3,1K) [application/pgp-keys]
Saving to: 'winehq.key’

winehq.key                100%[==================================>]   3,14K  --.-KB/s    in 0,001s  

2021-12-26 18:00:05 (3,13 MB/s) - 'winehq.key’ saved [3220/3220]

-sudo apt-key add winehq.key

Code: Select all

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

Code: Select all

Hit:1 http://archive.canonical.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease                                    
Hit:3 https://repo.steampowered.com/steam stable InRelease                                          
Hit:4 https://dl.winehq.org/wine-builds/ubuntu impish InRelease                                     
Hit:5 https://dl.winehq.org/wine-builds/ubuntu hirsute InRelease
Hit:6 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:7 http://sk.archive.ubuntu.com/ubuntu focal InRelease
Hit:8 http://sk.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:9 http://sk.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done                 
-sudo apt update

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
-sudo apt install --install-recommends winehq-stable (I tried also the other ones)

Code: Select all

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~impish-1)
E: Unable to correct problems, you have held broken packages.
I don't know what am I doing wrong here. Can you help me out please? :(
magjo67
Newbie
Newbie
Posts: 1
Joined: Mon May 03, 2021 3:04 am

Re: Wine cannot be installed.

Post by magjo67 »

It looks like you have added the winehq repo for impish + hirsute + focal
Just add the one corresponding to your Ubuntu version (focal)
Mrs.J
Newbie
Newbie
Posts: 1
Joined: Sun Apr 11, 2021 9:36 pm

Re: Wine cannot be installed.

Post by Mrs.J »

I am getting a similar error.

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 (= 6.0.2~bionic-1)
E: Unable to correct problems, you have held broken packages.
But I have the correct Wine Repo for my system

Code: Select all

System:    Host: KIBTB-Office Kernel: 5.4.0-91-generic x86_64 bits: 64 compiler: gcc v: 7.5.0 
           Desktop: Cinnamon 4.4.8 wm: muffin dm: LightDM Distro: Linux Mint 19.3 Tricia 
           base: Ubuntu 18.04 bionic
Repos:     Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           1: deb https: //dl.winehq.org/wine-builds/ubuntu/ bionic main
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine cannot be installed.

Post by dimesio »

Locked