apt-get安装源替换 阿里云源
来源:互联网 发布:淘宝日本代购退换 编辑:程序博客网 时间:2024/06/08 17:12
1、原文件重命名备份
1
sudo mv /etc/apt/sources.list /etc/apt/source.list.bak
2、编辑源列表文件
sudo vim /etc/apt/source.list
3、用下面的文本作为内容
ubuntu 14
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
ubuntu 16
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
4、更新
sudo apt-get update
sudo apt-get upgrade
使用替换命令%s/us.archive/cn.archive/g
第一个参数表示要被替换的字符串,第二个参数表示新的字符串
- apt-get安装源替换 阿里云源
- apt-get安装源替换 阿里云源
- 2017年最新版本apt-get安装源替换 阿里云源
- 2017年最新版本apt-get安装源替换 阿里云源
- Ubuntu 配置阿里云 apt-get 源
- ubuntu替换apt-get源
- Ubuntu 16.04 apt-get更换为国内阿里云源
- 修改Ubuntu的apt-get源为阿里云
- Ubuntu 16.04 apt-get更换为国内阿里云源
- Ubuntu 16.04 apt-get更换为国内阿里云源
- Ubuntu 16.04 apt-get更换为国内阿里云源
- ubuntu 改 apt-get 为阿里源
- 修改apt-get和yum为阿里源
- ubuntu apt-get 速度慢 切换 阿里的源
- 切换ubuntu server的apt-get下载源为阿里云国内地址
- apt-get制作本地软件安装源
- debian修改apt-get安装源
- apt-get使用本地安装源进行安装及apt-get命令详解
- 在MvvmLight中View和ViewModel的绑定
- 文件的上传(表单上传和ajax文件异步上传)
- Entity Framework Core 2.0 全局查询过滤器
- 全文检索引擎Solr系列—–全文检索基本原理
- AtCoder Regular Contest 081 D
- apt-get安装源替换 阿里云源
- C++换钱的最少货币数 动态规划
- JS的类型转换,强制转换和隐式转换
- struts2学习笔记(二)---实例应用
- HDU6153-A Secret
- 新朋实验室之玩具遥控车改装为ARDUINO蓝牙遥控小车(代码及制作过程开源)
- Monitorix-免费开源的单机Linux监控工具
- 装饰器模式(Decorator)和代理模式(Proxy)
- UVa 10213