由于依赖性问题,无法更新,也无法安装任何内容

由于依赖性问题,无法更新,也无法安装任何内容
 sudo dpkg --remove --force-remove-reinstreq python3-distupgrade
dpkg: dependency problems prevent removal of python3-distupgrade:
 ubuntu-release-upgrader-core depends on python3-distupgrade (= 1:16.04.21).
 python3-update-manager depends on python3-distupgrade.
 ubuntu-release-upgrader-gtk depends on python3-distupgrade (= 1:16.04.21); however:
  Package python3-distupgrade is to be removed.

dpkg: error processing package python3-distupgrade (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 python3-distupgrade

答案1

首先尝试一下,在终端中输入以下命令:

$ sudo apt-get autoremove $ sudo apt-get autoclean $ sudo apt-get update $ sudo apt-get -f install

现在应该不存在任何依赖性问题。尝试安装一些应用程序。

您可以尝试的另一件事是使用以下命令打开终端:

sudo rm /var/lib/apt/lists/lock sudo apt-get update

现在您应该能够安装软件包或更新。

相关内容