Created
March 25, 2019 08:22
-
-
Save 1a57danc3/938a04f43644f895b7653404e0c4c398 to your computer and use it in GitHub Desktop.
ubuntuMirrorReplace
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 | |
cp /etc/apt/sources.list /etc/apt/sources.list.bak | |
sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list | |
sudo sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment