debian 更新源

前言

实现一键替换在线源

一键更新源 


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

相关推荐

  1. debian apt 更改阿里

    2024-07-20 05:42:06       19 阅读
  2. Debian 配置国内软件

    2024-07-20 05:42:06       30 阅读
  3. <span style='color:red;'>Debian</span>

    Debian

    2024-07-20 05:42:06      26 阅读
  4. Debian/Ubuntu配置aliyun和安装工具

    2024-07-20 05:42:06       53 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-20 05:42:06       52 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-20 05:42:06       54 阅读
  3. 在Django里面运行非项目文件

    2024-07-20 05:42:06       45 阅读
  4. Python语言-面向对象

    2024-07-20 05:42:06       55 阅读

热门阅读

  1. @SpringBootApplication 注解及源码 详解

    2024-07-20 05:42:06       18 阅读
  2. HRCSA作业

    2024-07-20 05:42:06       15 阅读
  3. VB6打印技术-VB6单位缇转毫米,毫米转缇

    2024-07-20 05:42:06       13 阅读
  4. mysql的备份和恢复和日志管理

    2024-07-20 05:42:06       14 阅读
  5. 形状之美:WebKit中CSS形状的实现与创新

    2024-07-20 05:42:06       18 阅读
  6. 掌控视界:WebKit与CSS视口单位的卓越支持

    2024-07-20 05:42:06       16 阅读
  7. 视觉探秘:sklearn中聚类标签的可视化之道

    2024-07-20 05:42:06       17 阅读
  8. DPKG(Debian / Ubuntu包管理工具)的深入探索与使用

    2024-07-20 05:42:06       14 阅读
  9. 机器学习概貌了解

    2024-07-20 05:42:06       17 阅读