如何修复“winehq-stable:依赖:wine-stable(= 8.0.0.0~jammy-1)”

如何修复“winehq-stable:依赖:wine-stable(= 8.0.0.0~jammy-1)”

使用后wine 安装教程下载 wine:

$ sudo dpkg --add-architecture i386

$ sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

进而

sudo wget -nc -P /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources cause my ubuntu version is 20.04

$ sudo apt update

一切正常,直到我必须下载 Wine 稳定分支,

sudo apt 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 (= 8.0.0.0~jammy-1)
E: Unable to correct problems, you have held broken packages.

有人能帮我吗?我试过很多论坛和方法,但都没有用。

答案1

这是您的 ubuntu 版本,与 jammy 的 wine 8.0 不兼容,您必须从 20.04 更新到 22.04。它对我有用。

答案2

也遇到过这个问题。通过 Winehq 论坛后解决了。

  • 步骤 1:我必须使用以下命令将软件包降级到官方 Ubuntu 版本: sudo apt install libgd3=2.3.0-2ubuntu2
  • 第二步:我必须逃跑 sudo apt install --install-recommends wine-stable-i386:i386
  • 步骤 3:我尝试重新安装该软件包,问题解决了 sudo apt install --install-recommends winehq-stable

您可以参考上述来自 Winehq 论坛的步骤。 https://forum.winehq.org/viewtopic.php?t=37388

相关内容