-
-
Save leowa/bd56e6766ac8c0c67b65647f92567e32 to your computer and use it in GitHub Desktop.
Change Ubuntu source to aliyun mirrors
This file contains hidden or 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 | |
| cat << EOF > /etc/apt/sources.list | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse | |
| EOF | |
| apt-get update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment