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

相关推荐
skywalk816334 分钟前
在FreeBSD 14.3上部署轻量级Linux jail环境 仅仅占用10M内存
linux·运维·服务器·虚拟机·轻量化·freebsd·jail
keep__go3 小时前
spark 单机安装
大数据·运维·分布式·spark
HIT_Weston5 小时前
27、【Ubuntu】【远程开发】内网穿透:CA 签名
linux·运维·ubuntu
凡间客8 小时前
Ansible安装与入门
linux·运维·ansible
_OP_CHEN8 小时前
Linux网络编程:(八)GCC/G++ 编译器完全指南:从编译原理到实战优化,手把手教你玩转 C/C++ 编译
linux·运维·c++·编译和链接·gcc/g++·编译优化·静态链接与动态链接
阿乐艾官8 小时前
【十一、Linux管理网络安全】
linux·运维·web安全
LoneEon9 小时前
告别手动操作:用 Ansible 统一管理你的 Ubuntu 服务器集群
运维·服务器·ansible
百***67039 小时前
Nginx搭建负载均衡
运维·nginx·负载均衡
梁正雄10 小时前
17、grafana安装
运维·grafana·prometheus·监控
摘星|11 小时前
架设一台NFS服务器,并按照以下要求配置
linux·运维·服务器