How to upgrade Debian 9 to Debian 10 Buster using the CLI

  1. First, make sure that your current system is up-to-date by running the following command:
sudo apt-get update && sudo apt-get upgrade
  1. Then, backup all important data and configurations from your current system.
  2. Next, run the following command to upgrade your system to Debian 10:
sudo apt-get install -y upgrade
  1. Now, Run the following command to change the release name in /etc/apt/sources.list file
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list
  1. Finally, run the following command to upgrade your system to Debian 10:
sudo apt-get update && sudo apt-get dist-upgrade
  1. After the upgrade process is completed, you can reboot your system for the changes to take effect.
  2. Finally run the following command to check the version of your Debian
cat /etc/issue

Please note that, there may be some other additional steps required if you have custom configurations or software installed on your system. So, it’s highly recommended to take a backup of all important data before upgrading.

(kambioeyewear)

Leave a Comment