Debian version upgrade instructions (11 -> 12)
Running these commands could break your system, remember to create backups!
Update packets:
sudo apt update && sudo apt upgrade -y
sudo apt full-upgrade
Remove useless packets:
sudo apt autoremove
Open sources.list:
sudo nano /etc/apt/sources.list
Change all "bullseye" to "bookworm":
After the changes the contents should look like this:
Save and exit from nano: Ctrl + S, then Ctrl + X
Do some more updates:
sudo apt update
sudo apt upgrade -y
Choose <Yes>.
Do another full upgrade:
sudo apt full-upgrade
Remove useless packets and then reboot:
sudo apt autoremove
sudo reboot
Debianin should now be upgraded.
Check the version:
lsb_release -a