【运维】ubuntu修改镜像源

1、备份原文件

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

2、修改镜像源

复制代码
Types: deb
URIs:   https://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:   https://mirrors.aliyun.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg


修改镜像源为国内镜像源


镜像源	地址
阿里云	https://mirrors.aliyun.com/ubuntu/
清华大学	https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
华为云	https://mirrors.huaweicloud.com/repository/ubuntu/

3、更新镜像源

apt update && sudo apt upgrade -y

相关推荐
大哥您好2 小时前
QEMU 11.1.2 多架构编译指南(x86_64 / aarch64 / riscv64)
linux·服务器
道满科技3 小时前
Function Calling 参数总出错?只修参数就行
linux·windows·python
Gauss松鼠会3 小时前
高斯数据库(openGauss)的物理存储结构
运维·服务器·数据库·sql·opengauss·经验总结
Android系统攻城狮3 小时前
Linux Gstreamer深度解析之gst_audio_ring_buffer_prepare_read调用流程与实战(七十四)
linux·运维·服务器·gstreamer音视频·音视频进阶
杨云龙UP4 小时前
PostgreSQL 18.4 数据库整库迁移实战:pg_dump 备份与 pg_restore 恢复完整操作手册
运维·服务器·数据库·postgresql·pg_dump·pg_restore
我科绝伦(Huanhuan Zhou)4 小时前
Linux 通用压力测试脚本合集:磁盘 + 网络
linux·网络·压力测试
无人生还别怕5 小时前
如何安装任意版本docker
运维·docker·容器
T0uken5 小时前
Colab:SSH 访问免费 GPU Server
运维·ssh
Python大数据分析@6 小时前
通过 MCP 实现 AI Agent自动化数据采集
运维·人工智能·爬虫·自动化
Initialize293086 小时前
告警一条接一条刷屏?五步治理告警风暴
运维