I know this question has at least half a dozen with a similar title, but none of those answers or comments help me. So here we go:
I tried to follow the instructions on the Wine Wiki. When I did
sudo dpkg --add-architecture i386
the command returned to the prompt with no error, so I assumed the architecture was added successfully. I added the repository as instructed, and then I did:
sudo apt update
.
Of course the screen rolled so fast that I didn't look if any mention of i386 was being made. I tried to sudo apt install -install-recommends winehq-stable
and I got the dreaded message that a dependency was not being installed. I tried to sudo apt install
that one, which gave me yet another unmet dependency. I tried to follow the unmet dependencies until I got such a long list that I got tired of typing them all by hand (bonus question: is there a way to do that automatically? Like sending that output to a file and copying and pasting it back to the console?). So I checked the architecture with sudo dpkg --print-architecture
* and big surprise: it returned only amd64, no i386.
At this point I purged the wine-ppa and tried to install wine from the regular ubuntu repositories, thinking I would live with the fact that it may not be the latest. Only it didn't install that either: it gave me the message
wine : Depends: wine64 (>= 5.0-3ubuntu1) but it is not going to be installed or
wine32 (>= 5.0-3ubuntu1)
Depends: wine64 (< 5.0-3ubuntu1.1~) but it is not going to be installed or
wine32 (< 5.0-3ubuntu1.1~)
I thought it funny that the message seems to suggest that wine
depends on both an older and a newer version of the same packages. I thought something could have been left from the ppa I added previously and so I followed these instructions to even delete the lock files of apt
. No change: the message is still there. I got to the point where I don't know how to proceed.
Edit:
I also looked at the dpkg log before and after trying sudo dpkg --add-architecture i386
and there's no change. The try didn't get logged (don't know if it should).
*Yet, if I type sudo dpkg --print-foreign-architectures
it does show i386 (only).
--install-recommends
when you installedwinehq-stable
, as insudo apt install --install-recommends winehq-stable
? – galexite Aug 03 '21 at 21:48apt-rdepends
then upload output of these commands to https://paste.ubuntu.com 1)apt-get -s -o Debug::pkgProblemResolver=yes install wine
2)echo q | aptitude -s install wine
3)apt-cache policy $(apt-rdepends wine 2>/dev/null | grep "^[a-zA-Z]" | sort | paste -s -d" ")
– user.dz Aug 09 '21 at 21:26apt
– user.dz Aug 10 '21 at 16:18sources.list
other than 'partners'. Could you guide me to doing what you mean? Also, can that have anything to do with not being (apparently) able to enable the i386 architecture? – Andyc Sep 20 '21 at 14:57libc6
from the output shared previously https://paste.ubuntu.com/p/9TghTXxfpW/ . you have version2.31-0ubuntu9.2
installed but no active repository for that version , well from Ubuntu packages search page https://packages.ubuntu.com/search?searchon=names&keywords=libc6 it is located in focal-update (main) channel. I think you have update active but not for all channels (main, universe, multiverse...). Would you share your currentsources.list
(may be it was edited manually, and software properties could guess it wrong) – user.dz Sep 21 '21 at 08:50source.list
file: https://paste.ubuntu.com/p/MnQVhgyVDh/ I can't see anything missing, but your trained eye may catch the problem. – Andyc Sep 23 '21 at 17:48dpkg --print-architecture; dpkg --print-foreign-architectures
– user.dz Sep 23 '21 at 18:03dpkg --print-architecture
givesamd64
,dpkg --print-foreign-architectures
givesi386
. – Andyc Sep 23 '21 at 21:24sudo apt update
Lately or after changing settings? – user.dz Sep 23 '21 at 21:36sudo apt upgrade
– Andyc Sep 24 '21 at 15:50