无法在 Ubuntu 22.04 上安装 Wine

无法在 Ubuntu 22.04 上安装 Wine

我正在尝试在 Ubuntu 22.04 上安装 wine。我按照此处的说明进行操作:https://wiki.winehq.org/Ubuntu。以下是我尝试过的:

$ sudo apt install --install-recommends winehq-stable
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-stable : Depends: wine-stable (= 7.0.0.0~bullseye-1)
E: Unable to correct problems, you have held broken packages.
$ sudo apt install wine-stable
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:
 wine-stable-amd64 : Depends: libldap-2.4-2 (>= 2.4.7) but it is not installable
                     Recommends: libodbc1 but it is not going to be installed
                     Recommends: libosmesa6 but it is not going to be installed
 wine-stable-i386:i386 : Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not installable
                         Recommends: libcups2:i386 but it is not going to be installed
                         Recommends: libglu1-mesa:i386 but it is not going to be installed or
                                     libglu1:i386
                         Recommends: libodbc1:i386 but it is not going to be installed
                         Recommends: libosmesa6:i386 but it is not going to be installed
                         Recommends: libsdl2-2.0-0:i386 but it is not going to be installed
                         Recommends: libv4l-0:i386 but it is not going to be installed
                         Recommends: libxcomposite1:i386 but it is not going to be installed
                         Recommends: libxcursor1:i386 but it is not going to be installed
                         Recommends: libxfixes3:i386 but it is not going to be installed
                         Recommends: libxi6:i386 but it is not going to be installed
                         Recommends: libxinerama1:i386 but it is not going to be installed
                         Recommends: libxrandr2:i386 but it is not going to be installed
                         Recommends: libxxf86vm1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt install libldap-2.4-2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libldap-2.4-2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libldap-common

E: Package 'libldap-2.4-2' has no installation candidate

我已经有了libldap-common

$ sudo apt install libldap-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libldap-common is already the newest version (2.5.11+dfsg-1~exp1ubuntu3.1).
libldap-common set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

以下是我使用以下方法找到的可能的安装候选者tab tab

$ sudo apt install libldap
libldap-2.5-0      libldap-common     libldap-java       
libldap2-dev       libldap-dev        libldap-ocaml-dev  

我已经有 libldap-2.5-0,但我不知道如何降到 libldap-2.4-2。

$ sudo apt install libldap-2.5-0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libldap-2.5-0 is already the newest version (2.5.11+dfsg-1~exp1ubuntu3.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

有人能帮我下载 wine 吗?

答案1

Ubuntu 22.04 卡在 2021 年 1 月发布的 Wine 6.0 上,这太糟糕了。您可能需要较新的 WineHQ 版本来玩许多不同的游戏。

您的系统缺少 Wine 所需的一些 32 位版本常用软件包。通常情况下,系统应该缺少这些软件包,但许多 Windows 仍停留在 32 位版本。请确保已启用 i386,并且您有软件包条目。

dpkg --add-architecture i386
apt update

22.04 上记录的一个问题是 KDE Neon 的 libpoppler-glib8 依赖项已损坏。解决方案是sudo apt install libpoppler-glib8:{i386,amd64}=22.02.0-2ubuntu0.1。其他第三方存储库可能已损坏(通常是由于不支持 i386),但存储库太多,无法全部查看。

WineHQ 稍后可能会有更多记录在案的问题:https://wiki.winehq.org/Ubuntu

相关内容