I've got a raspberry pi that's running 19.10. On trying to install a new package today, I discovered that this version is deprecated. How can I upgrade this to 20.04 LTS?
I've tried changing the ports.ubuntu.com
URLs in sources.list to old-releases.ubuntu.com
but this doesn't seem to change anything. apt update
says this:
root@otter:/etc/apt# apt update
Ign:1 http://old-releases.ubuntu.com/ubuntu-ports eoan InRelease
Ign:2 http://old-releases.ubuntu.com/ubuntu-ports eoan-updates InRelease
Ign:3 http://old-releases.ubuntu.com/ubuntu-ports eoan-backports InRelease
Ign:4 http://old-releases.ubuntu.com/ubuntu-ports eoan-security InRelease
Err:5 http://old-releases.ubuntu.com/ubuntu-ports eoan Release
404 Not Found [IP: 91.189.91.124 80]
Err:6 http://old-releases.ubuntu.com/ubuntu-ports eoan-updates Release
404 Not Found [IP: 91.189.91.124 80]
Err:7 http://old-releases.ubuntu.com/ubuntu-ports eoan-backports Release
404 Not Found [IP: 91.189.91.124 80]
Err:8 http://old-releases.ubuntu.com/ubuntu-ports eoan-security Release
404 Not Found [IP: 91.189.91.124 80]
Reading package lists... Done
E: The repository 'http://old-releases.ubuntu.com/ubuntu-ports eoan Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://old-releases.ubuntu.com/ubuntu-ports eoan-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://old-releases.ubuntu.com/ubuntu-ports eoan-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://old-releases.ubuntu.com/ubuntu-ports eoan-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
apt-get dist-upgrade
fails with lots of HTTP 404s. do-release-upgrade
appears to be doing... something... again, a lot of 404s and eventually it aborts with this:
404 Not Found [IP: 91.189.91.39 80], E:Some index files failed to
download. They have been ignored, or old ones used instead.
Restoring original system state
Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Is there an upgrade path here? Or am I looking at blowing it all away and starting again? Really hoping not...
Edit as requested Here is sources.list with empty lines and comments removed:
deb http://ports.ubuntu.com/ubuntu-ports eoan main restricted
deb http://ports.ubuntu.com/ubuntu-ports eoan-updates main restricted
deb http://ports.ubuntu.com/ubuntu-ports eoan universe
deb http://ports.ubuntu.com/ubuntu-ports eoan-updates universe
deb http://ports.ubuntu.com/ubuntu-ports eoan multiverse
deb http://ports.ubuntu.com/ubuntu-ports eoan-updates multiverse
deb http://ports.ubuntu.com/ubuntu-ports eoan-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports eoan-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports eoan-security universe
deb http://ports.ubuntu.com/ubuntu-ports eoan-security multiverse