Ubuntu14.04和16.04换成阿里源的方法
来源:互联网 发布:网络推广主管工作计划 编辑:程序博客网 时间:2024/05/21 15:42
换成国内最快的阿里云源
第一步:备份原来的源文件
cd /etc/apt/
然后会显示下面的源文件sources.list
输入命令
sudo cp sources.list sources.list.bak
就是将sources.list备份到sources.list.bak
第二步:替换源
阿里云源的文件
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 # Canonical 合作伙伴和附加 deb http://archive.canonical.com/ubuntu/ xenial partner deb http://extras.ubuntu.com/ubuntu/ xenial main
替换并保存
sudo gedit sources.list打开文件,替换成阿里云文件即可
第三步:更新源和软件
sudo apt-get update 更新源 sudo apt-get upgrade 更新软件
1 0
- Ubuntu14.04和16.04换成阿里源的方法
- Ubuntu14.10 更新源 换成中国的源
- ubuntu14.04更换阿里源
- Ubuntu14.04阿里云软件源备份
- Ubuntu14.04更换阿里云源
- 阿里云ubuntu14.04安装Caffe和pycaffe,cpu_only
- KingRoot换成Supersu的方法
- Windows和Ubuntu14.04双系统卸载Ubuntu的方法
- Ubuntu14.04 下安装pip和virtualenv的方法
- 阿里云ubuntu14.04的ECS主机安装Mysql步骤
- java中转换成字符串的方法
- 中标麒麟系统换成win10的方法
- 十六进制直接转换成颜色的方法
- ubuntu换成163的源
- 一元钱兑换成1分、2分和5分的兑换方法种类
- 修复ubuntu14.04的grub的方法
- 阿里云Ubuntu14.04配置Mono+Jexus
- 阿里云Ubuntu14.04搭建pptpd
- jQuery选择器之可见性筛选选择器
- 回文树(回文自动机)
- 回文树(统计所有回文串的个数)
- 构造
- 回文树(回文自动机)
- Ubuntu14.04和16.04换成阿里源的方法
- 回文自动机 + DFS --- The 2014 ACM-ICPC Asia Xi’an Regional Contest Problem G.The Problem to Slow Down You
- tcpplay发udp包
- 实验2:1
- 2020.绝对值排序
- Oracle彻底删除
- 容斥 + 组合数学 ---Codeforces Round #317 A. Lengthening Sticks
- 扩展KMP
- 利用padding百分比继承父级元素宽度特性实现元素宽高比例缩放