Created
September 2, 2014 08:31
-
-
Save zdk/875c9fdf3ef588b2e792 to your computer and use it in GitHub Desktop.
Resolve old release apt-get 404 error
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
#Replace package repository urls that are pointed to 'archive.ubuntu.com' or 'security.ubuntu.com' by 'old-releases.ubuntu.com' | |
grep -srlE 'archive.ubuntu.com|security.ubuntu.com' /etc/apt/* | xargs sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' | |
#Then, update from new source lists. | |
sudo apt-get update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment