I'm new to programming and running software/OS updates, so I'm trying to be cautious, though my files are backed up just in case. I've included the full context of this upgrade process, so if you want to skip to the question at hand feel free to scroll to the end.
I'm upgrading our legacy server. After removing the old PPA references using:
sudo add-apt-repository --remove ppa:<username>/<ppaname>
..and updating our release url references to old-releases
using:
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
..and installing manager-core:
apt-get install update-manager-core
I ran the update:
sudo apt-get update
..and was relieved to see that most of the packages were updated, excepting these 5 packages:
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://old-releases.ubuntu.com/ubuntu xenial-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://old-releases.ubuntu.com/ubuntu xenial-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://old-releases.ubuntu.com/ubuntu xenial-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.123 80]
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.123 80]
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.123 80]
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.123 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
At this point wasn't sure if this was a deal-breaker on the upgrade or not (difficulty find clear answers to this online) so I went ahead and ran the upgrade:
sudo apt-get upgrade -y
This seemed to go well, though nothing happened:
The following packages have been kept back:
certbot python-acme python-certbot-apache python-parsedatetime python3-requests python3-urllib3
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
..so I went to the next step and ran:
sudo apt-get dist-upgrade
This ran fine, threw no errors, so I went to the next step and ran:
sudo do-release-upgrade
..and THAT's when I got perhaps a hundred of these 404 errors (all from the same IP address):
Err http://old-releases.ubuntu.com/ubuntu xenial/main all Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/main Translation-en
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/restricted amd64 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/restricted i386 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/restricted all Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/restricted Translation-en
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/universe amd64 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/universe i386 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/universe all Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/universe Translation-en
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/multiverse i386 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/multiverse all Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial/multiverse Translation-en
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/main i386 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/main all Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/main Translation-en
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/restricted all Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/restricted Translation-en
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/universe i386 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/universe all Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/universe Translation-en
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en
404 Not Found [IP: 185.125.190.37 80]
Err http://old-releases.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
404 Not Found [IP: 185.125.190.37 80]
also still need to research these snaps:
No snaps are installed yet. Try 'snap install hello-world'.
Checking for installed snaps
Calculating snap size requirements
No candidate ver: liblockfile1
No candidate ver: python-pbr
No candidate ver: sendmail-base
No candidate ver: sendmail-bin
No candidate ver: sendmail-cf
No candidate ver: ssmtp
Updating repository information
Third party sources disabled
Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.
To continue please press [ENTER]
^C
=== Command terminated with signal 2 (Wed Aug 3 13:41:27 2022) ===
I pinged 185.125.190.37 just fine, so it seems those packages just don't exist at this IP address... I was afraid to run the upgrade without making sure it was okay that the majority of those packages were not retrieved. Which leads to my question--
Question:
Is it still okay to run the do-release-upgrade
with so many missing packages? If not, how can I get these packages? Is it too late for Ubuntu 16.04?
Thank you so much for your help!
..This might be a basic question, but then update, why doesn't everyone just reinstall instead?
– hziggity Aug 03 '22 at 21:33