20

I have a 16.04 server on Digital Ocean that lists this when I ssh into it...

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

7 packages can be updated.
7 updates are security updates.

I have run apt-get update and apt-get upgrade many times and it has not gone away.

After I run the upgrade I see this as the last line...

0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Joff
  • 514

4 Answers4

24

Since your using ubuntu 16.04 the following should fix it:

sudo apt full-upgrade

But if you prefer the Ubuntu 14.04 way then:

sudo apt-get dist-upgrade

If the two commands don't work you should talk to digital ocean about it.

Hope that helps.

George Udosen
  • 37,534
6

It is possible your /var/lib/update-notifier/updates-available file did not refresh after your last update.

If you want to set this manually:

sudo su # Needed to acquire permissions.
/usr/lib/update-notifier/apt-check --human-readable >/var/lib/update-notifier/updates-available
exit    # to get out of sudo

Note that /var/lib/update-notifier/updates-available is set with 0600 for permissions for the user & group 'root', which prevent you from simply sudo-ing the apt-check command to rewrite it.

6

Use the dist-upgrade command, which will perform upgrades that require changing dependencies, adding or removing new packages if necessary. This will handle a set of upgrades which may have been kept back by apt-get upgrade:

sudo apt-get update
sudo apt-get dist-upgrade

For more information see What is "dist-upgrade" and why does it upgrade more then "upgrade" ?

Liso
  • 15,677
2

First of all the message

0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

says that there are 4 packages not upgraded. I guess these are related to a newer kernel and can be upgraded with

apt-get full-upgrade 

Besides that the message

7 packages can be updated.
7 updates are security updates.

is not calculated every time you login so it might be outdated.

jsalatas
  • 431