在 ubuntu 22.04 上安装 wine 时获取大量软件包依赖项

在 ubuntu 22.04 上安装 wine 时获取大量软件包依赖项

我已经尝试过这里的说明:

https://wiki.winehq.org/Ubuntu

脚步:
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
sudo apt install --install-recommends winehq-stable

但我明白这一点:
The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 8.0.0.0~jammy-1)

当我尝试安装时wine-stable,出现以下信息:

The following packages have unmet dependencies:
apt : Depends: libapt-pkg6.0 (>= 2.4.9) but it is not going to be installed
   Depends: libsystemd0 but it is not installable
bsdutils : PreDepends: libsystemd0 but it is not installable
init : PreDepends: systemd-sysv
libdbus-1-3 : Depends: libsystemd0 but it is not installable
           Recommends: dbus
libpci3 : Depends: libudev1 (>= 196) but it is not installable
libpulse0 : Depends: libsystemd0 but it is not installable
libusb-1.0-0 : Depends: libudev1 (>= 183) but it is not installable
shim-signed : Depends: grub-efi-amd64-signed (>= 1.187.2~) but it is not going to be installed or
                    grub-efi-arm64-signed (>= 1.187.2~) but it is not installable
           Depends: grub2-common (>= 2.04-1ubuntu24)
util-linux : PreDepends: libsystemd0 but it is not installable
          PreDepends: libudev1 (>= 183) but it is not installable
wine-stable-amd64 : Depends: libudev1 (>= 183) but it is not installable

我尝试安装依赖项,但我已经安装完了所有依赖项。我完全糊涂了!我该如何安装 wine?

答案1

您只是众多被 winehq 说明误导的人中最新的一个。请让他们知道,他们的文档又让另一个用户感到失望。

安装 Wine 的简便方法:

  1. 撤消那些说明要求您安装的所有内容。每个软件包。每个脚本。每个 apt 源。甚至架构。

    这是最难的部分。要有条不紊。如果是新系统,重新安装可能会更容易。您不能留下任何 winehq 残余;它会产生版本冲突,从而阻止安装任何其他东西。

  2. 将 Ubuntu 系统恢复到出厂状态后,只需sudo apt install wine

    Wine 和许多其他优秀软件已在 Ubuntu 存储库中存在近二十年。不要再随意访问网站寻找软件了;那样只会破坏您的系统。请改用您的 Ubuntu 软件应用程序。大多数用户需要的几乎所有东西都已在那里了。

相关内容