【运维】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

相关推荐
航Hang*38 分钟前
Windows Server 配置与管理——第3章:文件系统管理
运维·服务器·windows·vmware
lifewange1 小时前
Linux ps 进程查看命令详解
linux·运维·服务器
功德+n1 小时前
Linux下安装与配置Docker完整详细步骤
linux·运维·服务器·开发语言·docker·centos
问简2 小时前
ubuntu24 主题经验
ubuntu
左手厨刀右手茼蒿2 小时前
Linux 内核中的块设备驱动:从原理到实践
linux·嵌入式·系统内核
杨云龙UP2 小时前
从0到1快速学会Linux操作系统(基础),这一篇就够了!
linux·运维·服务器·学习·ubuntu·centos·ssh
HXQ_晴天2 小时前
Ubuntu 设置中文输入法
linux·运维·ubuntu
Dovis(誓平步青云)2 小时前
《Linux 信号入门:搞懂 “进程通信的紧急电话” 到底怎么用(初篇)》
linux·运维·服务器
左手厨刀右手茼蒿2 小时前
Linux 内核中的模块机制:从加载到卸载
linux·嵌入式·系统内核