How to Upgrade to Debian 11 from Debian 10

3 min


This guide explains the steps to upgrade debian 11 from debian 10.

Debian releases are rare. Because it is often a multi-year effort from the community. That is why Debian is truly universal operating system and rock solid stability wise.

Debian 11, code named Bullseye, officially releases soon. On July 15, 2021, Debian 11 went to complete freeze, which means the release is imminent. Although the official date is not finalized, but you can install or upgrade to Debian 11 from Debian 10 right now.

This is how.

Pre-Requisites

  • The upgrade process is very straightforward. However, it is a good practice to take certain pre-cautions. Specially if you are upgrading a server.
  • Take backup of your system, including all important data and files.
  • Try to disable/remove any external repositories (PPA) you may have added over the time. You can enable them after upgrade one-by-one.
  • Close all the running applications.
  • Stop any running services that you may have enabled. You can start them via systemctl after upgrade is complete. This includes web server, SSH server, FTP server or any other servers.
  • Make sure you have stable internet connection.
  • And have sufficient downtime of your system. Because depending on your system configuration, a Debian version upgrade takes time ~ between 1.5 hours to 2 hours.

Upgrade Debian 10 Buster to 11 Bullseye Linux

  • Make sure your system is up-to-date, and your package list is up-to-date.
sudo apt update && sudo apt upgrade
  • Install the gcc-8-base package using the below command. This is required because, historically it has been seen, that upgrade fails because of certain dependencies which included in the below package.
sudo apt install gcc-8-base
upgrade debian - system check
upgrade debian – system check
  • Open the /etc/apt/sources.list and update with bullseye repositories, by commenting the Debian 10 buster packages.
  • Comment out all the buster repo by “#” at the beginning of the lines.
Comment the Debian 10 lines
Comment the Debian 10 lines
  • Add the following lines at the end of the file.
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main
deb http://ftp.debian.org/debian bullseye-backports main contrib non-free
Add Debian 11 lines
Add Debian 11 lines
  • Press Ctrl + O to save the file and Ctrl + X to exit nano.
  • Update the system repository list once to verify the addition of the repositories.
sudo apt update
  • If the above command doesn’t give any error, then you have successfully added the bullseye repo.
  • Now, start the upgrade process by running the below command. The download size is around 1.2 GB for a base installation. That may be different based on your system config.
sudo apt full-upgrade
Debian upgrade start
Debian upgrade start
  • This command takes time. But do not leave the system unattended. Because upgrade process requires various inputs during the course of upgrade.
lib6 config
lib6 config
sudoers file
sudoers file

  • Once it is completed, you can restart the system using –
systemctl reboot
  • After reboot, run the following commands to make sure your system is up-to-date, and you cleaned up all the unnecessary packages that is not required anymore.
sudo apt --purge autoremove
  • If all goes well, you should be seeing the Debian 11 bullseye. You can verify the version using the below command:
cat /etc/os-release
Debian 11 after upgrade
Debian 11 after upgrade

Closing Notes

I hope this guide helps you to upgrade your system to Debian 11 bullseye. If you face any issues, let me know using the comment box below.


Arindam

Creator and author of debugpoint.com. Connect with me via Telegram, 𝕏 (Twitter), or send us an email.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

7 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments