Update Debian Operating System

Update Debian Operating System
Photo by Lukas / Unsplash

While going through my normal maintenance yesterday I noticed that my Debian virtual machines are behind on 11 and I've decided I'm going to work on upgrading them.

Upgrade PH-02

I decide to start here because it is a redundant server to PH-01 and if I break things there is no great loss.

Steps performed on PH-02

  • cat /etc/os-release
    • PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
  • sudo apt-mark showhold
  • sudo apt update
  • sudo apt upgrade
  • sudo apt full-upgrade
  • sudo apt autoremove
  • sudo nano /etc/apt/sources.list
    • I replace all instances of bullseye with bookworm
  • export LC_ALL=C
  • sudo apt update
  • sudo apt upgrade
  • Restart services during package upgrades without asking? Yes

This took close to two hours I believe.

  • sudo apt full-upgrade
  • sudo apt autoremove
  • sudo reboot
  • cat /etc/os-release
    • PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"

Well Pi-Hole is still functional on PH-02 and it is responding to DNS requests so I'd say this was a success!