我使用的是 64 位的 Ubuntu 22.04,当我尝试从 WineHQ 或 Ubuntu 存储库安装 Wine 时,发生了这种情况
$ 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 (= 8.0.0.0~jammy-1)
E: Unable to correct problems, you have held broken packages.
然后当我尝试安装 wine-stable 时,发生了这种情况
$ sudo apt install --install-recommends 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:
libgphoto2-6:i386 : Depends: libgd3:i386 (>= 2.1.0~alpha~) but it is not installable
E: Unable to correct problems, you have held broken packages.
如果我尝试安装libgd3:i386
,是的,它会安装,winehq-stable
然后 gnome 控制中心就会消失,这是我的桌面设置,也会php-gd
消失,重新安装libgd3
将删除 Wine32,这会使 Wine 无法运行
我确实添加了架构
$ dpkg --print-architecture
amd64
$ dpkg --print-foreign-architectures
i386
我该如何解决这个问题?
答案1
尝试:
sudo apt install libpcre3:amd64=2:8.39-13ubuntu0.22.04.1 libpcre3:i386=2:8.39-13ubuntu0.22.04.1
sudo apt install --install-recommends winehq-stable