debian 更新源

前言

实现一键替换在线源

一键更新源

  • Debian 全球镜像站

  • 以下支持现有debian 11 12

    echo "Delete the default source"
    rm -rf /etc/apt/sources.list

    echo "Build a new source"
    cat <<'EOF'>>/etc/apt/sources.list.d/debian.sources
    Types: deb
    URIs: http://mirrors.aliyun.com/debian
    Suites: bullseye bullseye-updates bullseye-backports
    Components: main contrib non-free
    Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

    Types: deb
    URIs: http://security.debian.org/
    Suites: bullseye-security
    Components: main contrib non-free
    Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
    EOF

    echo "update source"
    apt update

相关推荐
十年磨一剑~几秒前
centos查看开启关闭防火墙状态
linux·运维·centos
无效的名字14 分钟前
向日葵远程控制debian无法进入控制画面的解决方法
运维·debian
藥瓿亭40 分钟前
K8S认证|CKS题库+答案| 7. Dockerfile 检测
运维·ubuntu·docker·云原生·容器·kubernetes·cks
搬码临时工1 小时前
如何把本地服务器变成公网服务器?内网ip网址转换到外网连接访问
运维·服务器·网络·tcp/ip·智能路由器·远程工作·访问公司内网
Guheyunyi2 小时前
监测预警系统重塑隧道安全新范式
大数据·运维·人工智能·科技·安全
知更鸟呆呆2 小时前
【Linux操作系统】基础开发工具(yum、vim、gcc/g++)
linux·运维·vim
Gold Steps.3 小时前
Docker容器部署elasticsearch8.*与Kibana8.*版本使用filebeat采集日志
运维·docker·云原生·es
m0_637146933 小时前
C语言基础面试问答
运维·服务器
ricky_fan4 小时前
window下配置ssh免密登录服务器
运维·服务器·ssh
地衣君4 小时前
Ubuntu 配置使用 zsh + 插件配置 + oh-my-zsh 美化过程
linux·运维·ubuntu