Buster to Bullseye
I upgraded my laptop home server this week from Debian 10 "Buster" to the latest stable release, v11 "Bullseye". Worked out OK!
Steps to perform the system upgrade, taken from the Debian release-notes:
1. Update all currently installed packages ...
$ sudo apt update
$ sudo apt full-upgrade
Current version of Debian ...
$ cat /etc/debian_version
10.11
2. Ensure any obsolete packages are removed ...
$ sudo apt-get autoclean
$ sudo apt autoremove
3. Clean up leftover configuration files ...
$ sudo find /etc -name '*.dpkg-*' -o -name '*.ucf-*' -o -name '*.merge-error'
4. Backup the contents of /etc
, /var/lib/dpkg
, /var/lib/apt/extended_states
and the output of dpkg --get-selections "*"
to my external USB drive.
At this point, I logged out of my SSH session, then re-logged in directly on the laptop as root.
5. Replace the security repos buster/updates
with bullseye-security
...
# sed -i 's#buster/updates#bullseye-security#g' /etc/apt/sources.list
6. Replace the remaining buster
repos with bullseye
...
# sed -i 's/buster/bullseye/g' /etc/apt/sources.list
# sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/*
7. Run a minimal system upgrade ...
# apt update
# apt upgrade --without-new-pkgs
8. Confirm things look OK. Now run a full system upgrade ...
# apt full-upgrade
9. Upon completion, reboot system.
Login, and confirm update to new version ...
$ cat /etc/debian_version
11.2
10. Install any remaining updates ...
$ sudo apt update
$ sudo apt full-upgrade
11. Ensure any obsolete packages are removed ...
$ sudo apt-get autoclean
$ sudo apt --purge autoremove
12. Optional: For any Python packages installed via pip
, upgrade (example: my calendar/address-book server) ...
$ python3 -m pip install --upgrade radicale
A smooth upgrade!
» Next: Dot bashrc
« Previous: Build a Debian package from source using checkinstall