2

安装由 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
4

1 回答 1

1

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

于 2017-03-08T21:38:12.557 回答