Ikagara
By:
Ikagara

Ubuntu 14.04: apt-get update "404 not found issue"

January 8, 2015 15.7k views

I just created a new droplet and attempted to run sudo apt-get update as part of the LAMP tutorial and was hit with a bunch of 404 not found errors (see below). Is there an issue with the mirror currently?

root@EOTNS:~# sudo apt-get update
Ign http://security.ubuntu.com trusty-security InRelease
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://security.ubuntu.com trusty-security Release
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Ign http://mirrors.digitalocean.com trusty InRelease
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Ign http://mirrors.digitalocean.com trusty-updates InRelease
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Ign http://mirrors.digitalocean.com trusty Release.gpg
Ign http://mirrors.digitalocean.com trusty-updates Release.gpg
Ign http://mirrors.digitalocean.com trusty Release
Ign http://mirrors.digitalocean.com trusty-updates Release
Err http://mirrors.digitalocean.com trusty/main Sources
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com trusty/universe Sources
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com trusty/main amd64 Packages
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com trusty/universe amd64 Packages
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com trusty/main i386 Packages
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com trusty/universe i386 Packages
  404  Not Found [IP: 192.241.164.26 80]
Ign http://mirrors.digitalocean.com trusty/main Translation-en_US
Ign http://mirrors.digitalocean.com trusty/main Translation-en
Ign http://mirrors.digitalocean.com trusty/universe Translation-en_US
Ign http://mirrors.digitalocean.com trusty/universe Translation-en
Err http://mirrors.digitalocean.com trusty-updates/main Sources
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com trusty-updates/universe Sources
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com trusty-updates/main amd64 Packages
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com trusty-updates/universe amd64 Packages
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com trusty-updates/main i386 Packages
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com trusty-updates/universe i386 Packages
  404  Not Found [IP: 192.241.164.26 80]
Ign http://mirrors.digitalocean.com trusty-updates/main Translation-en_US
Ign http://mirrors.digitalocean.com trusty-updates/main Translation-en
Ign http://mirrors.digitalocean.com trusty-updates/universe Translation-en_US
Ign http://mirrors.digitalocean.com trusty-updates/universe Translation-en
W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty/main/source/Sources  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty/universe/source/Sources  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty/main/binary-amd64/Packages  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty/universe/binary-amd64/Packages  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty/main/binary-i386/Packages  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty/universe/binary-i386/Packages  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty-updates/main/source/Sources  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty-updates/universe/source/Sources  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty-updates/main/binary-amd64/Packages  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty-updates/universe/binary-amd64/Packages  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty-updates/main/binary-i386/Packages  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/dists/trusty-updates/universe/binary-i386/Packages  404  Not Found [IP: 192.241.164.26 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@EOTNS:~#

10 comments
4 Answers

Support was able to help me get this resolved by having me run:
rm -rf /var/lib/apt/lists/partial/*

Then running the update again.

I retried the command today without any changes to see what would happen and it was successful. Ill assume it was on their end and they resolved the issue.

Thank you all for your comments and thanks kakeiso97 for your suggestion, but I didn't get a chance to try it.

Again:

Hit http://mirrors.digitalocean.com trusty/main Translation-en
Err http://mirrors.digitalocean.com trusty-backports/main Sources

Err http://mirrors.digitalocean.com trusty-backports/restricted Sources
Bad header line [IP: 95.85.0.50 80]
Err http://mirrors.digitalocean.com trusty-backports/universe Sources
Bad header line [IP: 95.85.0.50 80]
Err http://mirrors.digitalocean.com trusty-backports/main Sources
0 Requested Range Not Satisfiable [IP: 95.85.0.50 80]
Err http://mirrors.digitalocean.com trusty-backports/multiverse Sources
404 Not Found [IP: 95.85.0.50 80]
Err http://mirrors.digitalocean.com trusty-backports/main i386 Packages
Bad header line [IP: 95.85.0.50 80]

Have another answer? Share your knowledge.