Created
August 25, 2018 02:39
-
-
Save navossoc/0aa9afe23c3815ede003414198722e34 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# mirror list | |
#wget -qO - mirrors.ubuntu.com/mirrors.txt | |
# replace apt-get mirror's with a country mirror | |
sed -i -E 's/deb(-src)? http:\/\/.+\/\b/deb\1 http:\/\/br.archive.ubuntu.com\//' /etc/apt/sources.list | |
# mirror protocol | |
# sed -E 's/deb(-src)? http:\/\/.+ /deb\1 mirror:\/\/mirrors.ubuntu.com\/mirrors.txt /' /etc/apt/sources.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment