I read an article on Hacker News about a guy who ran Ubuntu 16.04 for 10 years and moved over to FreeBSD. Then I rememebered, I have an Ubuntu Server running. And it has been running for a while now.
I have been keeping it up-to-date, but it was still Ubuntu 22.04, with the latest long-term support released from Ubuntu being 26.04. So I decided it was time to do the dreaded release-upgrade.
Why do I say “dreaded”? Well, things have broken in the past, and I was sure something would break again. It almost always do.
So, the first step was to take a full backup. I run it as a virtual machine on VMware ESXi, but since I have had some issues in the past with the snapshot feature, I have learned not to use it, but instead make a copy of the files manually.
After making sure that every package was up-to-date, and the machine rebooted, I ran do-release-upgrade and let it do it’s thing. I was surprised that most things just worked after the upgrade. But some small things showed up:
- Python 2.7 was removed, so some home made scripts stopped working. I need to fix this at some point in the future, maybe.
- PHP was disabled for users, that is for files in the public_html directory.
- Apache 2.4 (I came from 2.2) introduced some new rules replacing “Order allow, deny” and “Allow from all” with “Require all granted” (or denied, or somewhere in between).
One side effect, which I spent a lot of time on in Apache configuration files, was that I was not allowed to view files in a subfolder under public_html. But in the end it turned out to be because of PHP being disabled, and this blocked indexing of subdirectories. Viewing the files with a full URL worked, except for PHP files.
So far everything seems to be running fine, but it will be interesting to see if Certbot is running as it should, because I have a vague memory that this broke when upgrading to 22.04 a few years back.
I do plan to run another do-release-upgrade to get it up to 26.04, but once I got 24.04 to run as expected, I did not want to ruin it well knowing I did not have the time to take a new backup and fix potential issues.
All in all, the upgrade was a success. Almost no issues at all.

















