My Ubuntu 14.04 server has the default settings for fetching updates i.e.
/etc/apt/apt.conf.d/10periodic has following entries:
APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "0";
My understanding is that
APT::Periodic::Update-Package-Lists "1"; means APT will run
apt-get update once a day.
When I log into the terminal, it prints out messages about updates, so this seem to confirm the fact that APT is updating the local package cache automatically.
3 packages can be updated. 3 updates are security updates. Last login:
So I run
apt-get dist-upgrade to upgrade to newest available packages, but then once the update is performed, if I happen to log out and then log back into the server, I get a message saying:
Now there are 30 packages to be updated - 25 security.
So then typically I run
sudo apt-get update just to be sure I actually have the most up to date package cache and then run
apt-get dist-upgrade again. But even after that, I get a similar prompt when I log out and log back in i.e.
There are more packages to be installed.
So the typical process involved running
sudo apt-get update,
apt-get dist-upgrade 3, 4, or 5 times until the prompts saying
There are more packages to be installed goes away.
Does anyone know why this keeps happening?