Upgrade Debian 9 Stretch to Debian 10 Buster

29/12/2020
Chưa phân loại
Debian 10 Buster was released recently. Debian 10 comes with Linux Kernel 4.19, GNOME 3.30, KDE Plasma 5.14, Cinnamon 3.8, LXDE 0.99.2, LxQt 0.14, MATE 1.20, Xfce 4.12 and many more. Debian 10 also comes with awesome new artworks.

Debian may be your daily driver. So, you may have a lot of important files and softwares in your Debian 9 installation. In that case, you can simply upgrade your existing Debian 9 installation to Debian 10.

In this article, I am going to show you how to upgrade your existing Debian 9 Stretch installation to Debian 10 Buster.

Setting Up Package Repositories:

Before you update Debian 9 Stretch to Debian 10 Buster, you have change the package repository URL of Debian 9 Stretch to Debian 10 Buster.

First, open the /etc/apt/sources.list configuration file as follows:

$ sudo nano /etc/apt/sources.list

The sources.list file should be opened. As you can see, I have Debian 9 Stretch package repositories in there. To change the package repository to Debian 10 Buster, you simply have to replace stretch to buster. To do that, press <Ctrl> +

Now, type in stretch as the search string and press <Enter>.

Now, type in buster as the replace string and press <Enter>.

Now, press A.

All the instances of stretch should be replaced by buster. Now, save the file by pressing <Ctrl> + X followed by Y and <Enter>.

Upgrading to Debian 10 Buster:

Now, update the package APT package repository cache with the following command:

$ sudo apt update

The APT package repository cache should be updated. As you can see, the Debian 10 Buster package repositories are working. There are a lot of packages to be upgraded.

Before I do any upgrade, I just want to show you the output of the lsb_release command:

$ lsb_release -a

As you can see, I am running Debian 9 Stretch. Let’s upgrade it to Debian 10 Buster.

Now, upgrade all the software packages with the following command:

$ sudo apt upgrade

You should see a summary of the upgrade. To confirm the upgrade, press Y and then press <Enter>.

All the required packages will be downloaded from the internet. It will take a while to complete.

Once the packages are downloaded, APT will show you some news and ask you some questions. The first news you might see is as follows. Just press Q to continue.

Once you see this, press <Enter>.

Press <Enter> again.

Now, APT will ask you whether it can restart system services automatically while upgrading.

If it is not a production machine, then I recommend that you let APT upgrade system services automatically as required. In that case, select <Yes>.

If it’s a production machine on which some very important services are running on your computer/server, then you may want to be prompted when APT needs to restart any system services. In that case select <No>.

Press <Enter>.

All the software packages should be upgraded.

Now, your system is ready to do a distribution upgrade.

To do a distribution upgrade, run the following command:

$ sudo apt dist-upgrade

Now, press Y and then press <Enter> to confirm the distribution upgrade.

All the required packages for the distribution upgrade will be downloaded and installed.

At this point, the distribution upgrade should be completed.

Now, reboot your computer/server with the following command for the changes to take effect.

$ sudo reboot

Once your computer boots, you will see some noticeable changes here and there.

I also ran the lsb_release command. As you can see from the output, the upgrade to Debian 10 Buster was successful.

$ lsb_release -a

The Linux kernel should also be upgraded to 4.19 as you can see in the screenshot below.

So, that’s how you upgrade your existing Debian 9 Stretch installation to Debian 10 Buster. Thanks for reading this article.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Install Oracle JDK 11 on CentOS 7

The latest LTS (Long Term Support) version of JDK (Java Development Kit) is version 11 which came out recently. JDK 8 and...
29/12/2020

How to Add a non-Root User to Kali Linux

Generally, Most Linux distros ask their users to use lower user privileges while using the Operating System. That is a...
29/12/2020

How to use variable in awk command

Variables are used to store any value temporary in any programming language.  Defining the variable in awk command is...
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

SỰ KHÁC BIỆT GIỮA RESIDENTIAL PROXY VÀ PROXY DATACENTER
17/02/2024

Mua Proxy v6 US Private chạy PRE, Face, Insta, Gmail
07/01/2024

Mua shadowsocks và hướng dẫn sữ dụng trên window
05/01/2024

Tại sao Proxy Socks lại được ưa chuộng hơn Proxy HTTP?
04/01/2024

Mua thuê proxy v4 nuôi zalo chất lượng cao, kinh nghiệm tránh quét tài khoản zalo
02/01/2024