linux下yum安装时出现Loaded plugins: fastestmirror的办理办法

打印 上一主题 下一主题

主题 1684|帖子 1684|积分 5052

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
一、centos7修改源

在CentOS 7中,修改体系软件源可以通过编辑/etc/yum.repos.d/目录下的.repo文件来实现。以下是一个根本的步骤和示例代码,用于将默认的软件源修改为阿里云的源。
备份当前的CentOS-Base.repo文件:
   sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
  下载阿里云的CentOS源配置文件:
   sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  扫除缓存并生成新的缓存:
   sudo yum clean all
sudo yum makecache
  以上步骤将会将体系的软件源修改为阿里云的源,并更新缓存。你可以根据需要将上述的阿里云源地址换成其他的源地址。
二、常用Linux的国内源

   Centos
中国软件科学院研究所
https://mirror.iscas.ac.cn/centos/
校园团结镜像源
https://help.mirrors.cernet.edu.cn/centos/
清华大学源
https://mirrors.tuna.tsinghua.edu.cn/help/centos/
中科大源
https://mirrors.ustc.edu.cn/help/centos.html
上海交通大学源
https://mirrors.sjtug.sjtu.edu.cn/docs/centos
北京交通大学源
https://mirror.bjtu.edu.cn/help/centos/
阿里源
https://developer.aliyun.com/mirror/centos
epel源(Centos企业源)
中国软件科学院研究所
https://mirror.iscas.ac.cn/epel/
校园团结镜像源
https://help.mirrors.cernet.edu.cn/epel/
清华大学源
https://mirrors.tuna.tsinghua.edu.cn/help/epel/
中科大源
https://mirrors.ustc.edu.cn/help/epel.html
阿里源
https://developer.aliyun.com/mirror/epel
Ubuntu
中国软件科学院研究所
https://mirror.iscas.ac.cn/ubuntu/
校园团结镜像源
https://help.mirrors.cernet.edu.cn/ubuntu/
清华大学源
https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
中科大源
https://mirrors.ustc.edu.cn/help/ubuntu.html
阿里源
https://developer.aliyun.com/mirror/ubuntu
上海交通大学源
https://mirrors.sjtug.sjtu.edu.cn/docs/ubuntu
北京交通大学源
https://mirror.bjtu.edu.cn/help/ubuntu/
Debian
中国软件科学院研究所
https://mirror.iscas.ac.cn/debian/
校园团结镜像源
https://help.mirrors.cernet.edu.cn/debian/
清华大学源
https://mirrors.tuna.tsinghua.edu.cn/help/debian/
中科大源
https://mirrors.ustc.edu.cn/help/debiancn.html
阿里源
https://developer.aliyun.com/mirror/debian
上海交通大学源
https://mirrors.sjtug.sjtu.edu.cn/docs/debian
Proxmox(PVE)
中国软件科学院研究所
https://mirror.iscas.ac.cn/proxmox/
校园团结镜像源
https://help.mirrors.cernet.edu.cn/proxmox/
清华大学源
https://mirrors.tuna.tsinghua.edu.cn/help/proxmox/
中科大源
https://mirrors.ustc.edu.cn/help/proxmox.html
Ceph
中国软件科学院研究所
https://mirror.iscas.ac.cn/ceph/
校园团结镜像源
https://help.mirrors.cernet.edu.cn/ceph/
清华大学源
https://mirrors.tuna.tsinghua.edu.cn/ceph/
中科大源
https://mirrors.ustc.edu.cn/ceph/
                 
原文链接:https://blog.csdn.net/weixin_51792671/article/details/125044470
  三、使用 yum 出现 Loaded plugins: fastestmirror

配置好镜像源后,如果还是无法使用且报错为
Loaded plugins: fastestmirror

办理方法:

1.修改fastestmirror配置文件

vim /etc/yum/pluginconf.d/fastestmirror.conf 
复制
将 enable=1 改为 enable=0

2.修改yum配置文件

 vim /etc/yum.conf
将plugins改为0

3.扫除缓存并重新构建yum源

依次执行
   yum clean all
  yum clean dbcache
  yum makecache
   

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

万万哇

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表