I cannot upgrade ubuntu because there are some packages being kept back:
au464956@dnaseq1:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gcc-5-base gcc-6-base libdatetime-locale-perl libdatetime-timezone-perl
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
I have tried some other solutions to this problem with no success, including running sudo apt-get dist-upgrade
(this still keeps the packages back), sudo apt install gcc-5-base
or the other kept back packages, which leads to a long message threatening to remove apt
, libapt-pkg5.0
, and libstdc++6
which would obviously be too destructive, and running sudo apt-get --with-new-pkgs upgrade
.
Running sudo apt-cache policy
for the kept back packages results in:
gcc-5-base:
Installed: 5.4.0-6ubuntu1~16.04.11
Candidate: 5.5.0-12ubuntu8
Version table:
5.5.0-12ubuntu8 500
500 http://us.archive.ubuntu.com/ubuntu cosmic/universe amd64 Packages
*** 5.4.0-6ubuntu1~16.04.11 500
500 http://dk.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
5.4.0-6ubuntu1~16.04.10 500
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
5.3.1-14ubuntu2 500
500 http://dk.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
gcc-6-base:
Installed: 6.0.1-0ubuntu1
Candidate: 6.4.0-22ubuntu1
Version table:
6.4.0-22ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu cosmic/universe amd64 Packages
*** 6.0.1-0ubuntu1 500
500 http://dk.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
libdatetime-locale-perl:
Installed: 1:1.02-1
Candidate: 1:1.22-1
Version table:
1:1.22-1 500
500 http://us.archive.ubuntu.com/ubuntu cosmic/universe amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu cosmic/universe i386 Packages
*** 1:1.02-1 500
500 http://dk.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http://dk.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
100 /var/lib/dpkg/status
libdatetime-timezone-perl:
Installed: 1:1.95-1+2016a
Candidate: 1:2.19-1+2018e
Version table:
1:2.19-1+2018e 500
500 http://us.archive.ubuntu.com/ubuntu cosmic/universe amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu cosmic/universe i386 Packages
*** 1:1.95-1+2016a 500
500 http://dk.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http://dk.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
100 /var/lib/dpkg/status
UPDATE:
Output of sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gcc-5-base gcc-6-base libdatetime-locale-perl libdatetime-timezone-perl
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Output of the attempt to run the upgrade sudo do-release-upgrade
:
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
do-release-upgrade
to the question. – Ian Marshall Jun 27 '19 at 04:48do-release-upgrade
to the question. – Ian Marshall Jun 27 '19 at 04:49