Upgrading your Debian version
The following documentation applies only to an update of the Debian distribution. This distribution has been established and tested in Debian 7.0, Debian 8.0, Debian 9.0 and Debian 10.0. Before any manipulation, we strongly recommend that you back up your data, or your entire VPS (if your offer allows it). Although this documentation is theoretically risk-free, many different settings can lead to complications, which we will not discuss in this documentation. These complications can range from the simple unavailability of your services, to the loss of data or the total unavailability of the VPS.
Updating a Debian distribution is done in a very simple way, in three main steps:
1/ Updating your packages via your current distribution
undefined root@Helpdesk:~# apt-get update && apt-get upgrade
2/ Update your sources.list file
We save the previous file (to allow you to go back)
undefined root@Helpdesk:~# cp /etc/apt/sources.list /etc/apt/sources.list.old
It replaces the version name of Debian :
If you switch from Debian 7 (Wheezy) to Debian 8 (Jessie)
undefined root@Helpdesk:~# sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
If you switch from Debian 8 (Jessie) to Debian 9 (Stretch)
undefined root@Helpdesk:~# sed -i 's/jessie/stretch/g' /etc/apt/sources.list
If you switch from Debian 9 (Stretch) to Debian 10 (Buster)
undefined root@Helpdesk:~# sed -i 's/stretch/buster/g' /etc/apt/sources.list
3/ We update the packages as well as the system.
undefined root@Helpdesk:~# apt-get update && apt-get upgrade && apt-get dist-upgrade
If everything goes well, you will then be able to reboot your VPS, and check your version of Debian :
undefined root@Helpdesk:~# cat /etc/debian_version10.7
Updated on: 17/10/2022
Thank you!