E:来自 Depends: python3 (>= 3.6.6-1~) 的损坏软件包

E:来自 Depends: python3 (>= 3.6.6-1~) 的损坏软件包

我尝试更新/升级我的apt,但收到python3依赖项的错误。

当我更新/升级时:

praz@abuahmed:~$ APTGET
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release                                                        
Hit:3 http://ppa.launchpad.net/noobslab/apps/ubuntu bionic InRelease                                                                                 
Hit:4 https://desktop-download.mendeley.com/download/apt stable InRelease                                                                            
Hit:5 http://id.archive.ubuntu.com/ubuntu bionic InRelease                                     
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Get:8 http://id.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]         
Hit:9 http://id.archive.ubuntu.com/ubuntu bionic-proposed InRelease                              
Fetched 172 kB in 3s (52,7 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  python3-distutils python3-gdbm python3-lib2to3
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

当我升级该软件包时:

praz@abuahmed:~$ sudo apt-get upgrade python3-distutils python3-gdbm python3-lib2to3
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 to resolve the situation:

The following packages have unmet dependencies:
 python3-distutils : Depends: python3 (>= 3.6.6-1~) but 3.6.5-3ubuntu1 is to be installed
 python3-gdbm : Depends: python3 (>= 3.6.6-1~) but 3.6.5-3ubuntu1 is to be installed
 python3-lib2to3 : Depends: python3 (>= 3.6.6-1~) but 3.6.5-3ubuntu1 is to be installed
E: Broken packages

当我检查我的公寓政策时

praz@abuahmed:~$ sudo apt-cache policy python3-distutils python3-gdbm python3-lib2to3
python3-distutils:
  Installed: 3.6.5-3
  Candidate: 3.6.7-1~18.04
  Version table:
     3.6.7-1~18.04 500
        500 http://id.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages
        500 http://id.archive.ubuntu.com/ubuntu bionic-proposed/main i386 Packages
 *** 3.6.5-3 500
        500 http://id.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://id.archive.ubuntu.com/ubuntu bionic/main i386 Packages
        100 /var/lib/dpkg/status
python3-gdbm:
  Installed: 3.6.5-3
  Candidate: 3.6.7-1~18.04
  Version table:
     3.6.7-1~18.04 500
        500 http://id.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages
 *** 3.6.5-3 500
        500 http://id.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
python3-lib2to3:
  Installed: 3.6.5-3
  Candidate: 3.6.7-1~18.04
  Version table:
     3.6.7-1~18.04 500
        500 http://id.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages
        500 http://id.archive.ubuntu.com/ubuntu bionic-proposed/main i386 Packages
 *** 3.6.5-3 500
        500 http://id.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://id.archive.ubuntu.com/ubuntu bionic/main i386 Packages
        100 /var/lib/dpkg/status

我尝试使用 Synaptic 的Mark All Upgrades&& Edit+ Fix Broken Packages&&来修复它Reload,它将在状态部分显示一个可升级的 apt 列表,并尝试Mark For Upgrade在每个需要升级的软件包上进行升级,但我没有得到解决这个问题的选项。

答案1

@user535733 是正确的,depends 中的三个包python3发生了冲突,介于:

 python3-distutils=3.6.7-1~ from bionic-proposed/main repository
 python3-gdbm=3.6.7-1~ from bionic-proposed/main repository
 python3-lib2to3=3.6.7-1~ from bionic-proposed/main repository

 python3-distutils=3.6.5-3~ from bionic/main repository
 python3-gdbm=3.6.5-3~ from bionic/main repository
 python3-lib2to3=3.6.5-3~ from bionic/main repository

这个问题已通过插件禁用 bionic-proposed 存储库#解决

#deb http://id.archive.ubuntu.com/ubuntu/ bionic-proposed universe restricted main multiverse.

相关内容