无法使用 Apt 安装 Wine,因为我的软件包已损坏

无法使用 Apt 安装 Wine,因为我的软件包已损坏

我最近决定在我的计算机上安装 Wine,以便可以在 Kubuntu 21.04 上运行一些 Windows 程序。但是,每当我安装软件包时winehq-devel,我都会得到以下输出:

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:~$ 

如果我尝试安装wine-devel,我会得到以下信息:

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:~$ 

我按照官方 Wine 维基百科,但会出现这些错误。即使我尝试安装无法安装的软件包,这些软件包也可以正常安装,但如果我再次运行 wine install 命令,仍然会出现这些错误。

输出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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ hirsute-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ hirsute-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://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

## 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://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

## 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://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

## 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 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:~$ 

内容/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$ 

内容/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
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ hirsute main
darkbrave_@darkbrave-kubuntu:/etc/apt/sources.list.d$ 

相关内容