Created
August 6, 2014 10:06
-
-
Save quangbahoa/9cccb92cbeb52b67550c to your computer and use it in GitHub Desktop.
How to fix Ubuntu/Debian apt-get 404 Not Found Package Repository Errors (Saucy, Raring, Quantal, Oneiric, Natty…)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run this command below on your server and it will replace all of the archive.ubuntu.com and security.ubuntu.com package repository URLs with old-releases.ubuntu.com | |
sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list | |
You may also want to see if there are other files in /etc/apt/sources.list.d/ that need to be updated, which can be done with a simple grep command: | |
grep -E 'archive.ubuntu.com|security.ubuntu.com' /etc/apt/sources.list.d/* | |
========== | |
Error | |
========== | |
Err http://archive.ubuntu.com quantal/main amd64 Packages | |
404 Not Found [IP: 91.189.91.15 80] | |
Err http://archive.ubuntu.com quantal/restricted amd64 Packages | |
404 Not Found [IP: 91.189.91.15 80] | |
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.15 80] | |
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.91.15 80] | |
Err http://security.ubuntu.com raring-security/main amd64 Packages | |
404 Not Found [IP: 91.189.91.15 80] | |
Err http://security.ubuntu.com raring-security/restricted amd64 Packages | |
404 Not Found [IP: 91.189.91.15 80] | |
Err http://security.ubuntu.com raring-security/universe amd64 Packages | |
404 Not Found [IP: 91.189.91.15 80] | |
Err http://security.ubuntu.com raring-security/multiverse amd64 Packages | |
404 Not Found [IP: 91.189.91.15 80] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment