202

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.

Gerve
  • 2,137
  • 2
  • 13
  • 8

2 Answers2

198

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)

PJ8912
  • 2,117
  • 21
    Why dist-upgrade before update? – Eliah Kagan May 10 '15 at 03:05
  • Try another order: update, upgrade, dist-upgrade and it makes no difference. – ThisClark Sep 26 '16 at 01:57
  • 7
    This is really wrong. You only need to run upgrade or dist-upgrade, not both, and update always comes first. – Reinier Post Oct 12 '16 at 14:04
  • 4
    sudo apt-get dist-upgrade did it for me – Dimagog Nov 15 '16 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 Dec 13 '17 at 06:38
  • @einnocent I think the point is you might only have to type 2 or 3 of the commands. Obviously you can type 18 lines because there are 6 ways to order the commands and 3 commands each time, but you'd rather just type 2 or 3 – Nathan majicvr.com Jan 27 '20 at 16:55
  • I'm guessing @EliahKagan is right because his reputation is the highest – Nathan majicvr.com Jan 27 '20 at 16:56
  • Also, reboot was necessary for me on gcloud compute. – Nathan majicvr.com Jan 27 '20 at 16:58
  • 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 (https://askubuntu.com/questions/194651/why-use-apt-get-upgrade-instead-of-apt-get-dist-upgrade) – AlexVPerl Apr 13 '20 at 05:26
  • I'm sorry but this type of answer and comments list are a compelte voodoo and not a disciplined way of exploring and fixing up a system. – matanox Jan 23 '24 at 13:38
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

user269370
  • 1,302
  • 7
  • 7