安装RPM时出现包冲突错误

时间:2017-03-08 11:54:34

标签: java linux rpm nebula

我在安装netflix nebula创建的rpm时遇到以下错误:

yum localinstall demo-daemon-0:0.0.1-1.noarch

交易检查错误:

file /etc/rc.d from install of demo-daemon-0:0.0.1-1.noarch conflicts with file from package chkconfig-1.7.2-1.el7.x86_64
file /etc/rc.d/init.d from install of demo-daemon-0:0.0.1-1.noarch conflicts with file from package chkconfig-1.7.2-1.el7.x86_64
file /etc/rc.d from install of demo-daemon-0:0.0.1-1.noarch conflicts with file from package initscripts-9.49.37-1.el7.x86_64
file /etc/rc.d/init.d from install of demo-daemon-0:0.0.1-1.noarch conflicts with file from package initscripts-9.49.37-1.el7.x86_64

操作系统详细信息:

Operating System: CentOS Linux 7 (Core)
     CPE OS Name: cpe:/o:centos:centos:7
          Kernel: Linux 3.10.0-229.14.1.el7.x86_64
    Architecture: x86-64

1 个答案:

答案 0 :(得分:1)

您不拥有/etc/rc.d//etc/rc.d/init.d/等。将它们从规范文件中的%files列表中删除,仅列出您实际提供的文件。