Ubuntu16.04换源

2018-01-21  本文已影响0人  恒_3297

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

上一篇 下一篇

猜你喜欢

热点阅读