Ubuntu

首先编辑sources.list这个文件

vi /etc/apt/sources.list

把sources.list文件内容替换成如下

deb http://mirrors.aliyun.com/debian wheezy main contrib non-free
deb-src http://mirrors.aliyun.com/debian wheezy main contrib non-free
deb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free

接下来执行以下命令,就完成阿里云kali linux镜像源了

apt-get update

Centos

修改CentOS默认yum源为mirrors.aliyun.com
1、首先备份系统自带yum源配置文件/etc/yum.repos.d/CentOS-Base.repo

1
[root@localhost ~] # mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2、下载ailiyun的yum源配置文件到/etc/yum.repos.d/
CentOS7

1
[root@localhost ~] # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

CentOS6

1
[root@localhost ~] # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

CentOS5

1
[root@localhost ~] # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

3、运行yum makecache生成缓存

1
[root@localhost ~] # yum makecache

4、这时候再更新系统就会看到以下mirrors.aliyun.com信息

1
2
3
4
5
6
[root@localhost ~] # yum -y update
已加载插件:fastestmirror, refresh-packagekit, security
设置更新进程Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com

将linux镜像源改为阿里云镜像源相关推荐

  1. Docker 的官方 yum 源切换为阿里云镜像源

    Docker 的官方 yum 源切换为阿里云镜像源 1.备份原有的 Docker yum 源配置文件 sudo cp /etc/yum.repos.d/docker-ce.repo /etc/yum. ...

  2. redhat初始化yum源,使用阿里云yum源

    本篇文章介绍redhat7使用国内阿里云yum安装源的方法,源地址使用的https://mirrors.aliyun.com/对应使用Centos7下的安装源. 在学习<Linux就该这么学&g ...

  3. 搭建私有yum源仓库同步阿里云yum源到本地私有yum仓库

    本地私有仓库搭建步骤: 1.安装nginx 2.在本机配置阿里云yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun ...

  4. 群晖docker镜像源更换为阿里云镜像源

    群晖硬件:DS218+ 系统版本:DSM 7.0-41890 docker版本:20.10.3-1233 前言:除了群晖自带的应用之外,docker里也拥有及其丰富的软件,这都是得益于开源精神.而国内 ...

  5. linux 更新yum源 改成阿里云源

    1.备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2.下载新的CentOS-Base ...

  6. linux配置docker源,国内加速镜像(注册阿里云镜像)

    docker源配置,国内加速地址 由于公司进行网络管控,唯一能连上的就是清华镜像 更改配置文件 vi /etc/docker/daemon.json //配置docker国内源 {"regi ...

  7. Linux设置yum源为阿里云镜像源

    一.验证网络是否可以连接阿里云镜像 # 验证网络是否可以连接阿里云镜像 ping mirrors.aliyun.com 二. 手动配置 1.删除原yum源 cd /etc/yum.repos.d# 删 ...

  8. 镜像 网站 linux 程序,腾讯开源镜像网站(腾讯云软件源)地址,附使用说明

    腾讯开源镜像网站(腾讯云软件源/Tencent Open Source Mirror Site)正式上线了,以下为相关介绍及使用说明. 腾讯开源镜像网站介绍 腾讯云软件源由腾讯云提供支持.搭建此开源镜 ...

  9. Centos阿里云镜像源

    CentOS,我们有很多人叫它社区企业操作系统,不管你怎么叫它,它都是linux的一个发行版本.CentOS是企业Linux发行版领头羊Red Hat Enterprise Linux(以下称之为RH ...

最新文章

  1. 用 GDI 操作 EMF 文件[2]: PlayEnhMetaFile、DeleteEnhMetaFile
  2. 开启Thread线程只执行一次
  3. Java网络编程从入门到精通(2):创建InetAddress对象的四个静态方法
  4. 2015年第四季度全球闪存行业营收同比减少5%
  5. linux下杀死进程(kill)的N种方法
  6. [Ubuntu软件]好用轻巧的录屏软件——Kazam
  7. 简单讲解一下负载均衡、反向代理模式的优点、缺点
  8. 快速下单!简化EcStore的购物结算流程
  9. spring-boot-starter-logging
  10. 傅立叶变换学习(一)初步认识傅立叶变换
  11. python医学图像分割_基于cv2的医学图像分割
  12. struts2的java.lang.NoSuchMethodException异常处理
  13. ASP连接11种数据库的常用语法
  14. 统计分组的原则是要体现什么_跨境选品有哪些方法,要遵循什么原则?
  15. android期末大作业_关于大学期末的一点碎碎念
  16. Android7.1添加开机启动服务程序关于Selinux权限问题说明
  17. U盘制作DOS启动盘MSDOS 7.10
  18. 网页游戏开发入门教程一(webgame+design)
  19. 处理C盘容量不足问题(以AppData为例)
  20. mammothJs解析docx文件

热门文章

  1. VS2015+C#实现倒计时小程序
  2. kafka 安装和启动
  3. GMSSL SM9-加密流程
  4. 易语言超级列表框的增删改查
  5. R语言中实现线性回归+l_0范数变量选择的包abess
  6. 机器学习:朴素贝叶斯算法+中文情感分类+python
  7. 阿里AI天池大赛-二手车交易价格预测-回归算法与模型融合
  8. Linux secure 日志分析
  9. 免费抠图换背景软件分享,在线页面随意编辑
  10. 少说话多写代码之Python学习016——get方法练习