在服务器上安装的centos7.9系统,已经添加编辑好local.repo文件,确认内容没有问题了,挂载的光盘文件也在对应路径,但是在要重建yum源仓库时报这个错误,这个是什么原因引起的呢?要如何解决?服务器不给连接互联网,只能连接单位的内网,所以要装软件包只能配置本地源。 下面是报错信息 [root@localhost *]* yum makecache Could not retrieve mirrorlist http://mirrorlist.centos .org/?release=7&arch=x86 64&repo=os&infra-stock error was 14: curl#6 -"Could not resolve host: mirrorlist.centos org; One of the configured repositories failed T ( andyum doesn't have enough cached data to continue. At this point the onlysafe thing yum can do is fail.There are a feu 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 pointto a workingupstream.This is most often usefulifyou are usinga newer distribution release than is supported bythe repository(andthe packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum--disabl erepo=. . 4. Disable the repository permanently, so yum won't use it by default. Yumwil1 then just ignore the repository until you permanently enableitagain or use --enablerepo for temporary usage : yum-config-manager --disable subscription-manager repos -disable=(repoid> 5. Configure the failing repository to be skipped, if it is unavai lable.Note that yum will try to contact the repo. when it runs most commands,so uill have to try and fall each time (and thus. yum uill bebe muchslower). If itis a very temporary problem though, this is oftena nicecompromlse:
1条回答 默认 最新
悬赏问题
- ¥200 csgo2的viewmatrix值是否还有别的获取方式
- ¥15 Stable Diffusion,用Ebsynth utility在视频选帧图重绘,第一步报错,蒙版和帧图没法生成,怎么处理啊
- ¥15 请把下列每一行代码完整地读懂并注释出来
- ¥15 pycharm运行main文件,显示没有conda环境
- ¥15 寻找公式识别开发,自动识别整页文档、图像公式的软件
- ¥15 为什么eclipse不能再下载了?
- ¥15 编辑cmake lists 明明写了project项目名,但是还是报错怎么回事
- ¥15 关于#计算机视觉#的问题:求一份高质量桥梁多病害数据集
- ¥15 特定网页无法访问,已排除网页问题
- ¥50 如何将脑的图像投影到颅骨上