Ubuntu 实时安装时无法安装任何东西

Ubuntu 实时安装时无法安装任何东西

我正在运行 Ubuntu 20.04 LTS 的实时安装,其持久存储为 40GB。出于某种原因,我无法安装任何东西,否则会出现错误Unable to correct problems, you have held broken packages.(请参阅下面的完整输出)。例如,我正在尝试安装 Keepass2。我已经添加了存储库sudo apt-add-repository ppa:jtaylor/keepass,我已经更新了 apt sudo apt-get update && sudo apt-get upgrade,但运行时sudo apt-get install keepass2 -y仍然出现相同的错误!尝试安装 i2p 时,我几乎执行了完全相同的过程,并且也出现了损坏的软件包错误。我也无法打开 Ubuntu 软件应用程序。

完整输出sudo apt-get install keepass2 -y

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:
 keepass2 : Depends: mono-runtime (>= 3.0~) but it is not installable
            Depends: libmono-corlib4.5-cil (>= 5.18.0.240) but it is not installable
            Depends: libmono-system-drawing4.0-cil (>= 5.12.0.309) but it is not installable
            Depends: libmono-system-security4.0-cil (>= 5.18.0.240) but it is not installable
            Depends: libmono-system-windows-forms4.0-cil (>= 5.16.0.220) but it is not installable
            Depends: libmono-system-xml4.0-cil (>= 4.6.1.3) but it is not installable
            Depends: libmono-system4.0-cil (>= 5.18.0.240) but it is not installable
            Recommends: xsel but it is not installable
E: Unable to correct problems, you have held broken packages.

完整输出sudo apt-get dist-upgrade

[sudo] password for i2p: 
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.

已安装的 PPA:

/etc/apt/sources.list:deb cdrom:[Ubuntu 20.04.5 LTS _Focal Fossa_ - Release amd64 (20220831)]/ focal main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ focal-security main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list.d/i2p-maintainers-ubuntu-i2p-focal.list:deb http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu focal main
/etc/apt/sources.list.d/i2p-maintainers-ubuntu-i2p-focal.list:# deb-src http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu focal main
/etc/apt/sources.list.d/i2p-maintainers-ubuntu-i2p-focal.list:# deb-src http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu focal main
/etc/apt/sources.list.d/i2p-maintainers-ubuntu-i2p-focal.list.save:deb http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu focal main
/etc/apt/sources.list.d/i2p-maintainers-ubuntu-i2p-focal.list.save:# deb-src http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu focal main
/etc/apt/sources.list.d/i2p-maintainers-ubuntu-i2p-focal.list.save:# deb-src http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu focal main
/etc/apt/sources.list.d/jtaylor-ubuntu-keepass-focal.list:deb http://ppa.launchpad.net/jtaylor/keepass/ubuntu focal main
/etc/apt/sources.list.d/jtaylor-ubuntu-keepass-focal.list:# deb-src http://ppa.launchpad.net/jtaylor/keepass/ubuntu focal main

答案1

问题出在我的 Linux 版本上。因为我正在运行sudo add-apt-repository ppa:phoerious/keepassxc它,所以它会自动获取最新版本,即 22.10 的存储库。为了解决这个问题,我找到了 20.04 的旧存储库,并通过“软件和更新”手动将它们添加到软件源中。

相关内容