How to Upgrade Debian to Version 12

In this article, we will examine how to update or upgrade the Debian 10 & 11 operating system installed on a computer to Debian 12 Bullseye without any problems.

Upgrading Debian to Version 12

How to Upgrade Debian 10 & 11 to Version 12 Bookworm

Debian Linux is a GNU project started by Ian Murdock in 1993 and developed by more than 500 programmers who participated in the project.

Debian 12, codenamed Bookworm, was released on June 10, 2023. In this version, which they will support for 5 years, they used Linux Kernel 6.1. In the previous 11 Bullseye versions, they used Kernel 5.10.

In short, the new Kernel 6.1 version means new hardware support, improved system security, and improved performance.

Thanks to Kernel 6.1, the Debian distribution now supports the exFAT file system. In this way, users will be able to automatically mount USB flash drives or SD cards that they connect to their computers on their systems without installing an additional package.

What’s New in Debian 12?

Debian 12, codenamed “Bookworm,” brings exciting updates and features. In fact, this release includes various possibilities for system administrators, developers, and enthusiasts. Now, let’s take a quick look at the main features:

  • Updated Linux Kernel

Debian 12 comes with Linux Kernel 6.1, providing better hardware support across a wide range of devices.

  • Advanced Security

As we all know, Debian is a priority in terms of security. Therefore, this new distribution includes essential security updates.

  • Advanced Package Management

With version 12, we see the latest version of APT, 2.6. This version has been improved so that you can better use non-free firmware on Debian.

  • New Themes and Background Images

As they do with every release, Debian developers have added a wallpaper nicknamed Emerald in this release. This image is in an emerald green tone. Plus, I can say that it depicts the raw and natural state of precious stones.

  • Desktop Environment Updates

Debian 12 also includes XFCE 4.18, KDE Plasma 5.27, LXQt 1.20, Cinnamon 5.6, MATE 1.26, and LXDE 11 desktop environments. On the other hand, the GNOME 43 version has been integrated into the system.

  • New Software Improvements

Of course, we see the following software improvements in this new release distribution:

  1. Apache 2.4.57
  2. Nginx 1.22
  3. PHP 8.2
  4. Perl 5.36
  5. MariaDB 10.11
  6. OpenSSH 9.2p1
  7. PostgreSQL 15
  8. LibreOffice 7.4
  9. Python 3.11.2
  10. OpenJDK 17
  11. Samba 4.17

Before You Begin

One of the most critical steps you need to take before upgrading your current Debian system to a new version is to use Backup because you do not want to lose the settings and configurations of the program or software you use on your computer.

For example, if you are using Debian Linux as a web server, it is helpful to back up the settings of some software such as MySQL and PHP. Since the versions of the programs you use during the upgrade will also be upgraded, you should definitely take their backups.

Therefore, we recommend backing up all your files before updating your Debian computer to the latest version 11 Bullseye distribution. In addition, you can easily back up your PC using Timeshift software, minimizing possible errors you may encounter during installation.

How to Install the Latest Version of Debian

After backing up or taking a snapshot of your Linux computer, you need to prepare your system for the update. First, you need to refresh the repository addresses defined on your system and then install new versions of existing packages and software.

Steps:

Step 1

To update the repository list of your old Debian computer and install new packages, execute the “sudo apt update” and “sudo apt upgrade” commands in the terminal, respectively.

sudo apt update
sudo apt upgrade

Updating Repository List and Upgrading Packages

Step 2

After executing the sudo apt upgrade command and checking that the 358 packages will be updated, press Y and Enter to confirm the installation.

Checking and Confirming Packages to Upgrade

Step 3

To install version 11 on your Debian 10 system, you need to edit the repository address. To do this, execute the command “sudo sed -i ‘s/buster/bullseye/g’/etc/apt/sources.list” in the terminal and change the term Buster to Bullseye in the current repo addresses.

sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list

After editing the repo list, execute the command below to view the contents of the file /etc/apt/sources.list to check if the existing records have changed.

sudo nano /etc/apt/sources.list

Adding Bullseye Addresses to the Debian Repository List

Step 4

When you view the contents of the Sources.list file, you can see the addresses of the current version of Bullseye instead of Buster. You can press Ctrl + X to exit this file in the terminal.

Checking the Repo List

Step 5

After checking the repo addresses, update the list again with the command “sudo apt update” in the terminal.

sudo apt update

Updating the Repo List

Step 6

After making all the preparations, execute the “sudo apt full-upgrade” command in the terminal to update or upgrade Debian.

sudo apt full-upgrade

Upgrade Linux System to Latest Version

Step 7

After confirming the use of 1,047 MB of additional disk space, 1391 packages will be updated on your system, and 344 packages will be newly installed. After this process, you will be able to update your system in about 15 minutes, depending on your Internet connection speed and your computer’s performance.

When the Changelog for new packages is displayed in the terminal, you can press the “q” key to read the entire text and continue the installation quickly.

Confirming Installation of Packages

Step 8

Press the Enter in the Yes option to accept the restart of services without being prompted during the system update.

Confirming Restart Without Asking Services During Installing Packages

Step 9

After installing new updates on your Debian system, execute the “sudo apt –purge autoremove” command in the terminal to clean and remove unnecessary and residual packages automatically.

sudo apt --purge autoremove

Deleting Unnecessary Packages After System Update

Step 10

After checking the packages to be removed, press Y and Enter to confirm the deletion.

Confirming Packages to be Deleted

Step 11

Finally, after upgrading your operating system, restart your PC for the changes to take effect.

sudo reboot

Restarting Linux PC from Terminal

Step 12

When your new Debian 11 Bullseye distribution starts, you will see that the login screen and desktop environment have changed with the new wallpaper. You can use the “lsb_release -a” and “uname -r” commands in the terminal to check the version of your new distribution and check the version of the Linux Kernel.

lsb_release -a
uname -r

Checking Linux Distribution and Kernel

Video

Installing Old Versions

Debian VersionYouTube VideoSlide
9’dan 10’aWatchView
10’dan 11’e (NEW)Watch

Conclusion

To summarize, I recommend that you update your Debian system to the latest version. In short, this upgrade process offers you improved security, new features, and better performance.

If you follow the steps I have prepared in this article, you can quickly upgrade to the new version. However, I recommend that you back up your PC first. In this way, you can upgrade from Debian 11 to the latest version, 12, without any problems.

Add a Comment

Your email address will not be published. Required fields are marked *