【运维】Ubuntu2404使用新风格更新镜像源

一、备份

bash 复制代码
sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak

二、使用新风格的镜像源

bash 复制代码
sudo vim /etc/apt/sources.list.d/ubuntu.sources

三、删除原始内容,更新为新内容

bash 复制代码
Types: deb
URIs: https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
Suites: noble noble-updates noble-security noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

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

四、更新

bash 复制代码
sudo apt update
相关推荐
0vvv01 天前
删除wsl环境下的Ubuntu系统
linux·运维·ubuntu
C++ 老炮儿的技术栈1 天前
GCC编译时无法向/tmp 目录写入临时汇编文件,因为设备空间不足,解决
linux·运维·开发语言·汇编·c++·git·qt
Agent产品评测局1 天前
企业数据处理自动化落地,抓取分析全流程实现方案 —— 2026企业级智能体选型与技术路径深度解析
运维·人工智能·ai·自动化
autumn20051 天前
Flutter 框架跨平台鸿蒙开发 - 历史人物对话
服务器·flutter·华为·harmonyos
我科绝伦(Huanhuan Zhou)1 天前
分享一个网络智能运维系统
运维·网络
鬼先生_sir1 天前
Spring Cloud 微服务监控实战:SkyWalking + Prometheus+Grafana 全栈解决方案
运维·spring cloud·grafana·prometheus·skywalking
信创DevOps先锋1 天前
DevOps工具链选型新趋势:本土化适配与安全可控成企业核心诉求
运维·安全·devops
xyz5991 天前
如何在 WSL 中删除指定版本的 Ubuntu 以及安装
linux·运维·ubuntu
linux修理工1 天前
Claude code与CC-switch安装使用
运维·人工智能
小叶lr1 天前
jenkins打包前端样式丢失/与本地不一致问题
运维·前端·jenkins