Skip to content

Instantly share code, notes, and snippets.

@1a57danc3
Created March 25, 2019 08:22
Show Gist options
  • Save 1a57danc3/938a04f43644f895b7653404e0c4c398 to your computer and use it in GitHub Desktop.
Save 1a57danc3/938a04f43644f895b7653404e0c4c398 to your computer and use it in GitHub Desktop.
ubuntuMirrorReplace
#!/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