新闻中心
新闻中心与新手教程
新闻中心与新手教程
发布时间:2024-10-04 10:31:06
sudo mv /etc/yum.repos.d/centos-base.repo /etc/yum.repos.d/centos-base.repo.backupsudo curl -o /etc/yum.repos.d/centos-base.repo https://mirrors.aliyun.com/repo/centos-7.reposudo yum clean all sudo yum makecachesudo cp /etc/apt/sources.list /etc/apt/sources.list.backupsudo nano /etc/apt/sources.listdeb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ stable/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian-security/ stable/updates main contrib non-free
sudo apt updatesudo cp /etc/apt/sources.list /etc/apt/sources.list.backupsudo nano /etc/apt/sources.listdeb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
sudo apt update注意事项:
sudo yum update(centos)或 sudo apt upgrade(debian/ubuntu)。感谢:05互联