首页 > 其他 > 详细

yum不安装任何包--问题及解决

时间:2020-12-07 09:37:00      阅读:721      评论:0      收藏:0      [点我收藏+]

二、yum不能安装包

[root@localhost ~]# yum install dhcpd -y

Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Repository ‘BaseOS‘ is missing name in configuration, using id.
Repository ‘AppStream‘ is missing name in configuration, using id.
BaseOS                                                                                                                        0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository ‘BaseOS‘:
  - Curl error (37): Couldn‘t read a file:// file for file:///mnt/BaseOS/repodata/repomd.xml [Couldn‘t open file /mnt/BaseOS/repodata/repomd.xml]								//出现错误
Error: Failed to download metadata for repo ‘BaseOS‘: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

解决方式

[root@localhost ~]# vim /etc/yum.repos.d/rhel8-2.repo<-----(自己本地的名称)					//进入此文件查看。

yum不安装任何包--问题及解决

原文:https://www.cnblogs.com/lm13572902276/p/14086791.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!