【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

选择一种方式(新位置)写入到对应文件中去

更新

更新完软件源后即可使用更新后的镜像源~

更新软件源:

bash 复制代码
sudo apt-get update

更新软件(可选):

sudo apt-get upgrade

贰、参考

相关推荐
好想有猫猫11 分钟前
【Git】初识Git
linux·c++·git·ubuntu·elasticsearch·学习方法
小阿轩yx12 分钟前
小阿轩yx-案例:Zabbix监控kubernetes云原生环境
linux·云原生·kubernetes·云计算·zabbix·运维开发
标标大人24 分钟前
linux系统蓝牙框架
linux
MrGaomq2 小时前
Linux权限
linux·运维·服务器·c语言·数据结构·c++·动态规划
霍霍哈嗨3 小时前
【linux基础】linux中的开发工具(4)--调试器gdb的使用
linux·运维·服务器
XY.散人3 小时前
初识Linux · 进程(4)
linux·运维·服务器
Length-vision4 小时前
Linux入门学习:Linux权限理解
linux·运维·学习
读书,代码与猫4 小时前
【裸机装机系列】3.kali(ubuntu)-更新sources.list并重启
linux·经验分享·后端·ubuntu·debian
春天的菠菜4 小时前
【Pycharm】Pycharm创建Django提示pip版本需要升级
linux·开发语言·python
编织幻境的妖4 小时前
Linux面试题3
linux·服务器·数据库