Comment 12 for bug 2000832

Revision history for this message
jre (jre-phoenix) wrote :

Na, sorry, I understood you correctly and stand by my suggestions. ;)

But don't worry, I just set up a fresh VM with ubuntu-22.04.2-desktop-amd64.iso to see what's going on.

First I installed wine:

~~~~~
test@ubuntu2004:~$ sudo dpkg --add-architecture i386
test@ubuntu2004:~$ sudo apt update
test@ubuntu2004:~$ sudo apt upgrade
test@ubuntu2004:~$ sudo apt install wine
test@ubuntu2004:~$ wine --version
wine-6.0.3 (Ubuntu 6.0.3~repack-1)
test@ubuntu2004:~$ dpkg -l "*wine*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-p
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-================-==============-============-==========================
ii fonts-wine 6.0.3~repack-1 all Windows API implementation
ii libwine:amd64 6.0.3~repack-1 amd64 Windows API implementation
ii libwine:i386 6.0.3~repack-1 i386 Windows API implementation
un q4wine <none> <none> (no description available)
ii wine 6.0.3~repack-1 all Windows API implementation
un wine-binfmt <none> <none> (no description available)
un wine-stable <none> <none> (no description available)
ii wine32:i386 6.0.3~repack-1 i386 Windows API implementation
un wine32-preloader <none> <none> (no description available)
ii wine64 6.0.3~repack-1 amd64 Windows API implementation
un wine64-preloader <none> <none> (no description available)
un winetricks <none> <none> (no description available)
~~~~~

So this worked for the regular Wine packages from the Ubuntu archive, including the wine32 package. However this is Wine 6.0.3. If you want Wine 8.0 you need to get it from somewhere else (e.g. winehq.org) - but make sure to uninstall every other Wine package first, e.g.
~~~~~
sudo apt purge wine wine32 wine64 libwine libwine:i386 fonts-wine
~~~~~

Verify you uninstalled all Wine packages:
~~~~~
dpkg -l "*wine*"
~~~~~
Lines starting with "ii" mean the package is installed, "un" is not installed.

Then install whatever Wine package you want.

Note that the Wine packages from winehq.org do not have, suggest or require a wine32 package. Only the "wine" package from the Ubuntu archives asks you to install "wine32". Do not install wine32 together with winehq packages.

For reference, this is what you should get for winehq-stable:

~~~~~
test@ubuntu2004:~$ dpkg -l "*wine*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================-===============-============-=======================
un wine <none> <none> (no description available)
un wine-amd64 <none> <none> (no description available)
un wine-i386 <none> <none> (no description available)
ii wine-stable 8.0.0.0~jammy-1 amd64 WINE Is Not An Emulator
ii wine-stable-amd64 8.0.0.0~jammy-1 amd64 WINE Is Not An Emulator
ii wine-stable-i386:i386 8.0.0.0~jammy-1 i386 WINE Is Not An Emulator
un wine1.4 <none> <none> (no description available)
un wine1.4-amd64 <none> <none> (no description available)
un wine1.4-i386 <none> <none> (no description available)
un wine1.5 <none> <none> (no description available)
un wine1.5-amd64 <none> <none> (no description available)
un wine1.5-i386 <none> <none> (no description available)
un wine1.6 <none> <none> (no description available)
un wine1.6-amd64 <none> <none> (no description available)
un wine1.6-i386 <none> <none> (no description available)
un wine1.7 <none> <none> (no description available)
un wine1.7-amd64 <none> <none> (no description available)
un wine1.7-i386 <none> <none> (no description available)
un wine32 <none> <none> (no description available)
un wine64 <none> <none> (no description available)
ii winehq-stable 8.0.0.0~jammy-1 amd64 WINE Is Not An Emulator -
~~~~~

If this still doesn't work, you have other problematic packages installed, e.g. in mismatching versions on i386, or from an incompatible origin.

E.g. @greygeek77 you have a libapt-pkg6.0 which is both outdated (2.4.7 instead of 2.4.8) and from an unknown origin. Even if your system seems to be updating fine, it is not updated completely/correctly. I suspect there are issues with many packages installed on your system that have an unknown origin (see your dependencies.txt).

Try to figure out what's wrong with the following command. It's output should be nearly identical to mine once you solved your issue.

~~~~~
test@ubuntu2004:~$ apt-cache policy libapt-pkg6.0
libapt-pkg6.0:
  Installed: 2.4.8
  Candidate: 2.4.8
  Version table:
 *** 2.4.8 500
        500 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.4.5 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
~~~~~

I also successfully installed wine-stable from winehq. First I purged the Ubuntu Wine packages and then copy&pasted your instructions.

I assume the "broken count" that you are seeing will be gone once you have fixed your system, especially apt and libapt6.0.

Good luck!