更新AWS AMI上的Artifcatory:sudo yum update失败,找不到systemctl:command

时间:2017-07-14 02:41:09

标签: amazon-web-services artifactory ami systemctl

我正在尝试更新在AWS AMI上运行的jfrog artifactory。

命令sudo yum update失败并带有

Downloading packages:
jfrog-artifactory-oss-5.4.4.rpm                                                            32% [=========================-                                                      ]  0.0 B/s |  24 MB  --:--:-- ETA jfrog-artifactory-oss-5.4.4.rpm                                                            67% [======================================================                          ]  33 MB/s |  50 MB  00:00:00 ETA jfrog-artifactory-oss-5.4.4.rpm                                                                                                                                                            |  73 MB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
/var/tmp/rpm-tmp.xncfmC: line 24: systemctl: command not found
Stopping the artifactory service...
/var/tmp/rpm-tmp.xncfmC: line 27: systemctl: command not found
error: %pre(jfrog-artifactory-oss-5.4.4-50404900.noarch) scriptlet failed, exit status 127
Error in PREIN scriptlet in rpm package jfrog-artifactory-oss-5.4.4-50404900.noarch
  Verifying  : jfrog-artifactory-oss-5.4.4-50404900.noarch                                                                                                                                                    1/2 
jfrog-artifactory-oss-4.15.0-40350.noarch was supposed to be removed but is not!
  Verifying  : jfrog-artifactory-oss-4.15.0-40350.noarch                                                                                                                                                      2/2 

Failed:
  jfrog-artifactory-oss.noarch 0:4.15.0-40350                                                            jfrog-artifactory-oss.noarch 0:5.4.4-50404900

Complete!

亚马逊的AWS AMI没有附带systemctl。

有人知道如何解决这个问题或如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

AWS AMI基于centos 6ish版本。它使用旧库。 centos7版本支持systemd命令。我陷入了类似的境地,并且想要获得centos7 AMI而不是Amazon AMI