按照以下指示wiki.winehq.org/Ubuntu,我删除了以前版本的 wine 的所有痕迹(apt 密钥、所有程序和相关程序、所有以前对存储库的引用)。我添加了版本 20.04 的新存储库及其密钥并启用了 32 位架构。我运行apt 更新。
winhq-stable 拒绝安装,抱怨 wine-stable 的依赖关系未解决。后者拒绝安装,抱怨 wine-stable-i386 的依赖关系未解决。wine-stable-i386 的安装抱怨有八个依赖关系未解决:
The following packages have unmet dependencies:
wine-stable-i386:i386 : Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
Depends: libgstreamer-plugins-base1.0-0:i386 (>= 1.0.0) but it is not going to be installed
Depends: libgstreamer1.0-0:i386 (>= 1.4.0) but it is not going to be installed
Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
Depends: libsane:i386 (>= 1.0.24) but it is not going to be installed
Recommends: libcups2:i386 but it is not going to be installed
Recommends: libfontconfig1:i386 but it is not going to be installed
Recommends: libfreetype6:i386 but it is not going to be installed
Recommends: libgnutls30:i386 but it is not going to be installed or
libgnutls28:i386 but it is not installable or
libgnutls26:i386 but it is not installable
对于 winhq-devel 来说,模式是相同的,wine-devel-i386 的列表稍微短一些(只有最后五个直接依赖项)。
我在这个网站上做了一些研究(askubuntu.com/questions/tagged/wine+20.04)和其他人;我发现了类似的问题(不太详细),但是**未提出解决方案**。
我尝试解决 *-i386 软件包的依赖关系,但似乎无休止……在某种程度上,sudo apt--fix-broken 安装提供的解决方案破坏性大于建设性,并且(据我尝试过)不会带来积极的结果。
如果没有人知道答案,我会先尝试升级到 Ubuntu 22.04 (Jammy Jellyfish)。(法语翻译自www.DeepL.com/Translator)
感谢您的帮助。