Every once in a while (two years, ish), Debian releases a major system update. You should probably update your system for this.
Preparation
First, make sure the system is up-to-date on the current OS release:
$ sudo apt update
$ sudo apt upgrade
$ sudo apt autoremove
$ sudo apt autocleanNext, identify the current and next codename:
- Open
/etc/apt/sources.listand identify the codename. For example,bookwormhere:
deb http://deb.debian.org/debian bookworm main non-free-firmware
...
Identify the next codename version from this list: https://www.debian.org/releases/
Verify the current version you have with cat /etc/os-release (take note to verify it actually changed later).
Updating
- Edit
/etc/apt/sources.list, and any files under/etc/apt/sources.list.d/, replacing all instances of the old codename with the new one. sudo apt updatesudo apt full-upgradereboot- Repeat #2, 3, and 4 until no more updates are needed (typically one or maybe two reboots).
Cleanup
- Check
cat /etc/os-releaseto confirm the upgrade was successful (the version info should be different than what you noted before) sudo apt autocleansudo apt autoremove
Now might be a good time to go through the normal Debian Setup Steps and System Hardening if needed.