207

I see the following message when I login:

29 packages can be updated.

6 updates are security updates.

How can I perform the updates?

I tried apt-get upgrade and some stuff was installed but the message still remains.

2

2 Answers 2

204

Try these commands (although the third one may not be necessary for you):

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

A reboot may or may not be necessary (sudo shutdown -r 0)

10
  • 21
    Why dist-upgrade before update? Commented May 10, 2015 at 3:05
  • 7
    This is really wrong. You only need to run upgrade or dist-upgrade, not both, and update always comes first. Commented Oct 12, 2016 at 14:04
  • 4
    sudo apt-get dist-upgrade did it for me
    – Dimagog
    Commented Nov 15, 2016 at 21:07
  • 3
    I'm running all these commands in every order and I think my computer is not on fire so we are good.
    – einnocent
    Commented Dec 13, 2017 at 6:38
  • 1
    apt-get upgrade will not change what is installed (only versions), apt-get dist-upgrade will install or remove packages as necessary to complete the upgrade, apt upgrade will automatically install but not remove packages. apt full-upgrade performs the same function as apt-get dist-upgrade (askubuntu.com/questions/194651/…)
    – AlexVPerl
    Commented Apr 13, 2020 at 5:26
97

When you ran apt-get upgrade, where there any "not upgraded"? Eg:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Looking at 0 not upgraded. If there were ones that were not upgraded, run apt-get dist-upgrade

1
  • 1
    Its not working. Still 11 not upgraded.
    – qba47
    Commented Oct 5, 2022 at 9:55

Not the answer you're looking for? Browse other questions tagged .