I recently decided to install Wine on my computer so I could run some Windows programs on Kubuntu 21.04. However, whenever I install package winehq-devel
, I get the output below:
darkbrave_@darkbrave-kubuntu:~$ sudo apt install 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 (= 6.15~hirsute-1)
E: Unable to correct problems, you have held broken packages.
darkbrave_@darkbrave-kubuntu:~$
If I try to install wine-devel
, I get this:
darkbrave_@darkbrave-kubuntu:~$ sudo apt install 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:
libsdl2-2.0-0 : Depends: libgbm1 (>= 17.1.0~rc2) but it is not installable
E: Unable to correct problems, you have held broken packages.
darkbrave_@darkbrave-kubuntu:~$
I followed the instructions on the official Wine wiki, but get these errors. Even if I try to install the packages it can't install, those packages install fine, but if I run the wine install command again, I still get these errors.
Output of cat /etc/apt/sources.list
:
darkbrave_@darkbrave-kubuntu:~$ cat /etc/apt/sources.list
# deb cdrom:[Kubuntu 21.04 _Hirsute Hippo_ - Release amd64 (20210420)]/ hirsute main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ hirsute main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute main restricted
#
#
deb http://us.archive.ubuntu.com/ubuntu/ hirsute-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute-updates main restricted
#
#
#
deb http://us.archive.ubuntu.com/ubuntu/ hirsute universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute universe
deb http://us.archive.ubuntu.com/ubuntu/ hirsute-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute-updates universe
#
#
#
#
#
deb http://us.archive.ubuntu.com/ubuntu/ hirsute multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hirsute-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute-updates multiverse
#
#
#
#
#
deb http://us.archive.ubuntu.com/ubuntu/ hirsute-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute-backports main restricted universe multiverse
#
#
#
#
# deb http://archive.canonical.com/ubuntu hirsute partner
# deb-src http://archive.canonical.com/ubuntu hirsute partner
deb http://security.ubuntu.com/ubuntu hirsute-security main restricted
# deb-src http://security.ubuntu.com/ubuntu hirsute-security main restricted
deb http://security.ubuntu.com/ubuntu hirsute-security universe
# deb-src http://security.ubuntu.com/ubuntu hirsute-security universe
deb http://security.ubuntu.com/ubuntu hirsute-security multiverse
# deb-src http://security.ubuntu.com/ubuntu hirsute-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.
darkbrave_@darkbrave-kubuntu:~$
Contents of /etc/apt/sources.list.d/
:
darkbrave_@darkbrave-kubuntu:/etc/apt/sources.list.d$ ls
adoptopenjdk.list
archive_uri-https_dl_winehq_org_wine-builds_ubuntu_-hirsute.list
teams.list
darkbrave_@darkbrave-kubuntu:/etc/apt/sources.list.d$
Contents of /etc/apt/sources.list.d/archive_uri-https_dl_winehq_org_wine-builds_ubuntu_-hirsute.list
:
darkbrave_@darkbrave-kubuntu:/etc/apt/sources.list.d$ cat archive_uri-https_dl_winehq_org_wine-builds_ubuntu_-hirsute.list
deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main
darkbrave_@darkbrave-kubuntu:/etc/apt/sources.list.d$