Debian 11 upgrade to Debian 12 Bookworm (sid)

Debian Unstable (also codenamed "Sid") is a rolling development version of the Debian distribution that contains the latest packages imported into the Debian system.debianx

Do not let the name fool you. Debian Unstable may tire you with its constant updates, but it is definitely not as Unstable as the name suggests. Debian Unstable consists mainly of fixed versions of software packages, not dev versions as one might think.

The benefits of upgrading a fixed Debian distribution to Unstable are:

  • New versions of the OS
  • New versions of packages (software, libraries, etc.)
  • Latest bug fixes and security updates

Table of Contents

The process

Debian does not have Sid installation images. So you need to install an older version of Debian and upgrade to sid. So use the perfectly stable version of Debian.

Download the iso, insert it into a USB stick, boot, and install Debian.

Restart the installed Debian. It's time to move on to upgrading from fixed to sid. Open a terminal and edit the /etc/apt/sources.list file as root.

The commands:

(give password)
sudo nano / etc / apt / sources.list

The file containing the repos used by the distribution to be updated will be opened. If you installed Debian 11 you will see the following list:

deb bullseye main
deb-src bullseye main

deb bullseye-security main
deb-src bullseye-security main

deb bullseye-updates main
deb-src bullseye-updates main

Here we will delete the security and update repositories. If we update the sid, we will receive all the latest versions of all packages, which already include security updates. After deletion we should change "bullseye" to "sid".

Then we will have the following result

deb sid main contrib non-free
# deb-src bullseye main



If you are not familiar with the nano word processor the movement is done with the arrows and not with the mouse (aka forget the mouse).
Copy and paste works. After the changes, you can save the file by pressing CTRL + X together. On the next screen press y (from yes) and finally press Enter.

We are ready for the upgrade. Below are the commands for Debian to see the new sources.list, for the upgrade, to delete the old packages and finally for a reboot:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo reboot


Registration in via Email

Enter your email to subscribe to the email notification service for new posts.

Read them Technology News from all over the world, with the validity of

Follow us on Google News at Google news