首页 > 其他分享 >Debian 国内常用镜像源

Debian 国内常用镜像源

时间:2023-01-24 11:11:29浏览次数:43  
标签:常用 http buster mirrors non debian 镜像 main Debian

  • Debian 国内常用镜像源

     

    Debian 国内常用镜像源

    随着 Debian Buster 10.3 的发布,Debian Buster 日趋稳定。如果在生产上使用了 Debian 9 的系统,现在是可以安全的,灰度升级到 Debian Buster 做前期验证了。这里我们整理一下国内较知名的镜像站点,共大家在生产环境中使用。

    如何更新系统安装源
    一般我们修改 /etc/apt/sources.list 文件,将 Debian 的默认源地址改成新的地址即可,比如将 http://deb.debian.org 改成 https://mirrors.163.com,可使用以下这条命令:

    sed -i 's#http://deb.debian.org#https://mirrors.163.com#g' /etc/apt/sources.list
    注意,如果安装源是 https 协议的,我们还需要安装软件包 apt-transport-https。 执行 apt-get install apt-transport-https,随后再执行 apt-get update 即可。

    常用安装源站点列表
    163镜像站

    deb http://mirrors.163.com/debian/ buster main non-free contrib
    deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
    deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
    deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib

    deb-src http://mirrors.163.com/debian/ buster main non-free contrib
    deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
    deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
    deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
    华为云镜像站

    deb https://mirrors.huaweicloud.com/debian/ buster main contrib non-free
    deb https://mirrors.huaweicloud.com/debian/ buster-updates main contrib non-free
    deb https://mirrors.huaweicloud.com/debian/ buster-backports main contrib non-free
    deb https://mirrors.huaweicloud.com/debian-security/ buster/updates main contrib non-free

    deb-src https://mirrors.huaweicloud.com/debian/ buster main contrib non-free
    deb-src https://mirrors.huaweicloud.com/debian/ buster-updates main contrib non-free
    deb-src https://mirrors.huaweicloud.com/debian/ buster-backports main contrib non-free
    腾讯云镜像站

    deb http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
    deb http://mirrors.cloud.tencent.com/debian-security buster/updates main
    deb http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
    deb http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib

    deb-src http://mirrors.cloud.tencent.com/debian-security buster/updates main
    deb-src http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
    deb-src http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
    deb-src http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib
    中科大镜像站

    deb https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
    deb https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
    deb https://mirrors.ustc.edu.cn/debian/ buster-backports main contrib non-free
    deb https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free

    deb-src https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
    deb-src https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
    deb-src https://mirrors.ustc.edu.cn/debian/ buster-backports main contrib non-free
    deb-src https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free
    阿里云镜像站

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

    deb-src http://mirrors.aliyun.com/debian-security buster/updates main
    deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
    清华大学镜像站

    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
    deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free

    deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
    deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
    deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
    deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
    兰州大学镜像站

    deb http://mirror.lzu.edu.cn/debian stable main contrib non-free
    deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
    deb http://mirror.lzu.edu.cn/debian/ buster-backports main contrib non-free
    deb http://mirror.lzu.edu.cn/debian-security/ buster/updates main contrib non-free

    deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free
    deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
    deb-src http://mirror.lzu.edu.cn/debian/ buster-backports main contrib non-free
    deb-src http://mirror.lzu.edu.cn/debian-security/ buster/updates main contrib non-free
    上海交大镜像站

    deb https://mirror.sjtu.edu.cn/debian/ buster main contrib non-free
    deb https://mirror.sjtu.edu.cn/debian/ buster-updates main contrib non-free
    deb https://mirror.sjtu.edu.cn/debian/ buster-backports main contrib non-free
    deb https://mirror.sjtu.edu.cn/debian-security/ buster/updates main contrib non-free

    deb-src https://mirror.sjtu.edu.cn/debian/ buster-updates main contrib non-free
    deb-src https://mirror.sjtu.edu.cn/debian/ buster-backports main contrib non-free
    deb-src https://mirror.sjtu.edu.cn/debian/ buster main contrib non-free
    deb-src https://mirror.sjtu.edu.cn/debian-security/ buster/updates main contrib non-free
    附上官方全球镜像站列表地址:https://www.debian.org/mirror/list

    debian 7.x (wheezy)

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

    deb http://mirrors.aliyun.com/debian/ wheezy main non-free contrib
    deb http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ wheezy main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib
    debian 8.x (jessie)

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

    deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib
    deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
    debian 9.x (stretch)

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

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


    sed -i 's#http://deb.debian.org#https://mirrors.163.com#g' /etc/apt/sources.list

    apt-get update

    apt-get upgrade


    apt-get install inetutils-ping

    还有ifconfig 可以用 apt-get install net-tools 来安装~


    再来补充(解决不知道命令怎样安装的终极办法)

    今天又新拉最新的centos 镜像,创建好容器之后,进入容器竟然连service 命令都没有。于是继续谷歌,后来找到了whatprovides 这个命令,找到一台装有service 命令的主机,执行

    whereis service
    找到service 所在路径

    然后利用下面命令得到是哪个包安装了service

    1
    yum whatprovides /sbin/service
    得到如下结果

    1
    2
    3
    4
    initscripts-9.49.30-1.el7.x86_64 : The inittab file and the /etc/init .d scripts
    Repo : installed
    Matched from:
    Filename : /sbin/service
    最后 yum install initscripts 就搞定了。

