自学内容网 自学内容网

ubuntu 更新源

 

前言

实现一键替换在线源

一键更新源 

echo "Delete the default source"
rm -rf /etc/apt/sources.list

echo "Build a new source"
cat <<'EOF'>>/etc/apt/sources.list.d/ubuntu.sources
Types: deb
URIs: http://mirrors.aliyun.com/ubuntu
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
EOF

echo "update source"
apt update


原文地址:https://blog.csdn.net/hanzheng260561728/article/details/140553796

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!