软件包具有未满足的依赖关系

软件包具有未满足的依赖关系

昨天我收到了将我的 16.04 升级到 18.04 的通知。

在此过程中,它提到我有一些具有未满足的依赖关系的包。

经过上述操作sudo apt-get -f install,我得到了以下问题,希望大家可以指导我。

[更新] apt-get update 的结果

soo@laptop-soo:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release                     
Ign:4 http://linux.dropbox.com/ubuntu xenial InRelease                         
Hit:5 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial InRelease
Hit:6 http://my.archive.ubuntu.com/ubuntu xenial InRelease                     
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]     
Hit:8 http://packages.ros.org/ros/ubuntu xenial InRelease                      
Hit:9 http://linux.dropbox.com/ubuntu xenial Release                           
Get:10 http://my.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]   
Hit:12 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial InRelease
Get:13 http://my.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] 
Fetched 325 kB in 2s (159 kB/s)    
Reading package lists... Done

[更新] 结果 apt-get -f installhttps://pastebin.ubuntu.com/p/YjWgzT9dmG/

[更新] 结果 sudo apt-get dist-upgradehttps://pastebin.ubuntu.com/p/33H4Rpfsm3/

[更新] apt-cache 策略 python3

soo@laptop-soo:~$ apt-cache policy python3
python3:
  Installed: (none)
  Candidate: 3.5.1-3
  Version table:
     3.5.1-3 500
        500 http://my.archive.ubuntu.com/ubuntu xenial/main i386 Packages

[更新:sudo aptitude safe-upgrade]

soo@laptop-soo:~$ sudo aptitude safe-upgrade
Resolving dependencies...                
Unable to resolve dependencies for the upgrade: no solution found.
Unable to safely resolve dependencies, try running with --full-resolver.

[更新:sudo aptitude safe-upgrade --full-resolver]https://pastebin.ubuntu.com/p/9DYmHHTxs6/ 如果我对此输出回复 +(表示安装),它会显示以下消息,这似乎做任何事情都非常危险......

The following ESSENTIAL packages will be BROKEN by this action:
 apt : Depends: gpgv but it is not going to be installed. or
                gpgv2 but it is not going to be installed.
       Depends: gnupg but it is not going to be installed. or
                gnupg2 but it is not going to be installed.
 dpkg : Conflicts: dpkg:amd64 but 1.18.4ubuntu1.5 is installed.
 dpkg:amd64 : Conflicts: dpkg but 1.18.4ubuntu1.5 is to be installed.
 tar : Conflicts: tar:amd64 but 1.28-2.1ubuntu0.1 is installed.
 tar:amd64 : Conflicts: tar but 1.28-2.1ubuntu0.1 is to be installed.

WARNING: Performing this action will probably cause your system to break!
         Do NOT continue unless you know EXACTLY what you are doing!
To continue, type the phrase "I am aware that this is a very bad idea":

此图显示了我的软件和更新的设置

非常感谢您的关注。很抱歉给您带来麻烦:)

答案1

从删除过时的开始点云库 PPA

sudo add-apt-repository -r ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update

将所有已安装应用程序的列表保存到您的主文件夹:

dpkg --get-selections > ~/dpkg_selections.txt
dpkg -l > ~/dpkg_l.txt

修复现有问题后再恢复它们。


您可以尝试使用 Aptitude:

sudo apt-get install aptitude
sudo aptitude safe-upgrade

但这可能没用,因为你的系统已经严重损坏,所以我们需要一步步修复。例如:

sudo aptitude reinstall ubuntu-minimal
sudo aptitude reinstall ubuntu-standard
sudo aptitude reinstall ubuntu-system-service

sudo apt-get install -f
sudo apt-get dist-upgrade

等等。

相关内容