ubuntu apt 换源

Posted huay

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu apt 换源相关的知识,希望对你有一定的参考价值。

修改配置文件/etc/apt/sources.list

内容替换为

阿里镜像源

deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse12345678910

执行,正常则表示成功

apt-get update

安装tree,用于查看目录

apt-get install tree

 

以上是关于ubuntu apt 换源的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu18.0.4 apt换源

4.ubuntu换源

4.ubuntu换源

ubuntu18.04-换源

Ubuntu 换源

Ubuntu换源