How will Debian 9 upgrade to Debian 10 Buster

Debian team announced on July 6, 2019 released the latest version of Debian 10 "Buster". This version, code-named "Buster". Debian10 there are many new features than previous versions.

In this tutorial, I will help you through the simple steps to upgrade Debian 10 Buster from Debian 9 Stretch. In this tutorial, all commands are run using the root account. Therefore, you must have root privileges or sudo privileges to complete this operation. Desktop users can upgrade now and use the new features, but the user can use the Debian servers waiting for their production upgrade. First, they should try in their development environment in this way, and then upgrade in production, if all goes well.

1. Back up your data

The first step is a very important step is to back up your data. Therefore, we strongly recommend that you back up your existing system, any data that are important to you. For example, your Mariadb will be upgraded to version 10.3, you can not restore it. Therefore, make sure to back up data to a remote location and then proceed with the upgrade. You may need to back up the following:

  • Application code library
  • database
  • Configuration files (such as: DNS, Apache, MySQL, PHP, Postgres, etc.)
  • E-mail and e-mail accounts.
  • User Account Details

2. upgrade the current package

Before upgrading to Debian 10, the first to use the following command to update Debian systems currently installed in all packages.

$sudo apt update && apt upgrade

3. Update the sources.list file

Now edit /etc/apt/sources.list Debian apt configuration files and all the "stretch" is replaced with "buster" to get Debian 9 package. Use sed replace all instances of a command, as shown below

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

/Etc/apt/sources.list file as shown in FIG.

deb http://mirrors.digitalocean.com/debian buster main
deb-src http://mirrors.digitalocean.com/debian buster main

deb http://security.debian.org/ buster/updates main
deb-src http://security.debian.org/ buster/updates main

# stretch-updates, previously known as 'volatile'
deb http://mirrors.digitalocean.com/debian buster-updates main
deb-src http://mirrors.digitalocean.com/debian buster-updates main

4. upgrade to Debian 10 (Buster)

After replacing Apt profile of all references, again update all packages on the system. After continuing the upgrade version.

$sudo apt update && apt upgrade

At this stage, my system upgrade to Debian 10. But I still perform a dist-upgrade command in accordance with the previous version upgrade.

$sudo apt dist-upgrade

5. Verify upgrade

At this point, your system will be successfully upgraded to Debian 10. Let us first instance to restart the system and check the upgraded version.

$sudo reboot


After rebooting the system, log on to the server to verify the current version of Debian.

$lsb_release -a

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

Congratulations, you have successfully upgraded to Debian 10 "Buster". have fun!

Guess you like

Origin www.linuxidc.com/Linux/2019-07/159507.htm