linux 实验 -14 虚拟机的换源操作

55 阅读1分钟

1、centos

centos比较简单只需一条命令即可

wget -O /etc/yum.repos.d/CentOS-Base.repo mirrors.aliyun.com/repo/Centos…

输入即可

2、Ubuntu --2204版本

image.png

image.png

deb <http://mirrors.aliyun.com/ubuntu> jammy main restricted universe multiverse 
deb<http://mirrors.aliyun.com/ubuntu> jammy-updates main restricted universe multiverse 
deb <http://mirrors.aliyun.com/ubuntu> jammy-security main restricted universe multiverse 
deb <http://mirrors.aliyun.com/ubuntu> jammy-backports main restricted universe multiverse deb <http://mirrors.aliyun.com/ubuntu> jammy-proposed main restricted universe multiverse


image.png