容器技术交流

 找回密码
 立即注册
查看: 68|回复: 14

分享自己整理的linux各发行版以及各平台的更新源

[复制链接]
发表于 2020-9-2 16:56:20 | 显示全部楼层 |阅读模式
本帖最后由 低调的维斯 于 2020-9-2 17:09 编辑

Debian

阿里云
来源:https://developer.aliyun.com/mirror/debian

debian 7.x (wheezy)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.aliyun.com/debian/ wheezy main non-free contrib
  2. deb http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib
  3. deb-src http://mirrors.aliyun.com/debian/ wheezy main non-free contrib
  4. deb-src http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib
复制代码


debian 8.x (jessie)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib
  2. deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
  3. deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib
  4. deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
复制代码


debian 9.x (stretch)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
  2. deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
  3. deb http://mirrors.aliyun.com/debian-security stretch/updates main
  4. deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
  5. deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
  6. deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
  7. deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
  8. deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
复制代码


网易
来源:http://mirrors.163.com/.help/debian.html

debian 7.x (wheezy)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.163.com/debian/ wheezy main non-free contrib
  2. deb http://mirrors.163.com/debian/ wheezy-updates main non-free contrib
  3. deb http://mirrors.163.com/debian/ wheezy-backports main non-free contrib
  4. deb-src http://mirrors.163.com/debian/ wheezy main non-free contrib
  5. deb-src http://mirrors.163.com/debian/ wheezy-updates main non-free contrib
  6. deb-src http://mirrors.163.com/debian/ wheezy-backports main non-free contrib
  7. deb http://mirrors.163.com/debian-security/ wheezy/updates main non-free contrib
  8. deb-src http://mirrors.163.com/debian-security/ wheezy/updates main non-free contrib
复制代码


debian 8.x (jessie)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.163.com/debian/ jessie main non-free contrib
  2. deb http://mirrors.163.com/debian-archive/debian/ jessie-backports main non-free contrib
  3. deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
  4. deb-src http://mirrors.163.com/debian-archive/debian/ jessie-backports main non-free contrib
  5. deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
  6. deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
复制代码


debian 9.x (stretch)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.163.com/debian/ stretch main non-free contrib
  2. deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
  3. deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
  4. deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
  5. deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
  6. deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
  7. deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
  8. deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
复制代码


腾讯云
来源:https://mirrors.cloud.tencent.com/help/debian.html

debian 7.x (wheezy)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.cloud.tencent.com/debian wheezy main contrib non-free
  2. deb http://mirrors.cloud.tencent.com/debian wheezy-updates main contrib non-free
  3. #deb http://mirrors.cloud.tencent.com/debian wheezy-proposed-updates main contrib non-free
  4. #deb http://mirrors.cloud.tencent.com/debian wheezy-backports main contrib non-free
  5. #deb http://mirrors.cloud.tencent.com/debian wheezy-backports-sloppy main contrib non-free
  6. deb-src http://mirrors.cloud.tencent.com/debian wheezy main contrib non-free
  7. deb-src http://mirrors.cloud.tencent.com/debian wheezy-updates main contrib non-free
  8. #deb-src http://mirrors.cloud.tencent.com/debian wheezy-proposed-updates main contrib non-free
  9. #deb-src http://mirrors.cloud.tencent.com/debian wheezy-backports main contrib non-free
  10. #deb-src http://mirrors.cloud.tencent.com/debian wheezy-backports-sloppy main contrib non-free
复制代码


debian 8.x (jessie)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.cloud.tencent.com/debian jessie main contrib non-free
  2. deb http://mirrors.cloud.tencent.com/debian jessie-updates main contrib non-free
  3. #deb http://mirrors.cloud.tencent.com/debian jessie-backports main contrib non-free
  4. #deb http://mirrors.cloud.tencent.com/debian jessie-proposed-updates main contrib non-free
  5. deb-src http://mirrors.cloud.tencent.com/debian jessie main contrib non-free
  6. deb-src http://mirrors.cloud.tencent.com/debian jessie-updates main contrib non-free
  7. #deb-src http://mirrors.cloud.tencent.com/debian jessie-backports main contrib non-free
  8. #deb-src http://mirrors.cloud.tencent.com/debian jessie-proposed-updates main contrib non-free
