I am on Ubuntu 18.04LTS. When I run sudo apt update
, the result shows 4 packages can be upgraded. Run 'apt list --upgradable' to see them.
But, when I run sudo apt upgrade
it shows
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
When I run sudo apt dist-upgrade
or sudo apt full-upgrade
it shows the same result. I found this question and could not find the answer why the packages not upgraded.How to resolve this?
found this question with no answer
When I run sudo apt list --upgradable
it shows the following
$ sudo apt list --upgradable
Listing... Done
python3-distutils/bionic,bionic 3.6.9-1~18.04 all [upgradable from: 3.6.7-1~18.04]
python3-gdbm/bionic 3.6.9-1~18.04 amd64 [upgradable from: 3.6.7-1~18.04]
python3-lib2to3/bionic,bionic 3.6.9-1~18.04 all [upgradable from: 3.6.7-1~18.04]
python3-tk/bionic 3.6.9-1~18.04 amd64 [upgradable from: 3.6.7-1~18.04]
When run sudo apt full-upgrade
it shows,
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
When try to manually install packages it shows this error
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.8-1~) but 3.6.7-1~18.04 is to be installed
python3-gdbm : Depends: python3 (>= 3.6.8-1~) but 3.6.7-1~18.04 is to be installed
python3-lib2to3 : Depends: python3 (>= 3.6.8-1~) but 3.6.7-1~18.04 is to be installed
python3-tk : Depends: python3 (>= 3.6.8-1~) but 3.6.7-1~18.04 is to be installed
E: Unable to correct problems, you have held broken packages.
Output of apt-cache policy python3-distutils
:
python3-distutils:
Installed: 3.6.7-1~18.04
Candidate: 3.6.9-1~18.04
Version table:
3.6.9-1~18.04 500
500 http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu bionic/main amd64 Packages
500 http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu bionic/main i386 Packages
3.6.8-1~18.04 500
500 http://lk.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://lk.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
*** 3.6.7-1~18.04 100
100 /var/lib/dpkg/status
3.6.5-3 500
500 http://lk.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
500 http://lk.archive.ubuntu.com/ubuntu bionic/main i386 Packages
apt list --upgradable
– mchid Sep 21 '19 at 17:07sudo apt full-upgrade
– user535733 Sep 21 '19 at 17:28sudo apt clean; sudo apt update
and see if it says the same thing. Also, if you have any ppas installed, please include this in your question. – mchid Sep 21 '19 at 17:45apt-cache policy python3-distutils
? – Kulfy Sep 22 '19 at 08:24