Ubuntu更换镜像源

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36751365/article/details/81558591

在终端中执行以下指令:

# 对系统给的镜像源进行备份,以防出问题
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup 

# 删除镜像源文件
sudo rm /etc/apt/sources.list

# 重新建立镜像源文件并编辑 
sudo nano /etc/apt/sources.list

# 复制下面的中科大镜像源到 sources.list 中,ctrl + O 保存并退出

# 执行系统更新命令
sudo apt-get update

中科大镜像源

deb https://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

## Not recommended
# deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
阅读更多

没有更多推荐了,返回首页