Upgrading Armbian Ubuntu based a real pain in the ass

Tried running do-release-upgrade, probably should have just manually modified the apt sources.list files. And then run apt update then apt dist-upgrade.

Instead of rolling back the modified sources, I messed up libc, and had to boot from a SD card on my Orange Pi 5, and am fixing it using chroot.

Basically copy bash and it’s libraries from the SD card. I used linuxdeploy, and put it in /bash on the SD card, then copied everything over to the internal drive mount.

do-release-upgrade broke bash, if you restore the modified sources, you might be able to run apt update and then apt dist-upgrade to go back, not sure that would have worked though.

Then I had to manually download the libs I needed to fix bash, so apt –reinstall install bash would work. Apparently apt is too fucking stupid to fix it.

You’ll have to figure out how to fix it yourself, because search engines are completely useless now. Mostly finds old shit, that isn’t the problem.

But apt dist-upgrade is working now.

I’ll never use do-release-upgrade again. It will just break your system.

Immutable distros are way better. They say for some distros, to reinstall. Yeah, I’m not manually figuring out what I changed, so I can restore my backup. Too much fucking work. I’ll switch to a distro that can upgrade, if it comes down to it.

I’d reinstall an immutable distro, easy to restore data. If you back everything up you modify.

You can probably recover from anything if you mess up Armbian. As long as you have a SD card. Even if you delete everything in /usr/bin. Just copy over everything from the SD card. But don’t copy over everything in /etc.

And it booted finally. But the MAC address changed, so had to change the router, so it can have the old IP. Rebooting the Orange Pi 5 so it gets the right IP.

Looks like Bluetooth isn’t working in Podman anymore, probably the device path changed.

Or I guess it’s not supported anymore, lsusb doesn’t list it.

Kernel is missing AppArmor DBus support.

LOL. Not even installed though.

Might need linux-firmware, it’s downloading now. Wtf did this upgrade do? Remove a ton of shit apparently.

And it removed one of the armbian-firmware packages. Installing armbian-firmware-full, looks like both aren’t installed.

The USB HD dock works though. Hmm, the zst files are gone, guess it extracted them. Now to reboot, too lazy to replug it.

Invalid overlay_prefix panthor-gpu rockchip-rk3588

Another problem, guess it didn’t update the txt file, good job.

Going to get the correct armbianEnv.txt from the img file, after it extracts.

verbosity=1
bootlogo=false
console=both
extraargs=cma=256M
overlay_prefix=rockchip-rk3588
overlays=panthor-gpu
fdtfile=rockchip/rk3588s-orangepi-5.dtb
rootdev=UUID=75904e79-3e31-4c89-9b69-d92faa17fce7
rootfstype=ext4

If you need to update your armbianEnv.txt file for the Orange Pi 5.

It uninstalled armbian-bsp-cli-orangepi5, so I installed armbian-bsp-cli-orangepi5-vendor.

Bus 007 Device 002: ID 2357:0604 TP-Link TP-Link Bluetooth USB Adapter

Finally. Also edited boot.cmd, different md5sum then the one in the img file, didn’t look at it that closely, so might be exactly the same.

Don’t run dpkg –force-depends -r libc6 or whatever libc it was.

Was trying to reinstall it, would have been better to use dpkg -i libc6*.deb. Since apt doesn’t work right. No I wasn’t thinking about anything. But it looks like if you uninstall that, you can’t even reboot.