安装 winehq :损坏的软件包,未满足的依赖关系

安装 winehq :损坏的软件包,未满足的依赖关系

按照中的说明进行操作https://wiki.winehq.org/Debian当尝试在 Debian 10 amd64 中安装 wine 时,我收到此错误apt-get install winehq-stable

Reading package lists... Done
Building dependency tree       
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~buster-1)
E: Unable to correct problems, you have held broken packages.

所以我尝试安装wine-stable并获得相同的输出要求wine-stable-i386 (= 7.0.0.0~buster-1)

当尝试安装时wine-stable-i386,我们遇到了无法解决的情况:

https://pastebin.com/1XVd5HnC

我已检查是否允许 i386:dpkg --print-foreign-architectures打印i386

我已经安装了 winehq,没有什么大问题,但是在安装另一个软件包时,wine 和一堆 lib* 软件包被删除了。我不知道到底是哪个包导致了这个问题,但可能是以下之一:qt5-defaultopenssllibc6zlib1g:amd64或。看看我发现 i386 软件包经常有标志,这意味着它们被卸载,留下配置文件,所以可能有问题的软件包卸载了 winehq 和 i386 lib* 的东西。build-essentialpkg-configdpkg -lrc

我尝试安装winehq-stableaptitude install winehq-stable没有解决问题:

https://pastebin.com/bJ6YBMXU

我的sources.list看起来像这样:

https://pastebin.com/3565Rxfu

有趣的是,我尝试安装 libc6:i386 而 debian 只是想删除其他所有内容:_D

https://pastebin.com/gncTNK9R

似乎所有问题都是在尝试安装任何 i386 东西时出现的。

我宁愿避免再次安装整个系统,所以欢迎任何有关如何解决此问题的想法!

的输出apt policy libc6 libc6:i386是:

libc6:
  Installed: 2.28-10+deb10u1
  Candidate: 2.28-10+deb10u1
  Version table:
 *** 2.28-10+deb10u1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status
libc6:i386:
  Installed: (none)
  Candidate: 2.28-10
  Version table:
     2.28-10 500
        500 http://deb.debian.org/debian buster/main i386 Packages
        100 /var/lib/dpkg/status

答案1

您的存储库索引不一致。在安装多架构包之前,您需要确保您的系统在所有必需的架构上完全是最新的:

sudo apt update
sudo apt upgrade

update步骤应确保您的输出显示和包的apt policy相同候选版本。该步骤是必需的,因为安装最新版本的软件包,并且如果变体已安装但不是最新的,则无法安装软件包。amd64i386upgradeapt installi386amd64

相关内容