我使用的是 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)
Run Code Online (Sandbox Code Playgroud)
当我尝试使用“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.
Run Code Online (Sandbox Code Playgroud)
这是不可能修复的,我无法弄清楚我必须降级哪个是有问题的软件包(其他遇到此问题的人必须降级某些软件包)。
任何帮助深表感谢。
小智 5
今晚我在 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
Run Code Online (Sandbox Code Playgroud)
我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";
Run Code Online (Sandbox Code Playgroud)
然后执行apt-get update并再次尝试安装wine32。
完成后,您可能需要将“1”更改为“0”以禁用自动获取分阶段更新,因为这可能有助于避免破坏测试部署中的内容。
| 归档时间: |
|
| 查看次数: |
6973 次 |
| 最近记录: |