Install wine in Ubuntu 22.04

Questions about Wine on Linux
Locked
gusarg81
Level 1
Level 1
Posts: 6
Joined: Mon Oct 31, 2022 7:25 am

Install wine in Ubuntu 22.04

Post by gusarg81 »

Hi,

I'am trying to install Wine in Ubuntu 22.04 (KDE Neon user edition in this case), with winehq repos (deb https://dl.winehq.org/wine-builds/ubuntu jammy main) but:
sudo apt install --install-recommends winehq-staging
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) winehq-staging:amd64 < none -> 7.19~jammy-1 @un puN Ib >
Broken winehq-staging:amd64 Depends on wine-staging:amd64 < none @un H > (= 7.19~jammy-1)
Considering wine-staging:amd64 0 as a solution to winehq-staging:amd64 9999
Considering wine-staging:i386 0 as a solution to winehq-staging:amd64 9999
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 (= 7.19~jammy-1)
E: Unable to correct problems, you have held broken packages.

Any ideas how to solve this dependencies problem?

Thanks in advance.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Install wine in Ubuntu 22.04

Post by jkfloris »

Check if there are old packages installed

Code: Select all

LC_ALL=C apt list --installed | grep installed,local
# Remove the old packages (if necessary) with:
# sudo apt remove <package name>
Try to install Wine step-by-step

Code: Select all

sudo apt install --install-recommends wine-staging-i386:i386
sudo apt install --install-recommends wine-staging-amd64
sudo apt install --install-recommends winehq-staging
If a step fails, please post the full output and the output of

Code: Select all

apt-cache policy
jimmygunner
Newbie
Newbie
Posts: 3
Joined: Wed Nov 02, 2022 3:29 am

Re: Install wine in Ubuntu 22.04

Post by jimmygunner »

Hi,

seems to be 'neon-related' for I have the same issue on two 'neon-machines' (build 10/23/22). Nevertheless Wine 7.20 installs perfectly under 'ubuntu-studio' with KDE (checked it today). As far I can say neon/wine has a dependency problem with 'libpoppler-glib8:i386' and 'libsane(1):i386'.

Unfortunately, I haven't found a solution yet...
jimmygunner
Newbie
Newbie
Posts: 3
Joined: Wed Nov 02, 2022 3:29 am

Re: Install wine in Ubuntu 22.04

Post by jimmygunner »

A minor update: Do you have 'gir1.2-poppler-0.18' and 'pdfarranger' installed? These packages seem to conflict with 'libpoppler-glib8:i386'...
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Install wine in Ubuntu 22.04

Post by jkfloris »

Indeed, the KDE Neon repository is not fully multiarch. Perhaps you can install the Ubuntu version of libpoppler-glib8.

Code: Select all

# See which version is available for both architectures
apt policy libpoppler-glib8 libpoppler-glib8:i386

# Install the version with (for example)
sudo apt install libpoppler-glib8=22.02.0-2ubuntu0.1 libpoppler-glib8:i386=22.02.0-2ubuntu0.1
You may also need to downgrade the packages that depend on libpoppler-glib8 to the Ubuntu version.

(I do not have the 'gir1.2-poppler-0.18' and 'pdfarranger' packages installed.)
jimmygunner
Newbie
Newbie
Posts: 3
Joined: Wed Nov 02, 2022 3:29 am

Re: Install wine in Ubuntu 22.04

Post by jimmygunner »

gusarg81
Level 1
Level 1
Posts: 6
Joined: Mon Oct 31, 2022 7:25 am

Re: Install wine in Ubuntu 22.04

Post by gusarg81 »

Yeah, solved like it says in KDE Forum. Thanks.
Locked