我无法在 KDE neon 5.26(Ubuntu 22.10)上安装 WINE。我按照 WineHQ 安装指南进行操作https://wiki.winehq.org/Ubuntu。
我知道 KDE neon 预装了 WINE,但是在安装新版本之前我已将其删除。
失败的步骤是实际的winehq-stable
软件包安装。我尝试了winehq-devel
和winehq-staging
软件包,但结果相同。
$ sudo apt install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) winehq-stable:amd64 < none -> 7.0.1~kinetic-1 @un puN Ib >
Broken winehq-stable:amd64 Depends on wine-stable:amd64 < none @un H > (= 7.0.1~kinetic-1)
Considering wine-stable:amd64 0 as a solution to winehq-stable:amd64 9999
Considering wine-stable:i386 0 as a solution to winehq-stable:amd64 9999
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.1~kinetic-1)
E: Unable to correct problems, you have held broken packages.
我检查过是否安装了一些杂散的 WINE 包,但什么也没有,除了一个不幸的 kwin 包,其名称中带有“wine”:
$ apt list --installed | grep wine
libkwineffects14/jammy,now 4:5.26.3-0xneon+22.04+jammy+release+build21 amd64 [installed]
答案1
有人通过安装旧版本解决了这个问题libpoppler-glib8
:https://www.reddit.com/r/kdeneon/comments/ya6wmb/comment/itaavu8/?utm_source=share&utm_medium=web2x&context=3
然后只有一个包导致问题。你可以看到 Neon 在以下位置提供了这个包
amd64
:$ apt show -a libpoppler-glib8 | grep Version Version: 22.09.0-0xneon+22.04+jammy+release+build3 Version: 22.02.0-2ubuntu0.1 Version: 22.02.0-2
但根本没有提供 i386 版本:
$ apt show -a libpoppler-glib8:i386 | grep Version Version: 22.02.0-2ubuntu0.1 Version: 22.02.0-2
因此,您可以像这样安装适用于这两种架构的 Ubuntu 版本:
sudo apt install libpoppler-glib8:{i386,amd64}=22.02.0-2ubuntu0.1
然后 WINE 安装就好了
之后,您可以从其中一个 Wine 分支安装 Wine 包。在本例中,我将选择winehq-stable
:
sudo apt install --install-recommends winehq-stable