debian 更新源

avatar
作者
猴君
阅读量:0

前言

实现一键替换在线源

一键更新源 

 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

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!