Ubuntu 16.04 apt-get更换为国内阿里云源
2017-01-05 16:21
681 查看
1,备份系统默认的源(没有root权限的前面加sudo)
2,修改/etc/apt/sources.list
3,执行更新
cp /etc/apt/sources.list /etc/apt/sources.list.bak
2,修改/etc/apt/sources.list
>/etc/apt/sources.list cat >>/etc/apt/sources.list<<EOF # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial universe deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse EOF
3,执行更新
apt-get update ****不执行是不生效的
相关文章推荐
- Ubuntu 16.04 apt-get更换为国内阿里云源
- Ubuntu 16.04 apt-get更换为国内阿里云源
- Ubuntu 16.04 apt-get更换为国内阿里云源
- Ubuntu 14.04 apt-get更换阿里云源
- 切换ubuntu server的apt-get下载源为阿里云国内地址
- Ubuntu apt-get和pip国内源更换
- Ubuntu 16.04配置国内高速apt-get更新源
- Ubuntu 16.04配置国内高速apt-get更新源
- 关于ubuntu 更换成国内源之后,apt-get 出现The following packages have unmet dependencies:的解决方法
- ubuntu apt-get 比较快的国内源
- ubuntu16.04更换为国内源
- 更换Ubuntu 14.04的apt-get
- Ubuntu 16.04 apt-get 搭建 LAMP 环境
- ubuntu 16.04 apt-get update无法更新
- Ubuntu 16.04 apt-get搭建LAMP环境
- Ubuntu 16.04 apt-get搭建LAMP环境
- ubuntu16.04更换为国内源
- Ubuntu 16.04 apt-get搭建LAMP环境
- Ubuntu apt-get 更换源,以提高下载速度
- ubuntu 16.04 apt-get error: in the drive /media/cdrom and press