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:

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:

su
(give )
ή
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 http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main

deb http://security.debian.org/debian-security bullseye-security main
deb-src http://security.debian.org/debian-security bullseye-security main

deb http://deb.debian.org/debian/ bullseye-updates main
deb-src http://deb.debian.org/debian/ 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 http://deb.debian.org/debian sid main contrib non-free
# deb-src http://deb.debian.org/debian bullseye main

slist

Nano

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. To the next 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

sid

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.086 registrants.
debian 11, Debian 12, Debian 12 Bookworm, linux, iguru

Written by giorgos

George still wonders what he's doing here ...

2 Comments

Leave a Reply
  1. As of the date of your article (actually from the date Bullseye became stable in summer of 2021), Debian 12 Bookworm isn't 'sid' anymore, but 'testing', so upgrading from Bullseye to Sid basically would skip the current 'testing 'branch, which is Bookworm…

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).