Initiating the Upgrade Process

Execute the following commands:
sudo apt update -y
sudo apt upgrade -y
sudo apt full-upgrade -y
Note:
  • Follow the prompts during the upgrade, choose the default options unless otherwise specified.
  • Allow services to restart as required.
  • The screenshots below are provided for reference.

The screenshots below indicate the option to retain the existing configuration without changes, while still upgrading the necessary packages.

sudo apt autoremove -y
dpkg -l | awk '/^rc/ {print $2}' | xargs -r sudo dpkg --purge