Error: initscripts conflicts with 1:redhat-release-server-6S



当我尝试使用以下命令安装oracle时

sudo yum install oracle-database-server-12cR2-preinstall -y

我有以下错误。

Error: initscripts conflicts with 1:redhat-release-server-6Server-6.10.0.12.0.1.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

OS版本如下。

$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core) 

和Initscript版本是

$ rpm -qa | grep initscripts
initscripts-9.49.46-1.el7.x86_64

有人可以让我知道如何解决这个问题吗?

谢谢shuja

您肯定启用了多个存储库。

step1:检查您的存储库并在此处共享输出。

命令:

yum repolist

命令:

yum repolist --disablerepo=epel

命令将返回多个回购。

安装一个名为yum utilis

的实用程序

命令:

yum install -y yum-utils

命令:

yum install -y yum-utils --disablerepo=epel

然后从下面的命令中禁用存储库...命令:

yum-config-manager --disable reponame
yum-config-manager --disable reponame2

在一个示例中,我在盒子里禁用了这两个仓库

yum-config-manager --disable ol6_UEK_latest
yum-config-manager --disable ol6_latest

现在禁用了不需要的Epel6或OL6存储库后,您可能只会看到RHEL 7仓库。

尝试并确认。

最新更新