Ubuntu16.04换源

xiaoxiao2021-02-28  15

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 

3.更新源和软件

sudo apt-get update sudo apt-get upgrade

 

转载请注明原文地址: https://www.6miu.com/read-2250144.html

最新回复(0)