This guide is for upgrading Debian version 9 to version 10. Please be aware that certain packages may not support Debian 10 so please run this on a test environment before running of your live server. This guide assumes use of 'sudo su -', if for whatever reason you cannot run this run all commands with sudo.

1. Back everything up (databases, configs, everything) 2. If you have already, test your backup. 3. Upgrade your existing packages

apt update && apt upgrade

4. Update sources.list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.orig
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list

5. Check your sources.list

cat /etc/apt/sources.list

It should look something like this

deb buster main non-free contrib
deb-src buster main non-free contrib

deb buster/updates main contrib non-free
deb-src buster/updates main contrib non-free

# buster-updates, previously known as 'volatile'
deb buster-updates main contrib non-free
deb-src buster-updates main contrib non-free

6. Upgrade to Debian 10

apt update && apt upgrade

You may be asked at various points to confirm which configuration changes that may overwrite your existing configuration files. 7. Next run

apt dist-upgrade

8. Reboot your system


9. Verify your system version

lsb_release -a

It should now look something like this

Distributor ID: Debian
Description:    Debian GNU/Linux 10.0 (buster)
Release:        10
Codename:       buster

Congratulations! You have now upgraded to Debian 10!

Loading Conversation