Skip to content

Linux软件镜像源

Ubuntu22.04

对于Jammy(Ubuntu 22.04)系统

bash
vi /etc/apt/sources.list

在重庆使用:

bash
deb http://mirrors.cqu.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src http://mirrors.cqu.edu.cn/ubuntu/ jammy main restricted universe multiverse


<NolebasePageProperties />




deb http://mirrors.cqu.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src http://mirrors.cqu.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.cqu.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://mirrors.cqu.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb http://mirrors.cqu.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://mirrors.cqu.edu.cn/ubuntu/ jammy-security main restricted universe multiverse

# deb http://mirrors.cqu.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src http://mirrors.cqu.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

提示

在西南地区选择使用重庆大学开源镜像源

更新系统

bash
apt update && apt upgrade -y

等待系统更新下载完成

CentOS 7

使用华为云镜像源

备份原本的镜像源

cp -a /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

通过wget从华为镜像站下载repo文件

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.huaweicloud.com/repository/conf/CentOS-7-anon.repo

清理原有缓存同时刷新缓存

yum clean all
yum makecache

更新系统

yum update

贡献者

The avatar of contributor named as lishu620 lishu620

文件历史

撰写