I am depending on running the following script (as an cronjob every week) for all my update of ubuntu focal fossa.
# To make the script exit upon error
set -e
Now carry on with the update and upgrade
apt-get --assume-yes --fix-missing update
dpkg --configure -a
apt-get --assume-yes --fix-broken install
apt-get --assume-yes upgrade
apt-get --assume-yes dist-upgrade
apt-get --assume-yes full-upgrade
apt-get --assume-yes autoremove
apt-get --assume-yes clean
I just wonder, since it includes something like dist-upgrade and full-upgrade, does it mean my focal-fossa will be automatically updated to the more recent jellyfish version? If so, does it make Ubuntu a rolling distro, just like manjaro?
apt-get
instead ofapt
- and you don't depend on such "script" to keep the system updated, no one does. – ChanganAuto May 14 '22 at 10:00--fix missing
and--fix broken
) seems wasted effort: Apt cannot autofix network problems nor resolve breaks that are unwisely introduced by a human admin. Running bothdist-upgrade
andfull-upgrade
seems pointless. Pick the correct command and run it only when appropriate lest a human admin's mistake with sources devastate your system. – user535733 May 14 '22 at 13:37