yum makecache生成缓存时报错One of the configured …

执行操作:

yum makecache

报错内容:

Loading mirror speeds from cached hostfile* base: mirror.lzu.edu.cn* extras: mirror.lzu.edu.cn* updates: mirror.lzu.edu.cn
centos/filelists_db            FAILED
file:///mnt/repodata/ce678501a07f940dbe16d3e4fcb495050fd48ec429c5e8ea955e681594f90934-filelists.sqlite.bz2: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/ce678501a07f940dbe16d3e4fcb495050fd48ec429c5e8ea955e681594f90934-filelists.sqlite.bz2"
正在尝试其它镜像。
centos/other_db                FAILED
file:///mnt/repodata/281832be789b989fe8c543f9de47992c0b1de080a4c7f7971a587cfa64d58f86-other.sqlite.bz2: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/281832be789b989fe8c543f9de47992c0b1de080a4c7f7971a587cfa64d58f86-other.sqlite.bz2"
正在尝试其它镜像。
file:///mnt/repodata/ce678501a07f940dbe16d3e4fcb495050fd48ec429c5e8ea955e681594f90934-filelists.sqlite.bz2: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/ce678501a07f940dbe16d3e4fcb495050fd48ec429c5e8ea955e681594f90934-filelists.sqlite.bz2"
正在尝试其它镜像。One of the configured repositories failed (this is centos.repo),and yum doesn't have enough cached data to continue. At this point the onlysafe thing yum can do is fail. There are a few ways to work "fix" this:1. Contact the upstream for the repository and get them to fix the problem.2. Reconfigure the baseurl/etc. for the repository, to point to a workingupstream. This is most often useful if you are using a newerdistribution release than is supported by the repository (and thepackages for the previous distribution release still work).3. Run the command with the repository temporarily disabledyum --disablerepo=centos ...4. Disable the repository permanently, so yum won't use it by default. Yumwill then just ignore the repository until you permanently enable itagain or use --enablerepo for temporary usage:yum-config-manager --disable centosorsubscription-manager repos --disable=centos5. Configure the failing repository to be skipped, if it is unavailable.Note that yum will try to contact the repo. when it runs most commands,so will have to try and fail each time (and thus. yum will be be muchslower). If it is a very temporary problem though, this is often a nicecompromise:yum-config-manager --save --setopt=centos.skip_if_unavailable=truefailure: repodata/ce678501a07f940dbe16d3e4fcb495050fd48ec429c5e8ea955e681594f90934-filelists.sqlite.bz2 from centos: [Errno 256] No more mirrors to try.
file:///mnt/repodata/ce678501a07f940dbe16d3e4fcb495050fd48ec429c5e8ea955e681594f90934-filelists.sqlite.bz2: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/ce678501a07f940dbe16d3e4fcb495050fd48ec429c5e8ea955e681594f90934-filelists.sqlite.bz2"

解决方案:

ping网络没有问题

ping www.baidu.com
PING www.a.shifen.com (220.181.38.150) 56(84) bytes of data.
64 bytes from 220.181.38.150 (220.181.38.150): icmp_seq=1 ttl=50 time=21.3 ms
64 bytes from 220.181.38.150 (220.181.38.150): icmp_seq=2 ttl=50 time=21.8 ms
^C

查看是不是yum源问题

vim /etc/yum.repos.d/centos.repo

yum源已配置没有问题 ,若未配置则需创建centos.repo

查看sro是否挂载

df -h

挂载失败,手动挂载

 mount /dev/cdrom /mnt

再次测试,问题解决

