D
D
Dubrovin2017-03-18 14:26:42
SSH
Dubrovin, 2017-03-18 14:26:42

How to update packages in ubuntu 16.04?

I go to the server via SSH and see the following messages:
167 packages can be updated.
75 updates are security updates.

I want to update application packages, for this I enter the following commands sequentially under root and reboot the server:
apt-get update
apt-get clean
apt-get autoremove
apt-get upgrade
apt-get dist-upgrade

I get the message:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
After rebooting the server, I log in again via SSH as root and see that the packages have not been updated. What am I doing wrong and how do I update the apps?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2017-03-18
@sim3x

The sssh greeting is cached rather than created on the fly
apt-get dist-upgradeno need to do it every time

apt-get update
apt-get upgrade
apt-get autoremove
enough

D
Dubrovin, 2017-09-03
@Dubrovin

Thanks for answers. The problem is that on some VPS the greeting is cached and you really need to restart the server to reset the counter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question