Ubuntu 20.04 to 22.10 upgrade
I upgraded my old Intel NUC home server from Ubuntu 20.04. To 22.04 first, then to 22.10. Went smoothly, no problems.
Below are my running notes as I do the work. Good time to remind folks this is my secret work blog; you’re welcome to read, but there’s no pretense these notes are of interesting to anyone else.
Services on the system I care about. netstat -l --program | grep tcp was a help for finding these, that --program flag is neat.
- Influx and Grafana with a lot of old data
- Plex
- Samba
- autossh for a tunnel to a public machine
- tailscale
- unifi / ubiquiti controller, which includes mongo
I had Home Assistant and Infinitude installed via Docker but didn’t want either of them. I removed them with help from docker ps --all and docker images. Some other things to remove: munin, motion.
I always forget to start do-release-upgrade under screen. Dumb of me! I’ve had bad experiences with it being interrupted in the past (because, say, my ssh terminal failed.) Also when the system says you need to reboot go ahead and reboot, don’t try to do a few things first; the system is in a slightly odd state.
Every time you do-release-upgrade it moves all your /etc/apt/sources.list.d to *.distsave versions and then edits the important .list files to disable third party repos. Doing an upgrade twice in a row means you lose the original file entirely (because *.distsave was copied to twice). It’s no big deal to hand-edit to fix it, but it’s a pain. It’s probably a good idea to refresh the sources anyway; most of the repos have a distro like “focal” hard coded in the paths. Ookla’s packagecloud repository is broken; it installs expecting “kinetic” which doesn’t have releases. “jammy” works, “stable” doesn’t.