yum makecache生成缓存时报错One of the configured repositories failed (this is centos.repo), and yum doesn‘相关推荐

  1. Centos yum命令报错One of the configured repositories failed(Unknown), and yum doesnt have.

    问题 今天网站证书失效了,想着更新一下,使用yum命令,结果就遇到了错误One of the configured repositories failed (Unknown), and yum doe ...

  2. linux centos yum 报错 one of the configured repositories failed 解决方法

    目录 错误现象 解决方法 第一步 第二步 错误现象 One of the configured repositories failed (Unknown), and yum doesn't have ...

  3. ArcMAp10.2生成栅格数据时报错

    用ArcMap10.2的ToolBox中的一些工具生成栅格数据时报错,但当在输出栅格的名字后面加上后缀时(如*.tif.*.png等),就不会. 另:应该是存储路径中有中文字符导致,若为全英则不会出现 ...

  4. 【linux】在CentOS7上更改端口号时报错:Job for sshd.service failed because the control process exited with error

    1.问题描述 在在CentOS7上更改端口号时报错: Job for sshd.service failed because the control process exited with error ...

  5. Redis_保存数据时报错MISCONF Redis is configured to save RDB snapshots, but it is curren

    Redis_保存数据时报错MISCONF Redis is configured to save RDB snapshots, but it is currently not able to pers ...

  6. VSCode中配置Rust时报错:error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1

    环境配置:Win10+VSCode+MinGW Rust安装成功后,在VSCode中创建工程调试,执行编译时报了这个错:error: linking with x86_64-w64-mingw32-g ...

  7. PowerDesigner生成数据库时报错Reflexive and mandatory reference

    生成数据库时勾选检查模型(check model)时报Reflexive and mandatory reference错误. 解决方案一 如果是单纯不想看到错误信息在创建数据库时取消勾选check ...

  8. Centos 8使用yum或者dnf安装时报错解决

    Centos 用yum或者dnf安装包的时候发现会报错: Error: Failed to download metadata for repo 'AppStream': Cannot prepare ...

  9. jmeter执行脚本并生成测试报告时报错:Results file:result.jtl is not empty

    jmeter:5.1.1 操作系统:Win10 重现步骤:今天想通过命令执行jmeter的脚本并生成HTML测试报告,第一次执行没有问题,第二次执行的时候报错:Results file:result. ...

最新文章

  1. C# Stream 和 byte[] 之间的转换(文件流的应用)
  2. onDraw(canvas)和dispatchDraw(canvas)方法
  3. rtorrent -- PT机的下载利器
  4. onInterceptTouchEvent / onTouchEvent响应事件的详析
  5. java:IO流学习小结
  6. Java基础知识陷阱(九)
  7. go编程语言为什么这么流行?
  8. linux多线程编程书籍推荐:linux大牛之路从这几本书開始总结
  9. Maven第9篇:多环境构建
  10. windows系统redis部署配置(IP端口服务)配置
  11. 【练习】获取新浪搜索中的热搜榜的标题
  12. Ultimate Colour Control for mac(fcpx终极色彩控制插件)
  13. AI 产品如何做产品定位分析?
  14. Pytorch-模型参数:named_parameters()、parameters()、state_dict()区别
  15. 利用 element ui 进度条实现渐变 条纹进度条
  16. 位运算的优点和小白鼠面试题
  17. 华为认证的网络工程师证好考吗,含金量高吗 ?
  18. vr技术在计算机教学中的应用,虚拟现实技术在计算机教学中的应用
  19. Ecshop 扯淡问题
  20. ACTIVEPERL 5.10无法ppm安装

热门文章

  1. QT + VS2010 实现中英文切换
  2. SLAM踩坑| 对‘pcl::console::print(pcl::console::VERBOSITY_LEVEL, char const*, ...)’未定义的引用
  3. vue-app之h5下载文件并安装
  4. 微信小程序开发之——比较数字大小-创建项目(2.1)
  5. linux下 ps 配合 kill 命令的用法
  6. 2022电工(高级)操作证考试题库及模拟考试
  7. centos7安装在两块硬盘上_linux系统u盘安装教程 u盘装linux系统步骤
  8. MATLAB的数学运算基础
  9. 光伏整县推进,农网重构进行时——福建低压400V并网,有线2M信号接入调度通信
  10. 为何积极员工变懒散?