Welp… I fucked up my StartOS node by using “apt upgrade.”

Fan-fucking-tastic.

Doing a system rebuild and restoring from backup.

Reply to this note

Please Login to reply.

Discussion

Yeah apt upgrade without package is only useful on initial box setup.

Hahaha I figured I was probably was messing something up, but at least I did a backup literally hours before 😅.

At least you had backup! Been there before.

🎶 “We’re halfway thereeeeeee” 🎶

if you really want to update all packages, I went this route before (and broke my node), but figured out what works. Add this to /etc/apt/preferences.d/pins

then run 'apt update && apt upgrade'

note: do this in the chrooted environment

note2: this will also update the kernel to 6.11

```

Package: *

Pin: release a=stable, stable-updates, stable-security

Pin-Priority: 500

Package: *

Pin: release a=stable-backports

Pin-Priority: 400

Package: *

Pin: release a=unstable

Pin-Priority: 50

Package: linux-image-amd64

Pin: release a=unstable

Pin-Priority: 500

Package: btrfs-progs e2fsprogs firmware-* geoip-database libcpupower1 linux-cpupower qemu-guest-agent smartmontools socat tor tor-*

Pin: release a=stable-backports

Pin-Priority: 500

```

Oh, to get the 6.11 kernel you also need to add the unstable repos to /etc/apt/sources.list

```

deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware

deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware

deb http://security.debian.org/ bookworm-security main contrib non-free non-free-firmware

deb-src http://security.debian.org/ bookworm-security main contrib non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware

deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware

deb-src http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware

deb http://deb.debian.org/debian/ unstable main contrib non-free non-free-firmware

deb-src http://deb.debian.org/debian/ unstable main contrib non-free non-free-firmware

```

do not upgrade podman/containerd/systemd and related packages, that will break StartOS