sudo apt update # Check and sync packages
sudo apt-get upgrade # Upgrades all packages with some exceptions, type 'y' when prompted
# If there are packages you can't upgrade automatically, the terminal will display them like so, for example:
The following packages have been kept back:
cpp-11 gcc-11-base
# Upgrade any remaining packages by copy and pasting the packages left out, you can run a command to update them all in one line like so:
sudo apt upgrade cpp-11 gcc-11-base # Type 'y' when prompted