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?

you are viewing a single comment's thread
view the rest of the comments
[–] 13 points 1 week ago (2 children)

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.

  • source
  • hideshow 2 child comments
  • [–] [S] 7 points 1 week ago (1 child)

    apt modernize-sources -y

    Thanks for this - I hadn't seen it yet in the docs I've been looking at.
    No idea what it does, but it looks legit, so I'll run it!

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 week ago*

    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.

  • source
  • parent