无法在 Jammy (22.04) 中安装 wine32

无法在 Jammy (22.04) 中安装 wine32

我在 Kubuntu 22.04 上,并按照通常的方式使用 apt 安装了 wine64:

$ wine --version
it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32"
wine-6.0.3 (Ubuntu 6.0.3~repack-1)

$ wine64 --version
wine-6.0.3 (Ubuntu 6.0.3~repack-1)

当我尝试使用“apt-get install wine32”安装 wine32 时,我得到:

$ sudo apt install wine32
[sudo] password for oreo: 
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:
 apt : Depends: libapt-pkg6.0 (>= 2.4.5) 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
 shim-signed : Depends: grub-efi-amd64-signed but it is not going to be installed or
                        grub-efi-arm64-signed 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
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

这是无法修复的,我无法弄清楚哪个是必须降级的有问题的软件包(遇到此问题的其他人不得不降级一些软件包)。

任何帮助深表感谢。

答案1

今晚我在 Xubuntu 22.04 上遇到了同样的问题,这让我很抓狂,直到我弄清楚了。就我而言,我有一个libsystemd0适用于 amd64 的新版本,但 i386 没有。amd64 和 i386 都有新版本,但由于分阶段更新,它不允许我升级到它。

运行apt-cache看看libsystemd0政策显示:

$ apt-cache policy libsystemd0:{amd64,i386}
libsystemd0:
  Installed: 249.11-0ubuntu3.1
  Candidate: 249.11-0ubuntu3.1
  Version table:
     249.11-0ubuntu3.3 1 (phased 10%)
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
 *** 249.11-0ubuntu3.1 100
        100 /var/lib/dpkg/status
     249.11-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libsystemd0:i386:
  Installed: (none)
  Candidate: 249.11-0ubuntu3
  Version table:
     249.11-0ubuntu3.3 1 (phased 10%)
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
     249.11-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main i386 Packages

249.11-0ubuntu3.1安装了适用于 amd64 的版本,但无法用于 i386。249.11-0ubuntu3.3由于分阶段升级,该版本处于“隔离”状态,在上面的输出中显示为 10%。我不想冒险降级249.11-0ubuntu3,因为不知道会发生什么。

您有两个选择。您可以再等几天,直到升级可用。升级您的系统并再次尝试安装wine32

或者,按照我的做法启用分阶段更新。创建一个/etc/apt/apt.conf.d/99phased-updates文件并添加以下行:

APT::Get::Always-Include-Phased-Updates "1";

然后执行apt-get update并再次尝试安装wine32

完成后,您可能需要将“1”更改为“0”以禁用自动获取分阶段更新,因为这可能有利于避免破坏测试版部署。

答案2

添加架构 i386 后,我做了很多事情,但什么也没做,所以我运行 sudo apt install sudo apt-get install libgd3:i386,然后 sudo apt-get install all dependency with :i386 在最后使用软件和更新中的开发人员选项选项卡中的预发布更新标志,然后 sudo update 和 sudo apt install wine32:i386 并完成我的 ubuntu 是 22.04.02

答案3

这些步骤对我有用

sudo dpkg --add-architecture i386
sudo apt update
sudo apt-get install wine32

相关内容