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

相关推荐
古城小栈11 分钟前
Docker 下配置 Pgsql 主从复制详细步骤指南
运维·docker·容器
chao_66666623 分钟前
AI coding 代码开发规范
linux·运维·服务器
xiaobangsky39 分钟前
Linux SMB/CIFS 网络挂载配置指南
linux·运维·网络
代码中介商1 小时前
Linux 基础命令完全指南:从文件操作到进程管理
linux·运维·服务器
Agent产品评测局1 小时前
律所行业自动化平台选型,合同审核与案件管理优化 | 2026年法律科技Agent化演进与企业级智能体实测横评
运维·人工智能·科技·ai·chatgpt·自动化
何中应1 小时前
Docker-Compose环境配置&使用
运维·docker·容器
YuanDaima20482 小时前
堆(优先队列)基础原理与题目说明
linux·运维·服务器·人工智能·python··代码
生万千欢喜心2 小时前
linux 安装 人大金仓数据库
linux·运维·数据库
Finn Wang2 小时前
KeyPresser 一款自动化按键工具
运维·自动化
坚持就完事了3 小时前
scp命令
linux·运维·服务器