Brohemian
By:
Brohemian

Updating Ubuntu 14.04 -- Security Updates

August 26, 2014 34.4k 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.

3 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!

7 Answers

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

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

  • This is great, thanks!

    Can you add this to a shell script, then add it to a cron?

  • I logged into my droplet, Ubuntu 16.04 and got the following message:

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

    I did these commands:

    $ sudo apt-get update
    $ sudo apt-get dist-upgrade
    $ sudo shutdown -r now

    Logged back in, and I now see this message:

    Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-34-generic x86_64)

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

    Worked for me on Ubuntu 16.04.

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.

Have another answer? Share your knowledge.