Upgrading to Ubuntu 22.04 on my k3s cluster
This afternoon, I fired up my k3s cluster for the first time in a while. When I ran
apt update, I got an error message
about a missing Release file.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports impish Release' no longer has a Release file.
I’m going to run this on a “canary” node, to check it all works, then I’ll just yolo it onto all of the others:
Removing obsolete packages
When it asks about removing obsolete packages, don’t, because one of those obsolete packages is the currently-running
kernel. It’s going to continue to work, but it’ll half-remove it, which will confuse
Instead: wait until after the reboot, and then:
sudo apt update sudo apt upgrade sudo apt autoremove
Packages kept back
During the upgrade, several packages were “kept back”. In Ubuntu 22.04, this could be because of “phased rollout”. To check, run the following, specifying one of the kept-back packages:
$ apt-cache policy systemd systemd: Installed: 249.11-0ubuntu3 Candidate: 249.11-0ubuntu3.6 Version table: 249.11-0ubuntu3.6 500 (phased 0%) <---- THIS 500 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 Packages *** 249.11-0ubuntu3 500 500 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 Packages 100 /var/lib/dpkg/status
If this is the case, then ignore the kept-back packages; they’ll be updated at some point soon.
When I next restarted, I got the following message:
/boot/firmware is using 90.1% of 252MB
When upgrading Ubuntu, it saved a bunch of backups in the
/boot/firmware directory. Provided the Raspberry Pi is working fine, these can be deleted:
sudo rm /boot/firmware/*.bak
Usage goes back down to about 46%.
I next upgraded k3s; see this page.