Disclaimer: This guide was automatically translated by AI from the German original. Please verify commands and technical details before using them.
Back to overview: Debian guides
Create an SSH connection to your server by using a terminal or PuTTY and logging in with the following command:
ssh user@ip/domain
Before you perform the upgrade, make sure the current system is up to date. Run the following command:
apt update && apt upgrade -y
This step updates all current packages to the latest version.
To switch the system to Debian 10 (Buster), you must adjust sources.list so the system uses the Buster repositories. Run the following command:
sed -i 's/stretch/buster/g' /etc/apt/sources.list
Note: Alternatively, you can make this change manually by opening
sources.listwith the following command:
nano /etc/apt/sources.list
Then replace the content with the following lines:
deb ftp.de.debian.org/debian/ buster main
deb-src ftp.de.debian.org/debian/ buster main
deb security.debian.org/debian-security buster/updates main
deb-src security.debian.org/debian-security buster/updates main
Now run the following command to update the system with the current Buster repositories:
apt update
After that, you can upgrade the system to Debian 10 Buster by running the following commands:
apt -y upgrade
apt -y dist-upgrade
Tip: Depending on system performance, this step can take some time. During the upgrade you will be asked whether you want to keep the
sshd_configfile or install a new version. Choose as needed.
After the upgrade has completed successfully, reboot the system to apply all changes:
reboot
After rebooting, check whether the upgrade was successful by verifying the Debian version with the following command:
cat /etc/debian_version
If the output shows 10.xx, the upgrade to Debian 10 Buster was completed successfully.