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

相关推荐
天朝八阿哥4 分钟前
关于xfce4-pulseaudio-plugin中文翻译的bug
linux·debian
西贝爱学习7 分钟前
【软件】nginx-1.28.0安装包(Windows版)
运维·nginx
z2023050818 分钟前
linux之 remoteproc 内核实现源码分析
linux·运维·服务器
阿方索30 分钟前
shell脚本
linux·运维
嗨丶王哪跑41 分钟前
网络安全审计技术原理与应用
运维·网络·安全·web安全
斯普信专业组41 分钟前
Skywalking从部署集成到动态调优(上)
运维·skywalking·动态调优
斯普信专业组43 分钟前
Skywalking从部署集成到动态调优(下)
运维·skywalking·动态调优
卓小帅的博客2 小时前
跨服务器快速传输数据
运维·服务器
朝阳5812 小时前
nuxt2 发布到线上
运维·服务器