我确信这个问题以前出现过,但我已经搜索并尝试了很多方法,却无法解决它。
我试图安装 wine 来运行 Windows 应用程序,但当我在命令行中尝试时,我总是收到消息“无法纠正问题,您持有的包裹已损坏。”。我运行了诸如sudo apt upgrade
和 full-upgrade 以及 update 之类的命令sudo apt-get install -f
,我尝试使用sudo dpkg
,我尝试清除我认为有缺陷的文件(wine-stable),我去了 Synaptic 包管理器,在那里我发现了 4 个损坏的文件,但是当尝试修复它们时,Synaptic 失败了,说有损坏的包需要在此之前修复,所以我陷入了循环。
在写这篇文章之前发生的最后一件事是命令行返回“0 个已升级,0 个已新安装,0 个已删除,0 个未升级。”每当我尝试升级、清除、删除或自动删除有缺陷的文件时,系统都会提示文件未安装、不存在等。但如果我尝试再次使用它安装 wine,系统sudo apt-get install winehq-stable
仍会显示相同的消息,即存在损坏的软件包。
我没有主意了,任何帮助都将不胜感激。
编辑:好的,我会在这里粘贴一些输出,抱歉格式不正确,这是我第一次来这里。
guilherme@guilherme-dell:~$ sudo apt-get install winehq-stable
[sudo] password for guilherme:
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 (= 5.0.0~bionic)
E: Unable to correct problems, you have held broken packages.
guilherme@guilherme-dell:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
guilherme@guilherme-dell:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
guilherme@guilherme-dell:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
guilherme@guilherme-dell:~$ sudo apt-get install wine-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:
wine-stable : Depends: wine-stable-i386 (= 5.0.0~bionic)
Depends: wine-stable-amd64 (= 5.0.0~bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.