找到合适的镜像源(ubuntu16.04为例)

阿里镜像

备份原来的镜像地址文件

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

将/etc/apt/sources.list内容替换如下

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

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

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

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

更新

sudo apt-get update

更新完毕,就可以快速的安装软件了


zpfei
186 声望7 粉丝

往事如风~


下一篇 »
webpack入门

引用和评论

0 条评论