yum install php出现这个问题,当时 rpm -Uvh

yum install php出现这个问题,当时 rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rp%E4%BA%86%EF%BC%8C%E6%80%8E%E4%B9%88%E5%A4%84%E7%90%86

One of the configured repositories failed (未知),
and yum doesn't have enough cached data to continue. At this point the only
safe 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 working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo= ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable 
    or
        subscription-manager repos --disable=

 5. 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 much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=.skip_if_unavailable=true

database disk image is malformed

该回答引用GPTᴼᴾᴱᴺᴬᴵ
这个错误信息提示出现了一个损坏的数据库磁盘映像文件,可能是由于系统异常关闭或磁盘故障等原因导致的。这可能会导致yum仓库无法正常更新或安装软件包。为了解决这个问题,可以尝试以下方法之一:

  1. 重建缓存:运行“yum clean all”命令清除yum缓存并重建缓存。

  2. 删除缓存:删除/var/cache/yum目录下的缓存文件,然后再次运行yum命令。

  3. 修复数据库:运行“yum-complete-transaction”或“yum-complete-transaction --cleanup-only”命令来完成任何未完成的yum交易,然后运行“yum check”命令检查和修复任何损坏的数据库文件。

  4. 重建数据库:运行“rpm --rebuilddb”命令重建rpm数据库,然后运行“yum clean all”命令清除yum缓存并重建缓存。

如果上述方法都不起作用,可能需要考虑重新安装操作系统或寻求专业人员的帮助。

应该是没有安装成功吧

have enough cached data
缓存不足

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^