Perform the following procedures to update packages or perform a distro upgrade on Ubuntu. Make backups before using these commands.
Display Linux version:
lsb_release -a
Kernel Version:
uname -mrs
Update installed packages:
sudo apt update && sudo apt upgrade
reboot:
sudo reboot
Remove Unused packages:
sudo apt --purge autoremove
Install the Update Manager:
sudo apt install update-manager-core
Upgrade to latest LTS version:
sudo do-release-upgrade
Upgrade to latest development version (if there is no LTS version update and you want the latest development version, careful it may not be stable):
sudo do-release-upgrade -d
Verify Distro Version:
lsb_release -a
Verify Kernel Version:
uname -mrs