Can't get wine to work on Kubuntu 24.04 "missing wine32:i386"

Questions about Wine on Linux
Locked
reneas
Newbie
Newbie
Posts: 2
Joined: Sat Aug 17, 2024 1:42 pm

Can't get wine to work on Kubuntu 24.04 "missing wine32:i386"

Post by reneas »

When I try to run wine it results in this message:

Code: Select all

it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32:i386"

When trying to do so by running

Code: Select all

sudo apt-get install wine32:i386
it results in this:

Code: Select all

sudo apt-get install wine32:i386
Reading package lists... Done
Building dependency tree... Done
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:
libgd3:i386 : Depends: libheif1:i386 (>= 1.17.6-1ubuntu4~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I tried installing libheif1:i386:

Code: Select all

sudo apt-get install libheif1:i386
Reading package lists... Done
Building dependency tree... Done
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:
libheif1:i386 : Depends: libdav1d5:i386 (>= 0.1.0) but it is not installable
Depends: libde265-0:i386 (>= 1.0.7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And finally when trying to install "libdav1d5:i386" I am hitting a dead end as it seems:

Code: Select all

sudo apt install libdav1d5:i386
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libdav1d5:i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libdav1d5:i386' has no installation candidate
I found some hints here where it says:
If your package manager complains about unmet dependencies when trying to install Wine, work your way backwards. Try installing whatever package your package manager complains has unmet dependencies, see what your it complains about, then try to install that. Keep working your way backwards until you solve whatever is blocking everything else.

A common problem on Ubuntu-based system is having installed a PPA version of a library that is newer than what is available in the standard repository. PPA packages may not be multiarch compatible and/or may not have i386 packages built, and since Debian/Ubuntu-based systems require the i386 and x86_64 versions of a package to be exactly the same, the user is unable to install the i386 version needed by Wine because no matching version can be found. The solution is to either change the installed version of the library back to the one from the standard repository so you can install both the 32 and 64 bit packages, or find an i386 package whose version exactly matches the one already installed.
Unfortunately I don't quite understand how to do what is described there. Can anyone bring some light into the darkness here? :?
reneas
Newbie
Newbie
Posts: 2
Joined: Sat Aug 17, 2024 1:42 pm

Re: Can't get wine to work on Kubuntu 24.04 "missing wine32:i386"

Post by reneas »

I also had this topic on AskUbuntu here and found a solution to the problem. It turned out to be a problem with my sources.list file. The whole solution is found there!
tooster
Newbie
Newbie
Posts: 2
Joined: Fri Oct 04, 2024 2:25 pm

Re: Can't get wine to work on Kubuntu 24.04 "missing wine32:i386"

Post by tooster »

I tried and it still doesn't work. `libdav1d5:i386` still has no installation candidate and `sudo apt install --install-recommends wine` doesn't install `wine32:i386`. It prints `wine is already the newest version (9.0~repack-4build3).`
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get wine to work on Kubuntu 24.04 "missing wine32:i386"

Post by dimesio »

tooster wrote: Fri Oct 04, 2024 2:31 pm I tried and it still doesn't work. `libdav1d5:i386` still has no installation candidate and `sudo apt install --install-recommends wine` doesn't install `wine32:i386`. It prints `wine is already the newest version (9.0~repack-4build3).`
libdav1d5 is not a dependency of wine; I don't know why you're getting that error.

9.0~repack-4build3 is the distro package, not ours. If you want to keep that, ask for help on the Ubuntu forum. If you are trying to install our package, uninstall the distro package and follow the instructions on https://gitlab.winehq.org/wine/wine/-/w ... ian-Ubuntu to install the WineHQ packages.
tooster
Newbie
Newbie
Posts: 2
Joined: Fri Oct 04, 2024 2:25 pm

Re: Can't get wine to work on Kubuntu 24.04 "missing wine32:i386"

Post by tooster »

Following the help from the link you provided didn't help, and those are basically the steps I tried earlier as well. What I did:

Code: Select all

$ sudo dpkg --add-architecture i386
(I had this arch already)

Code: Select all

$ sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Code: Select all

$ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
which resulted in the following file content:

Code: Select all

Types: deb
URIs: https://dl.winehq.org/wine-builds/ubuntu
Suites: noble
Components: main
Architectures: amd64 i386
Signed-By: /etc/apt/keyrings/winehq-archive.key

Code: Select all

sudo apt update
I then tried tried installing using the command listed on the wiki:

Code: Select all

$ sudo apt install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package winehq-stable
resulting in error, so I tried without hq suffix as recommended here:

Code: Select all

$ sudo apt install --install-recommends wine-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  wine wine64
Suggested packages:
  q4wine winbind winetricks playonlinux wine-binfmt dosbox exe-thumbnailer | kio-extras wine64-preloader
Recommended packages:
  wine32
The following NEW packages will be installed
  wine wine-stable wine64
0 to upgrade, 3 to newly install, 0 to remove and 3 not to upgrade.
Need to get 2 064 B/310 kB of archives.
After this operation, 846 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://pl.archive.ubuntu.com/ubuntu noble/universe amd64 wine-stable all 3.0.1ubuntu1 [2 064 B]
Fetched 2 064 B in 24s (84 B/s)
Selecting previously unselected package wine64.
(Reading database ... 532995 files and directories currently installed.)
Preparing to unpack .../wine64_9.0~repack-4build3_amd64.deb ...
Unpacking wine64 (9.0~repack-4build3) ...
Selecting previously unselected package wine.
Preparing to unpack .../wine_9.0~repack-4build3_all.deb ...
Unpacking wine (9.0~repack-4build3) ...
Selecting previously unselected package wine-stable.
Preparing to unpack .../wine-stable_3.0.1ubuntu1_all.deb ...
Unpacking wine-stable (3.0.1ubuntu1) ...
Setting up wine64 (9.0~repack-4build3) ...
Setting up wine (9.0~repack-4build3) ...
Setting up wine-stable (3.0.1ubuntu1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for wine (9.0~repack-4build3) ...
Which seemed to have installed without problems until I checked wine versions and got:

Code: Select all

$ wine --version
it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32:i386"
wine-9.0 (Ubuntu 9.0~repack-4build3)
(again this error)

So I tried (this and

Code: Select all

wine32:i386
variant)

Code: Select all

$ sudo apt install --install-recommends wine32
Reading package lists... Done
Building dependency tree... Done
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.
 libgd3:i386 : Depends: libheif1:i386 (>= 1.17.6-1ubuntu4~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
and following the trail of broken packages:

Code: Select all

$ sudo apt install libheif1:i386
Reading package lists... Done
Building dependency tree... Done
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.
 libheif1:i386 : Depends: libdav1d5:i386 (>= 0.1.0) but it is not installable
                 Depends: libde265-0:i386 (>= 1.0.7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And finally a dead end:

Code: Select all

$ sudo apt install libdav1d5:i386
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libdav1d5:i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libdav1d5:i386' has no installation candidate
So I don't know what's going on. Possibly apt uses official wine repo instead of the wine's? Should I change the repo priority maybe, and if so how?
tooster
Newbie
Newbie
Posts: 2
Joined: Fri Oct 04, 2024 2:25 pm

Re: Can't get wine to work on Kubuntu 24.04 "missing wine32:i386"

Post by tooster »

This is the content of the wine repository taken from my sources list:

Code: Select all

$ cat /var/lib/apt/lists/dl.winehq.org_wine-builds_ubuntu_dists_noble_main_binary-i386_Packages | grep Package: | uniq
Package: wine-devel-dbg
Package: wine-devel-dev
Package: wine-devel-i386
Package: wine-devel
Package: wine-staging-dbg
Package: wine-staging-dev
Package: wine-staging-i386
Package: wine-staging
Package: winehq-devel
Package: winehq-staging

$ cat /var/lib/apt/lists/dl.winehq.org_wine-builds_ubuntu_dists_noble_main_binary-amd64_Packages | grep Package: | uniq 
Package: wine-devel-amd64
Package: wine-devel-dbg
Package: wine-devel-dev
Package: wine-devel
Package: wine-staging-amd64
Package: wine-staging-dbg
Package: wine-staging-dev
Package: wine-staging
Package: winehq-devel
Package: winehq-staging
So as you can see, there is no winehq-stable and wine-stable yet for noble, but this may not be clear unless you know a little about apt. Some crucial info about this case is missing from https://gitlab.winehq.org/wine/wine/-/w ... ian-Ubuntu and perhaps wiki is out of date.

And indeed, it would seem as at the time of writing this post no stable release is present: viewtopic.php?t=39006
So I guess installing wine following instructions from the wiki results in wine defaulting to the distro's default instead of wine's. For now I could use devel to possibly mitigate that, but it would be nice if the info was present on the wiki.

But then, actually, trying to install

Code: Select all

winehq-devel
results in similar problems:

Code: Select all

sudo apt install --install-recommends winehq-devel
Reading package lists... Done
Building dependency tree... Done
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-devel : Depends: wine-devel (= 9.19~noble-1)
E: Unable to correct problems, you have held broken packages.

$ sudo apt install --install-recommends wine-devel  
Reading package lists... Done
Building dependency tree... Done
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.
 libgd3:i386 : Depends: libheif1:i386 (>= 1.17.6-1ubuntu4~) but it is not installable
 wine-devel-amd64 : Depends: libavformat60 (>= 7:6.0)
 wine-devel-i386:i386 : Depends: libavformat60:i386 (>= 7:6.0)
E: Unable to correct problems, you have held broken packages.

$ sudo apt install libheif1:i386
Reading package lists... Done
Building dependency tree... Done
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.
 libheif1:i386 : Depends: libdav1d5:i386 (>= 0.1.0) but it is not installable
                 Depends: libde265-0:i386 (>= 1.0.7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Basically boiling down to

Code: Select all

libdav1d5:i386
being not installable once again.
Last edited by tooster on Mon Oct 07, 2024 3:35 am, edited 5 times in total.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can't get wine to work on Kubuntu 24.04 "missing wine32:i386"

Post by dimesio »

Our packages are built using the standard Ubuntu repositories. The most common reason for the problem you are facing is the user has added a package from a PPA that does not have the i386 version needed for wine. Try removing the offending PPA and reinstall the standard Ubuntu packages for the packages apt is complaining about.
regs01
Newbie
Newbie
Posts: 3
Joined: Wed Oct 16, 2024 6:39 pm

Re: Can't get wine to work on Kubuntu 24.04 "missing wine32:i386"

Post by regs01 »

tooster wrote: Mon Oct 07, 2024 3:14 am

Code: Select all

The following packages have unmet dependencies.
 wine-devel-amd64 : Depends: libavformat60 (>= 7:6.0)
 wine-devel-i386:i386 : Depends: libavformat60:i386 (>= 7:6.0)
E: Unable to correct problems, you have held broken packages.
Took couple of hours to figure it out.
libavformat60 depends on libzmq5

libzmq5 depends on libpgm-5.3-0, which was already installed, but no longer available in repositories for whatever reason.
https://packages.ubuntu.com/en/noble/libzmq5

While libpgm-5.3-0t64 is now available for all platforms.
https://packages.ubuntu.com/en/noble/libpgm-5.3-0t64

So after replacing it libpgm-5.3-0 with libpgm-5.3-0t64 (with apt install libpgm-5.3-0t64) libavformat60 dependency error gone and wine-staging 9.19 installed successfully.

Hope APT3 will deal better with this kind of problems.
Locked