我已经完成了对Ubuntu 20.04的更新,并尝试更新软件包,但是遇到了一个被保留的软件包错误。这是在运行“sudo apt upgrade”后的输出结果:
我尝试运行了多个命令来清除损坏的软件包/依赖项,包括:
似乎什么都不起作用(甚至dist-upgrade也没有任何效果),当我尝试手动更新软件包时,出现了以下消息:
我尝试了很多其他方法,但都没有任何结果,所以我想知道我的选择是什么。
运行
Reading package lists...
Done Building dependency tree
Reading state information...
Done Calculating upgrade...
Done The following packages have been kept back:
gdb gir1.2-peas-1.0 libpeas-1.0-0 libsmbclient libwbclient0 samba-libs
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
我尝试运行了多个命令来清除损坏的软件包/依赖项,包括:
sudo apt clean
sudo apt autoclean
sudo apt autoremove
似乎什么都不起作用(甚至dist-upgrade也没有任何效果),当我尝试手动更新软件包时,出现了以下消息:
sudo apt-get install gdb
The following packages have unmet dependencies:
gdb : Depends: libpython3.8 (>= 3.8.0~a1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我尝试了很多其他方法,但都没有任何结果,所以我想知道我的选择是什么。
运行
apt cache policy gbd libpython3.8
会产生以下输出:gdb:
Installed: 8.1-0ubuntu3.2
Candidate: 9.1-0ubuntu1
Version table:
9.1-0ubuntu1 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
*** 8.1-0ubuntu3.2 100
100 /var/lib/dpkg/status
libpython3.8:
Installed: (none)
Candidate: 3.8.2-1ubuntu1
Version table:
3.8.2-1ubuntu1 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
apt-cache policy gdb libpython3.8
的输出。 - N0rbert