Is it safe to switch from oldstable to stable?

Discuss

Hello all,

I’ve got Yunohost running on a Rasperry Pi 5 and I noticed some packages have a bit outdated version. I found that apt repos are set to the oldstable branch, which limits versions. Is it safe to switch to stable to have more recent versions?

Eg: see how borgmatic package is 1.7.7 instead of 1.9.14

What’s the output of lsb_release --codename ? You using oldstable would indicate you’re still in bullseye (Debian 11) era, there should be a migration available under WebAdmin->Tools->Migrations that takes you to bookworm (Debian 12) era.

I would strongly recommend making a full backup prior to upgrading in case the things go south.

I installed with the latest Yunohost so it is bookworm:

$ sudo lsb_release --codename
No LSB modules are available.
Codename:       bookworm

I installed from scratch, then restored my Yunohost backup, could it be related?

It’s expected that it’s “oldstable”, as Debian released Trixie which is now the new “stable”, in Debian’s nomenclature, therefore Bookworm is “oldstable”

YunoHost is not compatible yet with Trixie, it’s currently in publc beta, cf 🎃 YunoHost 13.0 / Trixie spooky beta

Honestly it’s not a big deal to keep being on Bookworm a few months until Trixie is stable-enough for your taste

2 Likes

Do you know if I can force install borgmatic 1.9.4+ in this case?

For those interested I managed to get only one package to match the stable version.

Add stable (Trixie) repo:

$ cat sources.list.d/trixie-stable.list
deb http://deb.debian.org/debian trixie main contrib non-free

Set oldstable/Bookworm packages to high priority:

$ cat preferences.d/99-bookworm
Package: *
Pin: release n=bookworm
Pin-Priority: 900

Set Trixie packages to low priority:

$ cat preferences.d/50-trixie
Package: *
Pin: release n=trixie
Pin-Priority: 100

Set only your required stable package to very high priority:

$ cat preferences.d/10-borgmatic
Package: borgmatic
Pin: release n=trixie
Pin-Priority: 1001

Then check it won’t mess your system with:

sudo apt update
sudo apt list --upgradable

It should show only your package as upgradable.