我试图更新/升级我的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
当我检查我的 apt 政策时
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 upgradable 列表,并尝试Mark For Upgrade在每个需要升级的包上进行,但我没有选择解决这个问题。
@user535733 是对的,depends 的三个包
python3
发生冲突,在:和
这已通过使用 add
#
in禁用仿生提议的存储库来修复