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

相关推荐
我送炭你添花14 分钟前
树莓派部署 GenieACS 作为终端TR-069 ACS(自动配置服务器)的详细规划方案
运维·服务器·网络协议
m0_7360348514 分钟前
1.27笔记
linux·服务器·笔记
华农第一蒟蒻21 分钟前
一次服务器CPU飙升的排查与解决
java·运维·服务器·spring boot·arthas
NGINX开源社区21 分钟前
借助 Okta 和 NGINX Ingress Controller 实现 K8s OpenID Connect 身份验证
运维·nginx·kubernetes
旖旎夜光35 分钟前
Linux(12)(下)
linux·网络
郝亚军1 小时前
如何在windows11和Ubuntu linux之间互传文件
linux·运维·ubuntu
ghostmen1 小时前
Kuboard 离线安装与 K3s 集群绑定完整指南
linux·kuboard·k3s
j_xxx404_1 小时前
Linux:进程状态
linux·运维·服务器
济6171 小时前
linux 系统移植(第二十三期)---- 进一步完善BusyBox构建的根文件系统---- Ubuntu20.04
linux·运维·服务器
程序员 _孜然1 小时前
openkylin、ubuntu等系统实现串口自动登录
linux·运维·ubuntu