就我而言,我试图使用 yum 安装 OpenJDK;sudo yum install -y java-1.8.0-openjdk-devel
但收到一条错误消息,指出依赖项不可用:
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.201.b09-1.el6_10 will be installed
--> Processing Dependency: pcsc-lite-devel(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-1.el6_10.x86_64
--> Finished Dependency Resolution
Error: Package: 1:java-1.8.0-openjdk-headless-1.8.0.201.b09-1.el6_10.x86_64 (rhel-6-server-rpms)
Requires: pcsc-lite-devel(x86-64)
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************
我按照建议解决了这个问题please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
,然后再次运行 yum 命令。这次 yum 加载了一堆 [previously disabled] repos 并搜索了它们,最后报告成功并显示以下消息:
*******************************************************************
Dependency resolving was successful thanks to enabling these repositories:
rhel-6-server-optional-rpms
*******************************************************************
所以没有被忽略的*-devel
回购,但这样做仍然有效。为了清除,明确忽略的回购是:ignored_repos=*debug-rpms *source-rpms *beta-rpms
..所以这行得通,但我对这个机制仍然不了解..