debian

debian

debian upgrades

Upgrading debian from bookworm to trixie.

prep

Backup, check disk space, all the normal sysadmin stuff.

Update to the latest and greatest on the current version:

sudo apt update
sudo apt dist-upgrade
sudo apt autoremove

upgrading

First bump the repos

sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
sudo find /etc/apt/sources.list.d -name "*.list" -exec sed -i 's/bookworm/trixie/g' {} \;
sudo find /etc/apt/sources.list.d -name "*.sources" -exec sed -i 's/bookworm/trixie/g' {} \;

Now start with the minimal packages

sudo apt update
sudo apt upgrade --without-new-pkgs

If that all goes well, do the full upgrade

sudo apt full-upgrade

Check that we’re on the right release and everything seems hunky dory

cat /etc/os-release

Clean up

sudo apt autoremove
sudo apt clean

Reboot for good measure

sudo reboot now