I'm trying to install wine32 as it is required by PlayOnLinux. The installation fails due to missing dependencies.
This is not a duplicate of How do I resolve unmet dependencies after adding a PPA?, specifically I have already tried the things suggested there such as:
sudo apt-get update
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get -f install
Checking all sources are enabled in: gksu software-properties-gtk. Changing the server.
sudo apt-get -u dist-upgrade
returns 0 everywhere including "not upgraded"
Requested output linked question:
$ sudo apt install wine32
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:
wine32:i386 : Depends: libwine:i386 (= 5.0-3ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)]/ focal main restricted
deb-src http://archive.ubuntu.com/ubuntu focal main restricted
#Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu focal main restricted
deb-src http://archive.ubuntu.com/ubuntu focal multiverse universe #Added by software-properties
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted deb-src http://archive.ubuntu.com/ubuntu focal-updates multiverse main restricted universe #Added by software-properties
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu focal universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal universe
deb http://archive.ubuntu.com/ubuntu focal-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu focal multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse
## N.B. software from this repository may not have been tested
as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted
universe multiverse
deb-src http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
#Added by software-properties
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner
deb http://archive.ubuntu.com/ubuntu focal-security main restricted
deb-src http://archive.ubuntu.com/ubuntu focal-security multiverse main restricted universe
#Added by software-properties
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://archive.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://archive.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
$ cat /etc/apt/sources.list.d/*
deb http://ppa.launchpad.net/appimagelauncher-team/stable/ubuntu focal main
# deb-src http://ppa.launchpad.net/appimagelauncher-team/stable/ubuntu focal main
deb http://ppa.launchpad.net/appimagelauncher-team/stable/ubuntu focal main
# deb-src http://ppa.launchpad.net/appimagelauncher-team/stable/ubuntu focal main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb http://ppa.launchpad.net/helkaluin/webp-pixbuf-loader/ubuntu focal main
# deb-src http://ppa.launchpad.net/helkaluin/webp-pixbuf-loader/ubuntu focal main deb http://ppa.launchpad.net/helkaluin/webp-pixbuf-loader/ubuntu focal main
# deb-src http://ppa.launchpad.net/helkaluin/webp-pixbuf-loader/ubuntu focal main
deb http://ppa.launchpad.net/jaap.karssenberg/zim/ubuntu focal main
# deb-src http://ppa.launchpad.net/jaap.karssenberg/zim/ubuntu focal main
deb http://ppa.launchpad.net/jaap.karssenberg/zim/ubuntu focal main
# deb-src http://ppa.launchpad.net/jaap.karssenberg/zim/ubuntu focal main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main
deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu focal main
# deb-src http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu focal main
deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu foca main
# deb-src http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu focal main
deb https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/
deb https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/
# deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu focal main
# deb-src http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu focal main
# deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu focal main
# deb-src http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu focal main
# # ProtonVPN stable release #
deb [arch="all", signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] https://repo.protonvpn.com/debian stable main
# # ProtonVPN stable release #
deb [arch="all", signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] https://repo.protonvpn.com/debian stable main
deb http://ppa.launchpad.net/savoury1/ffmpeg4/ubuntu focal main
# deb-src http://ppa.launchpad.net/savoury1/ffmpeg4/ubuntu focal main
deb http://ppa.launchpad.net/savoury1/ffmpeg4/ubuntu focal main
# deb-src http://ppa.launchpad.net/savoury1/ffmpeg4/ubuntu focal main
deb [arch=amd64] https://repo.skype.com/deb stable main
deb [arch=amd64] https://repo.skype.com/deb stable main
deb https://download.sublimetext.com/ apt/stable/
deb https://download.sublimetext.com/ apt/stable/
# Tailscale packages for ubuntu focal
deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/ubuntu focal main
# Tailscale packages for ubuntu focal
deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/ubuntu focal main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code stable main
I have tried things like:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install wine32
and
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
I have tried purging. I have tried installing the missing dependencies that are mentioned, but it fails because I have "held broken packages" e.g.:
The following packages have unmet dependencies: wine32:i386 : Depends: libwine:i386 (= 5.0-3ubuntu1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
I have tried to list the "broken dependencies" with dpkg --get-selections | grep hold
(https://askubuntu.com/a/223267/800252) which returns nothing.
I have tried purging and starting either method over again:
sudo apt remove --purge winehq-stable wine-stable wine1.8 wine-mono wine-gecko wine32:i386
sudo apt autoremove
sudo apt autoclean
Nothing has helped. Finally I tried aptitude which suggested the following solution:
"sudo aptitude install winehq-stable
(edited out due to character limit and request for other long output)"
Would this be safe to do? Will it lead to problems elsewhere? (And will it even resolve my issue?)
apt policy wine32
to your question. I'm pretty sure you're using some ppa because the Ubuntu repos don't have all those versions. – Organic Marble Mar 26 '24 at 12:02sudo apt install wine
since you did all the purging and starting over? If so, it would be best to update your question with the current output. It seems at some point you added sources from winehq, be sure to remove all of them. You must remove the sources not just the packages from them.winehq-stable
does not exist in the standard Ubuntu repos. – Organic Marble Mar 26 '24 at 13:11Reading state information... Done Some packages could not be installed. (...)
The following packages have unmet dependencies: wine32:i386 : Depends: libwine:i386 (= 5.0-3ubuntu1) but it is not going to be installed E: Unable to correct problems, you have held broken packages."
– Kvothe Mar 26 '24 at 13:32sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
If you don't remove this source, you will have dependency problems. – Organic Marble Mar 26 '24 at 13:33apt policy wine32
output I showed not show it was removed? Otherwise how would I check? How would I remove it?(Also from what I read elsewhere the winehq download is supposed to be the more reliable way no?)
– Kvothe Mar 26 '24 at 13:35sudo apt update
and try installing wine32 again. – Organic Marble Mar 26 '24 at 13:38sudo apt update
followed bysudo apt install wine32
it gave the same error as before. – Kvothe Mar 26 '24 at 13:41as recommended elsewhere. That is the "repo version" right? I only tried winehq after this had failed and I found the recommendation to do it that way.
"apt policy libwine:i386 libwine:i386: Installed: (none) Candidate: 5.0-3ubuntu1 Version table: 5.0-3ubuntu1 500 500 http://www-ftp.lip6.fr/pub/linux/distributions/Ubuntu/archive focal/universe i386 Packages "
– Kvothe Mar 26 '24 at 13:46sudo apt-get install playonlinux
. That ran without any errors. – Kvothe Mar 26 '24 at 13:51sudo apt-get install playonlinux
on my plain vanilla 20.04 virtual machine it installed wine and wine32 as part of the playonlinux installation, and I was able to successfully install Acrobat Reader through playonlinux. That means I have no idea what is wrong with your system. I am sorry, I do not even know where to begin troubleshooting this. I'm sorry I wasted your time. https://i.imgur.com/O3Mgf9M.png – Organic Marble Mar 26 '24 at 14:09