A freshly installed server ships dated packages: always start with a full update.
apt update && apt upgrade -y
apt update— refreshes the available package listapt upgrade -y— installs updates
If a new kernel was installed, reboot:
reboot
Automate security updates
apt install -y unattended-upgrades
dpkg-reconfigure --priority=low unattended-upgrades
Security patches will now install automatically.
do-release-upgrade).











