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

相关推荐
saynaihe12 分钟前
proxmox8升级到proxmox9
linux·运维·服务器
Delphi菜鸟24 分钟前
docker 部署RustDesk服务
运维·docker·容器
Orchestrator_me25 分钟前
CentOS交换区处理
linux·运维·centos
FLS16828 分钟前
VMwaer虚拟机安装完Centos后无法联网问题
linux·运维·centos
OctopusMonster29 分钟前
centos下gdb调试python的core文件
linux·运维·centos
wanhengidc1 小时前
云手机可以息屏挂手游吗?
运维·网络·安全·游戏·智能手机
一只小白菜~1 小时前
实战记录:H3C路由器IS-IS Level-1邻居建立与路由发布
运维·网络·计算机网络·智能路由器
Britz_Kevin1 小时前
从零开始的云计算生活——第五十九天,基于Jenkins自动打包并部署Tomcat环境
运维·jenkins·生活
今晚务必早点睡1 小时前
从零到上线:Docker、Docker Compose 与 Runtime 安装部署全指南(含实战示例与应用场景)
运维·docker·容器
snowfoootball2 小时前
(自用)Linux 常用命令自查文档
linux·运维·服务器