posted in Selfhosted

How much pain should I expect upgrading my server from Debian 12 to 13?

The insidious urge to fix what ain’t broke has arisen. I’ll probably follow the official documentation, unless someone has a better suggestion.
I’m not running anything unusual and I haven’t done much, if any, “customization”. I update packages maybe a couple of times a week, so they’re current.
Should I go ahead and put myself through this now, or wait until support is dropped and I’m forced?

enPage

Replying to @⁨AMillionMonkeys@lemmy.world⁩

The fewer packages you have installed, the easier it is to upgrade. So if your stuff is containerized, upgrade should be mostly painless.

In my history at least, dist-upgrades have never themselves been a problem, not even when doing such things as a x86-to-x64 crossgrade upgrade (from Stretch to Buster, back in the time). The problem usually comes right after, with the first reboot, when something does not generate correctly in Grub or the new kernel’s initramfs is lacking a specific module, or a given mariadb flag you were counting on is no longer added by default, or somesuch. So always have a rescue boot ready.

Replying to an earlier post

The official docs have everything, though not as well ordered and concise as they could be.

I’ve taken my server from 11 to 12 to 13. Only issue was 11->12 where backports caused some issue that I no longer remember the specifics of (never broke SSH link), so I just don’t fuck with backports anymore. You need to have your shit together for backports, from what I’ve gathered.

12->13 was abs smooth as butter. Extra 3rd party repos weren’t even an issue. One I had to leave “bookworm” because they didn’t have trixie entries; I found it had no trixie entry by looking at the repo itself - it just kept working no problem after the upgrade anyway.
And I have a “stretch” repo I took from 12 to 13 on another server (it’s mongoDB 4.4 for unifi, an abs shitshow of software those bozos cook up)

Anyway tldr docs are good narry a problem will occur.

Replying to @⁨AMillionMonkeys@lemmy.world⁩

Annecdata here, but I didn’t have any significant problems on like 5 servers. I recall there being one minor edge case, but I don’t remember what it was (sorry). But other than that it was really easy. Even my nvidia drivers continued to work (for cuda, not GUI), which was really surprising. ZFS, docker, ssh, nfs, etc. all continued to work without any problems.

If you want to do a test run, create a 12 VM and install your same package list, then upgrade it and see what happens. That could take as little as an hour to do, but more likely a few hours if you want to really take time to inspect everything after the upgrade.

Replying to @⁨AMillionMonkeys@lemmy.world⁩

I backed up my configs, made snapshots, and rebuilt each VM from scratch. If I forgot to copy a cron script, i pulled it from the snapshot. It took a full Saturday, but it was a chance to apply everything ive learned the last 3 years and improve some architecture decisions I’d made when i was first learning. With proxmox, you can build a VM that has the basic things you’ll change on every machine (networking, docker, automatic updates, ssh keys, monitoring) and clone it for each server you need.

Replying to @⁨AMillionMonkeys@lemmy.world⁩

I’ve yolo’d every major upgrade from debian 8 to 13 without any backups of configs and survived… (dont do that though)

For most desktop systems where you’re not dicking around with files in /etc, there is almost no pain ever

For servers, dealing with the “do you want to install the maintainers version of ____.conf”, sucks… trying to remember all the things i put in php.ini is a pain

Probably skill issue

Replying to @⁨AMillionMonkeys@lemmy.world⁩

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters LXC Linux Containers NAS Network-Attached Storage SSH Secure Shell for remote terminal access VPS Virtual Private Server (opposed to shared hosting) ZFS Solaris/Linux filesystem focusing on data integrity

[Thread #149 for this comm, first seen 30th Oct 2026, 13:20] [FAQ] [Full list] [Contact] [Source code]

Replying to @⁨AMillionMonkeys@lemmy.world⁩

Most of my infra is Debian, and I did it without serious incident:

#Update everything to latest
apt update && apt upgrade && apt full-upgrade && apt --purge autoremove
reboot

#Verify that debian_version is 12.x (STOP IF NOT 12!)
cat /etc/debian_version

#Check for any pinned or held packages
apt list '?narrow(?installed, ?not(?origin(Debian)))'
apt-mark showhold

#Swap bookworm for trixie in repo files
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/*

#Carry out update
apt update
apt upgrade --without-new-pkgs -y
apt full-upgrade -y
reboot

#Verify that debian_version is 13.x
cat /etc/debian_version

#Modernize apt sources to v3
apt modernize-sources -y

And then maybe apt update to make sure the updates still work OK.

Sometimes you have to make changes to certain repos that don’t have Trixie manifests, but that’s easy enough to roll back.

Replying to @⁨AMillionMonkeys@lemmy.world⁩

Apt v3 comes with some quality-of-life stuff that apt has been direly missing for years, and one of those is apt sources that make sense to a human.

So the new apt source files have local key location, components, suites, and Uris.

The sources from the before-time just had a one-liner with a uri and some components.

Edit:also the modernize command makes a backup of the source files it touches.