我在 Ubuntu 和 Debian 之间遇到了损坏的软件包/冲突。特别是,Thunderbird 和 Perl 无法更新。
对于 Perl,我得到了类似
$ sudo apt upgrade perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... 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 resolve the situation:
The following packages have unmet dependencies:
libclass-xsaccessor-perl : Depends: perl (< 5.30.1~) but 5.32.1-4+deb11u1 is to be installed
libcommon-sense-perl : Depends: perl (< 5.30.1~) but 5.32.1-4+deb11u1 is to be installed
perl : Depends: perl-base (= 5.32.1-4+deb11u1) but 5.30.0-9ubuntu0.2 is to be installed
Depends: perl-modules-5.32 (>= 5.32.1-4+deb11u1) but it is not going to be installed
Depends: libperl5.32 (= 5.32.1-4+deb11u1) but it is not going to be installed
我的 PPA 列表应该是合理的,包括sources.list.d/
:
debian.list
dropbox.list
graphics:darktable.list
graphics-drivers-ubuntu-ppa-focal.list
jonaski-ubuntu-strawberry-focal.list
nodesource.list
sbt.list
spotify.list
以下是debian.list
deb http://ftp.debian.org/debian bullseye main
deb http://ftp.debian.org/debian bullseye-updates main
deb http://security.debian.org bullseye-security main
除了重新安装外,有什么想法可以修复它吗?(我希望将其推迟到 22.04)
答案1
您的 PPA 列表是不是合理。您不应该将 Debian 存储库与 Ubuntu 存储库混合使用,因为这两个操作系统的二进制不兼容,尽管 Ubuntu 基于 Debian。
尽快删除这些 PPA。使用不合适的存储库可能会严重损坏系统,甚至导致需要重新安装。仅在以下情况下添加第三方存储库:1) 没有其他选择;2) 明确指出它们适用于您使用的特定 Ubuntu 版本。
答案2
问题在于您混合了来自不同发行版的来源。
这是一个坏主意,会引起冲突和各种其他问题。
不要混合来自其他发行版或不同版本的 Ubuntu 的源。