无法在 ubuntu 20.04 focus 上安装 wine

无法在 ubuntu 20.04 focus 上安装 wine

我有 ubuntu 20.04 focus:

$ lsb_release -a
LSB Version:    core-11.1.0ubuntu2-noarch:printing-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal

我安装了 wine 7.0,但必须安装一些 libpcre2 软件包,这破坏了 wine。我尝试按照此处的说明重新安装 wine (https://wiki.winehq.org/Ubuntu),但现在我收到此错误:

$ sudo apt-get install --install-recommends winehq-stable
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:
 winehq-stable : Depends: wine-stable (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.

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

$ sudo apt-get install wine-stable
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:
 wine-stable : Depends: wine-stable-i386 (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.

然后我得到:

The following packages have unmet dependencies:
 wine-stable-i386:i386 : Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
                         Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                         Depends: libgstreamer-plugins-base1.0-0:i386 (>= 1.0.0) but it is not going to be installed
                         Depends: libgstreamer1.0-0:i386 (>= 1.4.0) but it is not going to be installed
                         Depends: libsane:i386 (>= 1.0.24) but it is not going to be installed
                         Recommends: libodbc1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

它会层层递进,直到我最终发现存在大量相互冲突的依赖项,导致各种错误。我不知道如何恢复到 wine 正常工作之前的状态。

我的 sources.list 中有以下几行:

$ cat /etc/apt/sources.list | grep wine
deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main

编辑:我尝试卸载 libpcre2 软件包以查看是否允许我重新安装 wine,但出现了以下错误列表:

https://pastebin.com/qkFdLxwX

我不知道为什么当我告诉它删除这些软件包时,它会说这些软件包“不会被”安装。

另外,我不确定这是否重要,但我正在使用 KDE Plasma。

相关内容