标签:常用,http,buster,mirrors,non,debian,镜像,main,Debian
From: https://www.cnblogs.com/zxdplay/p/17065954.html

相关文章

  • Linux Debian11安装QT6开发环境
    从Qt5.14开始,官方不提供离线安装包,只提供源码包和在线安装器。但是清华为我们提供了快速的在线安装方式。一.下载清华提供的在线安装器在线安装器下载链接二、给在线安装......
  • 创建harbor镜像仓库密钥
    1、创建密钥kubectlcreatesecretdocker-registryharbor-keys--docker-server=skg.harbor.bjshxg.com:80--docker-username=admin--docker-password=harbor123456......
  • Debian常见故障解决方案
    1、Temporaryfailureinnameresolution错误解决方法意为域名解析失败,检查DNS服务器设置nano/etc/resolv.conf添加以下内容1namesever8.8.8.8参考:(8条消息)......
  • 如何重置Debian 10系统的root登录密码.Debian 10 默认密码是debia
    谜底就在谜面上,密码是debian如何重置Debian10系统的root登录密码.Debian10默认密码是debian 在这个简短的教程中,您将学习如何在Debian10服务器的系统中重设忘记......
  • 【ubuntu基础】linux常用命令总结
    前言 常用命令查看cpu内存使用情况tophtop 解压文件至某个目录tar-zxvfaaa.tar.gz-C/path/to/untar/​​ 删除size为0的文件​​find.-name"*"-typef-size0c......
  • vscode常用快捷键
    1、向上/向下移动代码行alt+下箭头/上箭头2、向上/向下复制一行代码shift+alt+下箭头/上箭头3、选定多个相同的单词Ctrl+d4、全局替换Ctrl+h5、快速定位到某一行Ctrl......
  • Python语言基础—列表的常用操作
    希望本阶段内容可以帮助大家学好Python基础,详情可以关注上方Python专栏!文章目录​​系列文章目录​​​​一、列表的应用场景​​​​二、列表的格式​​​​三、列表的常用......
  • 常用逻辑用语@命题@猜想@量词
    文章目录​​命题​​​​猜想​​​​量词​​​​全称量词和存在量词的否定​​​​命题的真假和否定命题的真假​​​​全称量词命题与存在量词命题的否定​​​​归纳:......
  • P28_全局配置 - 常用的全局配置项以及小程序窗口的组成部分
    全局配置文件及常用的配置项pages记录当前小程序所有页面的存放路径window全局设置小程序窗口的外观tabBar设置小程序底部的tabBar效果style是否启......
  • P28_全局配置 - 常用的全局配置项以及小程序窗口的组成部分
    全局配置文件及常用的配置项pages记录当前小程序所有页面的存放路径window全局设置小程序窗口的外观tabBar设置小程序底部的tabBar效果style是否启......