复制代码


debian 9.x (stretch)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.cloud.tencent.com/debian stretch main contrib non-free
  2. deb http://mirrors.cloud.tencent.com/debian stretch-updates main contrib non-free
  3. #deb http://mirrors.cloud.tencent.com/debian stretch-backports main contrib non-free
  4. #deb http://mirrors.cloud.tencent.com/debian stretch-proposed-updates main contrib non-free
  5. deb-src http://mirrors.cloud.tencent.com/debian stretch main contrib non-free
  6. deb-src http://mirrors.cloud.tencent.com/debian stretch-updates main contrib non-free
  7. #deb-src http://mirrors.cloud.tencent.com/debian stretch-backports main contrib non-free
  8. #deb-src http://mirrors.cloud.tencent.com/debian stretch-proposed-updates main contrib non-free
复制代码
发表于 2020-9-2 17:03:40 | 显示全部楼层
你所在用户组不能发外链,所有暂时关闭,等帮你修改好再开吧
 楼主| 发表于 2020-9-2 17:13:25 | 显示全部楼层
本帖最后由 低调的维斯 于 2020-9-2 17:15 编辑

Ubuntu

阿里云
来源:https://developer.aliyun.com/mirror/ubuntu

ubuntu 16.04(xenial)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.aliyun.com/ubuntu/ xenial main
  2. deb-src http://mirrors.aliyun.com/ubuntu/ xenial main
  3. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
  4. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main
  5. deb http://mirrors.aliyun.com/ubuntu/ xenial universe
  6. deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
  7. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
  8. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
  9. deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
  10. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
  11. deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
  12. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe
复制代码


ubuntu 18.04(bionic)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  2. deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  3. deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  4. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  5. deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  6. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  7. deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  8. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  9. deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  10. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
复制代码


ubuntu 20.04(focal)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
  2. deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
  3. deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
  4. deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
  5. deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
  6. deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
  7. deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
  8. deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
  9. deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
  10. deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
复制代码


网易
来源:http://mirrors.163.com/.help/ubuntu.html

ubuntu 16.04(xenial)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse
  2. deb http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse
  3. deb http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse
  4. deb http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse
  5. deb http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
  6. deb-src http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse
  7. deb-src http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse
  8. deb-src http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse
  9. deb-src http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse
  10. deb-src http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
复制代码


ubuntu 18.04(bionic)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
  2. deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
  3. deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
  4. deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
  5. deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
  6. deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
  7. deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
  8. deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
  9. deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
  10. deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
复制代码


ubuntu 20.04(focal)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
  2. deb http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
  3. deb http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
  4. deb http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
  5. deb http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
  6. deb-src http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
  7. deb-src http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
  8. deb-src http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
  9. deb-src http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
  10. deb-src http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
复制代码


腾讯云
来源:https://mirrors.cloud.tencent.com/help/ubuntu.html

ubuntu 16.04(xenial)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.cloud.tencent.com/ubuntu/ xenial main restricted universe multiverse
  2. deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-security main restricted universe multiverse
  3. deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-updates main restricted universe multiverse
  4. #deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-proposed main restricted universe multiverse
  5. #deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-backports main restricted universe multiverse
  6. deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial main restricted universe multiverse
  7. deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-security main restricted universe multiverse
  8. deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-updates main restricted universe multiverse
  9. #deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-proposed main restricted universe multiverse
  10. #deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-backports main restricted universe multiverse
复制代码


ubuntu 18.04(bionic)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

  1. deb http://mirrors.cloud.tencent.com/ubuntu/ bionic main restricted universe multiverse
  2. deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-security main restricted universe multiverse
  3. deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-updates main restricted universe multiverse
  4. #deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-proposed main restricted universe multiverse
  5. #deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-backports main restricted universe multiverse
  6. deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic main restricted universe multiverse
  7. deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-security main restricted universe multiverse
  8. deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-updates main restricted universe multiverse
  9. #deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-proposed main restricted universe multiverse
  10. #deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-backports main restricted universe multiverse
