【问题标题】:Ubuntu16.04 - Unmet dependencies - apt-get -f install raises error tooUbuntu16.04 - 未满足的依赖项 - apt-get -f install 也会引发错误
【发布时间】:2019-12-02 14:36:48
【问题描述】:

我正在尝试升级 Ubuntu 16.04。我不小心运行了这个命令:sudo apt-get purge python3.6,因为手动安装 python 3.6 时出现问题,现在一切都报错了。

milano@milano-Aspire-VN7-591G:~$ sudo apt install update-manager-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
update-manager-core is already the newest version (1:18.04.11.10).
update-manager-core set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 debconf-i18n : Depends: debconf (= 1.5.58ubuntu1) but 1.5.66ubuntu1 is to be installed
 glib-networking : Depends: libglib2.0-0 (>= 2.55.0) but 2.48.2-0ubuntu4.1 is to be installed
 glib-networking-services : Depends: libglib2.0-0 (>= 2.55.0) but 2.48.2-0ubuntu4.1 is to be installed
 libcommon-sense-perl : Depends: perlapi-5.22.1 but it is not installable
                        Depends: perl (< 5.22.2~) but 5.26.1-6ubuntu0.3 is to be installed
 libglib-perl : Depends: perlapi-5.22.1 but it is not installable
 libgnome2-vfs-perl : Depends: perlapi-5.22.1 but it is not installable
 libgoa-1.0-0b : Depends: libgoa-1.0-common (= 3.18.3-1ubuntu2) but 3.28.0-0ubuntu2.1 is to be installed
 libgoa-backend-1.0-1 : Depends: libglib2.0-0 (>= 2.52) but 2.48.2-0ubuntu4.1 is to be installed
                        Depends: libgoa-1.0-0b (>= 3.25.4) but 3.18.3-1ubuntu2 is to be installed
 libgtk2-appindicator-perl : Depends: perlapi-5.22.1 but it is not installable
 libimage-magick-q16-perl : Depends: perlapi-5.22.1 but it is not installable
 libnet-libidn-perl : Depends: perlapi-5.22.1 but it is not installable
 libperl5.22 : Depends: perl-modules-5.22 (>= 5.22.1-9ubuntu0.6) but it is not installable
 libproc-processtable-perl : Depends: perlapi-5.22.1 but it is not installable
 python3-dev : Depends: python3 (= 3.6.7-1~18.04) but 3.5.1-3 is to be installed
               Depends: python3-distutils (>= 3.6.7-1~) but it is not going to be installed
 python3.6-dev : Depends: python3.6 (= 3.6.9-1~18.04) but it is not going to be installed
 update-manager : Depends: update-manager-core (= 1:16.04.12) but 1:18.04.11.10 is to be installed
 update-notifier : Depends: update-notifier-common (= 3.168.9) but 3.192.1.7 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

所以我尝试运行命令:sudo apt-get -f install

milano@milano-Aspire-VN7-591G:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 debconf-i18n : Depends: debconf (= 1.5.58ubuntu1) but 1.5.66ubuntu1 is installed
 glib-networking : Depends: libglib2.0-0 (>= 2.55.0) but 2.48.2-0ubuntu4.1 is installed
 glib-networking-services : Depends: libglib2.0-0 (>= 2.55.0) but 2.48.2-0ubuntu4.1 is installed
 libcommon-sense-perl : Depends: perlapi-5.22.1 but it is not installable
                        Depends: perl (< 5.22.2~) but 5.26.1-6ubuntu0.3 is installed
 libglib-perl : Depends: perlapi-5.22.1 but it is not installable
 libgnome2-vfs-perl : Depends: perlapi-5.22.1 but it is not installable
 libgoa-1.0-0b : Depends: libgoa-1.0-common (= 3.18.3-1ubuntu2) but 3.28.0-0ubuntu2.1 is installed
 libgoa-backend-1.0-1 : Depends: libglib2.0-0 (>= 2.52) but 2.48.2-0ubuntu4.1 is installed
                        Depends: libgoa-1.0-0b (>= 3.25.4) but 3.18.3-1ubuntu2 is installed
 libgtk2-appindicator-perl : Depends: perlapi-5.22.1 but it is not installable
 libimage-magick-q16-perl : Depends: perlapi-5.22.1 but it is not installable
 libnet-libidn-perl : Depends: perlapi-5.22.1 but it is not installable
 libperl5.22 : Depends: perl-modules-5.22 (>= 5.22.1-9ubuntu0.6) but it is not installable
 libproc-processtable-perl : Depends: perlapi-5.22.1 but it is not installable
 python3-dev : Depends: python3 (= 3.6.7-1~18.04) but 3.5.1-3 is installed
               Depends: python3-distutils (>= 3.6.7-1~) but it is not installed
 python3.6-dev : Depends: python3.6 (= 3.6.9-1~18.04) but it is not installed
 update-manager : Depends: update-manager-core (= 1:16.04.12) but 1:18.04.11.10 is installed
 update-notifier : Depends: update-notifier-common (= 3.168.9) but 3.192.1.7 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

你知道该怎么做吗?

【问题讨论】:

    标签: ubuntu ubuntu-16.04 apt dpkg


    【解决方案1】:

    您是否尝试过确保没有所需软件包的更新版本。

    sudo apt update --fix-missing
    

    之前

    sudo apt-get -f install
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-01
      • 1970-01-01
      • 2023-03-11
      • 2022-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多