I have a system that's currently on 19.10 and I would like to get it upgraded. I didn't realize this wasn't on an LTS, so now I'm having trouble.
I've been through all the steps I can find including the EOL tutorials. I have two problems.
The first has to do with /etc/apt/sources.list file. The URLs have been changed from archive to old-releases and that seems to be OK, but if I run
sudo do-release-upgrade -m desktop
I get these messages
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Err http://us.archive.ubuntu.com/ubuntu eoan Release
404 Not Found [IP: 91.189.91.39 80]
Err http://us.archive.ubuntu.com/ubuntu eoan-updates Release
404 Not Found [IP: 91.189.91.39 80]
Err http://us.archive.ubuntu.com/ubuntu eoan-backports Release
404 Not Found [IP: 91.189.91.39 80]
Err http://us.archive.ubuntu.com/ubuntu eoan-security Release
404 Not Found [IP: 91.189.91.39 80]
I cannot figure out where the "us.archive.ubuntu.com" is coming from. Is there someplace besides the sources.list that the source urls are?
Then I went to the upgrade tools for specific releases (https://changelogs.ubuntu.com/meta-release) and pulled down the focal update tool from here (UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz)
When I extract and run this it comes up with a box that lists the steps. When it gets to the Calculating the changes step, it just resets and exits.
Is there a way to get a log to see why that focal script is failing?
Finally any other suggestions would be helpful. There's a lot of configuration on this machine and I would prefer not to just to a clean install on it if I don't have to.
Edit: This question was marked as closed because it matched an other old question. The answer to that question was to update /etc/apt/sources.list
to reference http://old-releases.ubuntu.com
.
I did this.
Here is my /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ eoan main restricted
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ eoan-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ focal universe
deb-src http://old-releases.ubuntu.com/ubuntu/ eoan universe
deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ eoan-updates universe
deb http://archive.ubuntu.com/ubuntu/ focal multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ eoan multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ eoan-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ eoan-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu eoan-security main restricted
deb http://archive.ubuntu.com/ubuntu focal-security universe
deb-src http://old-releases.ubuntu.com/ubuntu eoan-security universe
deb http://archive.ubuntu.com/ubuntu focal-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu eoan-security multiverse
I see no references to http://us.archive.ubuntu.com/ubuntu
in /etc/apt/sources.list
but I am getting an error related to that.
apt update
after editing /etc/apt ? Usually there also is a/etc/apt/sources.list.d/
folder that could as well contain additional settings. From your description, I'd guess you did not edit all locations in/etc/apt/sources.list
. From my experience, you will not need to re-setup the machine. Just make sure you replace allus.archive
hostnames and runapt update
afterwards (and, of course,apt upgrade
before you attempt todo-release-upgrade
). – Hannes Erven Aug 26 '22 at 00:09/var/log/dist-upgrade/
I assume.. but I didn't get a response for the jammy in my first comment; which would likely cause breakage on release-upgrade of your system anyway... thus I'd recommend re-install... You could tryubuntu-security-status
& like tools but I suspect you're using a frakensystem (thus results maybe inaccurate given your pasted details) – guiverc Aug 26 '22 at 04:23Just a personal desktop. I didn't realize it was that far behind in updates and want to get it up to date. It runs fine as is, for what I use it for, but I do have some custom configuration, Plex server, photo archives, etc.. sync with my phone, etc.. that I would need to dig through and figure out my setup if I can't have to reinstall.
jammy (22.04) is in there because that's the lastest version so when I run
– Bob Weber Aug 29 '22 at 23:59sudo do-release-upgrade -m desktop
that's the version that tries to install.apt update
andapt upgrade
after every edit to the/etc/apt/sources.list
– Bob Weber Aug 30 '22 at 00:11/etc/apt/sources.list.d/
does not contain any references tohttp://us.archive.ubuntu.com/ubuntu
either/var/log/dist-upgrade/
is what I was looking for. Thank you for that.I tried to run the update just to focal so I could be back on an LTS, but it fails. Looking through the main.log the only error I see is
ERROR Installing/upgrading 'baloo-kf5' failed
That's referenced in this question which wasn't ever answered https://askubuntu.com/questions/1335643/upgrade-from-focal-to-groovy-did-not-complete
– Bob Weber Aug 30 '22 at 00:32