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

相关推荐
悄悄敲敲敲8 分钟前
Linux:进程间通信->共享内存
linux·运维·服务器
绵绵细雨中的乡音16 分钟前
Linux进程学习【环境变量】&&进程优先级
linux·运维·学习
天下·第二27 分钟前
【Nginx】负载均衡配置详解
运维·nginx·负载均衡
GanGuaGua1 小时前
linux:进程的替换
linux·运维·服务器
梓䈑2 小时前
【Linux系统】详解Linux权限
linux·运维·bash
Mr_sun.2 小时前
Day23-Web开发——Linux
linux·运维·服务器
极小狐2 小时前
如何创建并使用极狐GitLab 部署令牌?
运维·git·ssh·gitlab·github
高峰君主3 小时前
全栈自动化:从零构建智能CI/CD流水线
运维·ci/cd·自动化
IT运维爱好者4 小时前
Ubuntu 22.04.4操作系统初始化详细配置
linux·运维·服务器·ubuntu
qq_543248525 小时前
正则表达式三剑客之——grep和sed
linux·运维·正则表达式