![无法更新软件包,因为它需要 jre1.8 - “尝试使用 --skip-broken”。但是,机器上已经安装了 jre1.8](https://linux22.com/image/759882/%E6%97%A0%E6%B3%95%E6%9B%B4%E6%96%B0%E8%BD%AF%E4%BB%B6%E5%8C%85%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E9%9C%80%E8%A6%81%20jre1.8%20-%20%E2%80%9C%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%20--skip-broken%E2%80%9D%E3%80%82%E4%BD%86%E6%98%AF%EF%BC%8C%E6%9C%BA%E5%99%A8%E4%B8%8A%E5%B7%B2%E7%BB%8F%E5%AE%89%E8%A3%85%E4%BA%86%20jre1.8.png)
因此我无法在我的其中一台机器上运行 yum update。它返回以下错误:
[root@yadayada ~]# yum -y update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package ods-filerepo.noarch 0:1.3-110520.0-el6 will be updated
---> Package ods-filerepo.noarch 0:1.3-110852.0-el6 will be an update
--> Processing Dependency: jre1.8 for package: ods-filerepo-1.3-110852.0-el6.noarch
--> Finished Dependency Resolution
Error: Package: ods-filerepo-1.3-110852.0-el6.noarch (ods)
Requires: jre1.8
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
但是我显然在机器上安装了正确版本的 Java:
[root@yadayada ~]# java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
[root@yadayada ~]# yum install java
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Package jre1.8.0_121-1.8.0_121-fcs.x86_64 already installed and latest version
Nothing to do
我有点不知所措。有人知道我可以在这里查看什么来修复这个问题吗?我们使用内部存储库,但其他主机都没有遇到此问题。这是一台非常旧的机器,我负责恢复它,我不知道可能是什么原因造成的。
它在 Centos6.9 上(不是选择)。