linux修改软件源
来源:互联网 发布:品茗标书制作软件 编辑:程序博客网 时间:2024/05/01 06:30
Ubuntu
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backupsudo vim /etc/apt/sources.list国内常用源列表
- 网易163更新服务器(广东广州电信/联通千兆双线接入),包含其他开源镜像:
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
- 阿里云更新服务器(北京万网/浙江杭州阿里云服务器双线接入),包含其他开源镜像:
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
- 中国科学技术大学更新服务器(位于合肥,千兆教育网接入,百兆电信/联通线路智能路由),由中科大 Linux 用户协会和中科大学网络信息中心维护,包含其他开源镜像,Deepin 官方服务器 实际亦指向此处:
deb http://debian.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universecentos
首先备份/etc/yum.repos.d/CentOS-Base.repo
下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份),阿里云修改文件名为 CentOS-Base-aliyun.repo
- http://mirrors.163.com/.help/CentOS5-Base-163.repo
- http://mirrors.163.com/.help/CentOS6-Base-163.repo
- http://mirrors.aliyun.com/repo/Centos-5.repo
- http://mirrors.aliyun.com/repo/Centos-6.repo
运行以下命令生成缓存
yum clean all yum makecache
Fedora
1、备份
mv /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora.repo.backup
mv /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates.repo.backup
2、下载新的fedora.repo和fedora-updates.repo 到/etc/yum.repos.d/
fedora
wget -O /etc/yum.repos.d/fedora.repo http://mirrors.aliyun.com/repo/fedora.repo
fedora updates
wget -O /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo
3、之后运行sudo yum makecache生成缓存
0 0
- linux修改软件源
- 【Linux】 修改Ubuntu软件源
- Linux修改阿里云软件源
- Linux软件源镜像修改
- 如何在 Debian GNU/Linux 添加修改软件源
- ubuntu软件源修改
- ubuntu 修改软件源
- linux下启动软件,修改putty乱码
- debian添加修改软件源
- 修改ubuntu的软件源
- debian修改配置软件源
- 修改LinuxMint18安装软件源
- linux软件管理和安装(yum命令--修改yum源)
- 软件修改
- Ubuntu Linux 软件源
- linux更新软件源
- linux 软件源总结
- Linux 软件源设置
- WEB版一次选择多个文件进行批量上传(swfupload)的解决方案
- 在Ubuntu OS上创建一个dianping Scope (Qt JSON)
- 认识GDAL
- Oracle 之 OVER (PARTITION BY ..) 及开窗函数
- CIDN 是什么 有什么用?
- linux修改软件源
- poj 1087 A Plug for UNIX 二分图最大匹配
- Oracle内存全面分析(8)-Oracle的内存管理KSM和KGH
- 高精度加减乘除模板
- Universal-Image-Loader(android图片缓存)
- jsp+ajax自动刷新局部页面
- 《路由器关于RIP实验与协议》
- 题目1040:Prime Number 题目1047:素数判定
- 负载均衡-haproxy安装配置