美文网首页
Ubuntu16.04换源

Ubuntu16.04换源

作者: 恒_3297 | 来源:发表于2018-01-21 16:50 被阅读0次

1.备份原来的源文件

cd /etc/apt/

ls

sudo cp sources.list sources.list.bak

2.替换源

sudo gedit sources

阿里源地址:

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse 

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse 

deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse 

##测试版源 

deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse 

# 源码 

deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse 

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse 

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse 

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse 

##测试版源 

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse 

# Canonical 合作伙伴和附加 

deb http://archive.canonical.com/ubuntu/ xenial partner 

deb http://extras.ubuntu.com/ubuntu/ xenial main

3.更新源和软件

sudo apt-get update

sudo apt-get upgrade

相关文章

网友评论

      本文标题:Ubuntu16.04换源

      本文链接:https://www.haomeiwen.com/subject/tkcqaxtx.html