Linux修改软件源(ubuntu16.04)
打开软件源的配置文件
vim /etc/apt/sources.list
// 如果修改过后提示不能保存可以尝试使用"!"强制保存,实在不行就使用sudo 用管理员权限打开文件
deb https://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse //系统默认使用的是ubuntu的官方软件源 使用起来可能会很慢
修改使用阿里的软件源
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 //xenial 是系统的版本代号(可以这样理解) 不同的系统版本这里是不一样的 我使用的是ubuntu 16.04的版本是xenial
本博客来自于
http://www.cnblogs.com/283383765pw/
抄袭可耻
请支持原作者