When I issue apt-get update I get
$ sudo apt-get update
...
Err http://ftp.port80.se precise-updates/main Sources
404 Not Found
Err http://ftp.port80.se precise-updates/universe Sources
404 Not Found
Err http://ftp.port80.se precise-updates/multiverse Sources
404 Not Found
...
W: Failed to fetch http://ftp.port80.se/ubuntu/dists/precise-updates/main/source/Sources 404 Not Found
W: Failed to fetch http://ftp.port80.se/ubuntu/dists/precise-updates/universe/source/Sources 404 Not Found
W: Failed to fetch http://ftp.port80.se/ubuntu/dists/precise-updates/multiverse/source/Sources 404 Not Found
There are other source lines that are properly updated. And relevant sources.list lines are
...
deb-src http://ftp.port80.se/ubuntu/ precise-updates main restricted
deb-src http://ftp.port80.se/ubuntu/ precise-updates universe
deb-src http://ftp.port80.se/ubuntu/ precise-updates multiverse
...
I also notice that http://ftp.port80.se/ubuntu/dists/precise-updates/main/source/Sources doesn't exist, but http://ftp.port80.se/ubuntu/dists/precise-updates/main/source/Sources.gz does. I assume that *.gz should be tried before giving up?
Could anyone explain to me why I'm getting 404s for these repositories?
Maybe of interest:
- I am using an HTTP proxy to access this mirror.
- The
/etc/apt/sources.listis in its original form, except all occurrences ofse.archive.ubuntu.comhave been replaced byftp.port80.se/ubuntu/. - Just to be sure I've tested doing
sudo rm -rf /var/lib/apt/lists/*andapt-get update. Still, the same problem. - Since this is "12.04 LTS", this is not an issue with an End-of-life Ubuntu release.
apt-config dumpAlso correct the lines containingprecise.updatesetc – Anwar Sep 10 '16 at 17:09apt-config dumpoutput here: https://gist.github.com/JensRantil/ebcbdb4440e4a68dab93371ffa174fe2 Also, I've recreated this on a machine that doesn't use HTTP proxy. Replacingftp.port80.sewithftp.acc.umu.se(another mirror) seem to fix the issue. – Ztyx Sep 11 '16 at 18:37