Ubuntu 20.04 apt-get update Release file not found
Sophia Terry
Trying to run sudo apt-get update or even just sudo apt update results in the following output for me:
Hit:1 focal InRelease
Hit:2 stable InRelease
Hit:3 focal-updates InRelease
Hit:4 focal-backports InRelease
Hit:5 focal-security InRelease
Hit:6 focal InRelease
Hit:7 eoan InRelease
Ign:8 focal InRelease
Err:9 focal Release 404 Not Found [IP: 2001:648:2ffc:deb::211:202 443]
Reading package lists... Done
E: The repository ' focal 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.I tried clicking on the link and then shortening the url until anonscm.debian.org brought me to this strange page which talked about how a certain debian service is discontinued. However, I'm a bit of a linux beginner and instead of going down a rabbit hole wherein I might further break my environment, I'd really appreciate some help with what to do about this. Any help would be greatly appreciated.
EDIT Yes. I am connected to the internet.
Notice how my internet is up yet the updater gives me the no connection message
Second Edit: yes. I am connected and my livepatch is onas you can see
Third edit Somehow after closing the settings like in the second picture, the software updater decides to run. This is the same as if I had run apt-get update in the terminal, is it not? Yet why does it not work in the terminal?
software updater appears to run?
71 Answer
It seems that you have an (now) invalid URL as a repository.
Open a terminal and switch to root. (sudo -i)
Then do
cd /etc/apt/
grep -lris anonscm.debian.orgThen open the file that is printed with your favorite textedior
e.g. nano /your/file/here.list
Search for the line that goes something like
deb focal ReleaseDelete that line. Then save and exit
in nano that would be
ctrl + X>y><ENTER>
then try apt update && apt upgrade again.