Last active
January 5, 2020 15:50
-
-
Save HaskellZhangSong/2151075914d8ac64af869319801088ab to your computer and use it in GitHub Desktop.
Ubuntu配置阿里镜像源
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
cp /etc/apt/source.list /etc/apt/source.list.bak | |
rm /etc/apt/source.list | |
cat >>/etc/apt/sources.list<<EOF | |
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse | |
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse | |
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse | |
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse | |
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse | |
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse | |
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse | |
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse | |
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse | |
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-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