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

相关推荐
love530love27 分钟前
记一次不太顺利的Docker重装
运维·docker·容器
刘若水33 分钟前
Linux: 系统内核中的信号
linux·运维·服务器
孙同学_2 小时前
【Linux篇】基础IO - 文件描述符的引入
linux·运维·网络
张彦峰ZYF3 小时前
高频面试题(含笔试高频算法整理)基本总结回顾63
linux·运维·算法
从零开始学习人工智能5 小时前
Docker 镜像导出与导入:export/import vs save/load
运维·docker·容器
rufeike8 小时前
Rclone同步Linux数据到google云盘
linux·运维·服务器
csdn_aspnet8 小时前
如何在 Linux 上安装 Python
linux·运维·python
西贝爷11 小时前
批量删除git本地分支和远程分支命令
运维
jianbiao148311 小时前
远程服务器下载llama模型
运维·服务器
fei_sun11 小时前
获取ssh密钥
运维·ssh