Updating Ubuntu 14.04 -- Security Updates

August 26, 2014 68.3k views

I loged into my droplet and got the following message:

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

I did:

apt-get udate
apt-get upgrade

and nothing was installed.

4 comments
  • try with: sudo apt-get update

  • I’m having the same problem.

    When logging in, I see
    138 packages can be updated.
    68 updates are security updates.

    I do sudo apt-get update
    I am prompted for and provide the password.
    Then, a bunch of stuff scrolls by and some is downloaded.

    I logout, and then again login.

    And, alas, I see the very same
    138 packages can be updated.
    68 updates are security updates.

    Is this normal? This seems a serious issue, since apparently all those security
    updates are not being installed.

  • sudo apt-get update only updates the information about what packages/versions are available. You need to follow it with sudo apt-get upgrade. Then restart your droplet: sudo shutdown -r now. Hope that helps!

  • Update won’t do it, you need to Upgrade, then reboot the server. Shutdown with a time delay is polite if others may be logged in doing things, otherwise save time (and keystrokes) by just using reboot.

    sudo apt-get upgrade
    sudo reboot

8 Answers

After logging in, you can check for and apply new updates with:

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

and a restart is usually required following the installation.

$ sudo shutdown -r now

did you type in apt-get udate? should be update.

Any error messages?

If your not logged in as root. Than you need to use the sudo command also

The only message I got was:

The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded

BTY, I’m logged in as root. Setting up sudo is next on my list.

# apt update
# apt full-upgrade
# reboot

An “apt upgrade” will install most package upgrades. In my experience, the last few stragglers tend to be kernel related; “apt full-upgrade” handles those guys.

Have another answer? Share your knowledge.