道家人 发表于 2024-12-22 00:24:21

【Ubuntu】Ubuntu 24 设置镜像源

【Ubuntu】Ubuntu 24 设置镜像源

零、起因

最近在假造机中安装了个ubuntu-24.04-desktop-amd64,默认是国外的软件源,很慢,故更换到国内。
壹、更换

源地址(阿里源)

https://developer.aliyun.com/mirror/ubuntu
软件源文件内容:

原位置(/etc/apt/sources.list)
deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
新位置(/etc/apt/sources.list.d/ubuntu.sources)
# 阿里云
Types: deb
URIs: http://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
选择一种方式(新位置)写入到对应文件中去
更新

更新完软件源后即可使用更新后的镜像源~
更新软件源:
sudo apt-get update
更新软件(可选):
sudo apt-get upgrade
贰、参考



[*]ubuntu镜像_ubuntu下载地址_ubuntu安装教程-阿里巴巴开源镜像站
[*]Ubuntu 24.04 抢先体验换国内源 清华源 阿里源 中科大源 163源

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: 【Ubuntu】Ubuntu 24 设置镜像源