复制代码


ubuntu 20.04(focal)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)
  1. deb http://mirrors.cloud.tencent.com/ubuntu/ focal main restricted universe multiverse
  2. deb http://mirrors.cloud.tencent.com/ubuntu/ focal-security main restricted universe multiverse
  3. deb http://mirrors.cloud.tencent.com/ubuntu/ focal-updates main restricted universe multiverse
  4. #deb http://mirrors.cloud.tencent.com/ubuntu/ focal-proposed main restricted universe multiverse
  5. #deb http://mirrors.cloud.tencent.com/ubuntu/ focal-backports main restricted universe multiverse
  6. deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal main restricted universe multiverse
  7. deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-security main restricted universe multiverse
  8. deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-updates main restricted universe multiverse
  9. #deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-proposed main restricted universe multiverse
  10. #deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-backports main restricted universe multiverse
复制代码
 楼主| 发表于 2020-9-2 17:14:51 | 显示全部楼层
本帖最后由 低调的维斯 于 2020-9-2 17:21 编辑

CentOS

阿里云
来源:https://developer.aliyun.com/mirror/centos

备份
  1. mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
复制代码

下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

CentOS 6
  1. wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
复制代码

或者
  1. curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
复制代码

CentOS 7
  1. wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
复制代码

或者
  1. curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
复制代码

CentOS 8
  1. wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
复制代码

或者
  1. curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
复制代码

运行yum clean all && yum makecache 生成缓存


网易
来源:http://mirrors.163.com/.help/centos.html

备份
  1. mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
复制代码

下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

CentOS 6
  1. wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo
复制代码

CentOS 7
  1. wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
复制代码

CentOS 8
  1. wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS8-Base-163.repo
复制代码

运行yum clean all && yum makecache 生成缓存

腾讯云
来源:https://mirrors.cloud.tencent.com/help/centos.html

备份
  1. mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
复制代码

下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

CentOS 6
  1. wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos6_base.repo
复制代码

CentOS 7
  1. wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo
复制代码

CentOS 8
  1. wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos8_base.repo
复制代码

运行yum clean all && yum makecache 生成缓存
 楼主| 发表于 2020-9-2 17:22:11 | 显示全部楼层
本帖最后由 低调的维斯 于 2020-9-2 17:24 编辑

Alpine

阿里云
来源:https://developer.aliyun.com/mirror/alpine

1. 编辑 /etc/apk/repositories

2. 将里面 dl-cdn.alpinelinux.org 的 改成 mirrors.aliyun.com

3. 保存退出即可

  1. sed -i 's~dl-cdn.alpinelinux.org~mirrors.aliyun.com~' /etc/apk/repositories
复制代码
发表于 2020-9-2 17:23:51 | 显示全部楼层
棒!
回复

使用道具 举报

发表于 2020-9-4 17:49:20 | 显示全部楼层
楼主好人,这个不错,收藏
发表于 2020-9-4 17:57:40 | 显示全部楼层
难得有心人帮整理出来,感谢分享
发表于 2020-9-4 18:03:46 | 显示全部楼层
感谢分享,楼主辛苦了
发表于 2020-9-5 14:40:55 | 显示全部楼层
太好了,感谢分享
发表于 2020-9-6 12:39:17 | 显示全部楼层
楼主辛苦,感谢分享
发表于 2020-9-7 13:56:08 | 显示全部楼层
顶,感谢分享
发表于 2020-9-12 15:39:44 | 显示全部楼层
支持      
发表于 2020-9-12 15:44:41 | 显示全部楼层
这么好的分享竟然不火?
发表于 2020-9-12 15:56:20 | 显示全部楼层
顶,帮大家整理出来,楼主辛苦了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2020-10-27 19:58 , Processed in 0.044777 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表