Ubuntu 24 换国内源及原理 (阿里源)

永远的零 2024-06-14 AM 36℃ 0条

备份原文件

sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak

编辑源文件

sudo gedit /etc/apt/sources.list.d/ubuntu.sources

(阿里源)

Types: deb deb-src
URIs: https://mirrors.aliyun.com/ubuntu/
Suites: noble noble-security noble-updates noble-proposed noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

更新:

sudo apt-get update
sudo apt-get upgrade

人要么永不做梦,要么梦得有趣;人也必须学会清醒:要么永不清醒,要么清醒得有趣。

评论啦~