首页 > 系统相关 >解决yum 不能更新问题 :yum 报错Loaded plugins: fastestmirror, refresh-packagekit, security

解决yum 不能更新问题 :yum 报错Loaded plugins: fastestmirror, refresh-packagekit, security

时间:2023-06-30 12:32:45浏览次数:44  
标签:插件 CentOS packagekit fastestmirror 报错 plugins yum 安装

因为测试需要,安装了CentOS 6.4,并需要安装kvm,虚拟Windows 2008进行测试。

实际操作中,因为CentOS 6已经停止维护了,所以每一步操作基本都存在一些问题。

Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。

在安装kvm的过程中,使用yum进行安装,提示错误如下:

Loaded plugins: fastestmirror, refresh-packagekit, security

fastestmirror是yum的一个加速插件,提示意思是插件不能用了。

那就先禁用吧

vim  /etc/yum/pluginconf.d/fastestmirror.conf

将enable=1改为0

[main]
enabled=0    //由 1 改成0 ,禁用该插件
verbose=0
always_print_best_host = true
socket_timeout=3
#  Relative paths are relative to the cachedir (and so works for users as well
# as root).
hostfilepath=timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
#include_only=.nl,.de,.uk,.ie

然后修改yum 配置文件,plugins=1改为0,不使用插件

vim /etc/yum.conf
9 plugins=0  //不使用插件

然后清除缓存

yum clean all
yum makecache

 

作者:古道轻风


标签:插件,CentOS,packagekit,fastestmirror,报错,plugins,yum,安装
From: https://blog.51cto.com/u_15949547/6589615

相关文章

  • python 报错AttributeError: '_TestResult' object has no attribute 'outputBuffer'
    报错信息: 原因:使用setupclass必须加@classmethod装饰器 解决方案:在setupclass和teardownclass方法前面加@classmethod ......
  • IDEA报错:Could not autowire, No beans of XXX type Found
    1、问题描述:   在Idea的spring工程里,经常会遇到Couldnotautowire.Nobeansof'xxxx'typefound的错误提示。(但程序的编译和运行都是没有问题的,有时候也有可能会报错,无法运行程序),这个错误提示并不会产生影响。对于程序员红色的错误提示看起来很不舒服。如下图:2.......
  • redis集群报错:MISCONF Redis is configured to save RDB snapshots, but it is curren
    之前在x86架构的服务器部署redis集群,未遇到题中问题;然而在ARM架构的服务器部署redis集群,第一次遇到如此问题。虽然问题已经解决,但不清楚问题的具体原因,在此做个记录。性能测试过程中,通过pinpoint捕捉到如下报错:MISCONFRedisisconfiguredtosaveRDBsnapshots,butitis......
  • 配置阿里云yum源
    CentOS6rm-f/etc/yum.repos.d/*wget-O/etc/yum.repos.d/CentOS-Base.repohttps://mirrors.aliyun.com/repo/Centos-6.repo--no-check-certificatesed-i-e'/mirrors.cloud.aliyuncs.com/d'-e'/mirrors.aliyuncs.com/d'/etc/yum.repos.d/Ce......
  • Apache启动报错:Invalid command ‘ProxyPass‘, perhaps misspelled or defined by a
    配置文件httpd,问题出在ProxyPass这个环节:ProxyPass/vict_servicehttp://localhost:8080/vict_service也就是要为/vict_service这个请求路径匹配一个实际可用的路径,既然提示ProxyPass命令无效,那么肯定是某个地方的设置问题。解决的方法就在httpd这个配置文件里,找到以下两条......
  • nginx error报错:nginx 8: Not enough storage is available to process this command
    在nginx.conf中http下添加如下代码:client_max_body_size2000m;client_body_buffer_size2000m;client_body_timeout500;client_header_buffer_size64k;client_header_timeout500;keepalive_requests300;large_client_header......
  • node启动报错:'NODE_OPTIONS' 不是内部或外部命令,也不是可运行的程序
    问题:解决:npminstall-gwin-node-env重新启动问题****解决......
  • 导入第三方项目maven插件报错
    导入一个微服务项目发现:Plugin'org.springframework.boot:spring-boot-maven-plugin:'notfound解决方式,添加版本号重新导入:查找下父工程的版本:发现是:2.3.9.RELEASE子工程微服务也要用这个版本的:原文:https://www.cnblogs.com/vevy/p/12246679.html......
  • Python报错 | PermissionError: [Errno 13] Permission denied: 'xxx'
    报错信息使用python对模型进行输出文件的过程中,报如下错误:PermissionError:[Errno13]Permissiondenied:'xxx'错误原因报错翻译过来是:权限错误:[errno13]权限被拒绝:错误产生的原因是文件无法打开,可能产生的原因是文件找不到,或者被占用,或者无权限访问,或者打开的不是文......
  • 龙蜥7.9配置yum本地源
    1、离线安装上传系统镜像到服务器本地回环挂载#离线安装上传龙镜像到服务器本地回环挂载mkdir/mnt/iso#创建挂载点目录mount-oloop/home/AnolisOS-7.9-GA-x86_64-dvd.iso/mnt/iso/#本地回环挂载2、修改/etc/yum.repos.d/AnolisOS-os.repovim/etc/yum.repos.d/Ano......