【问题标题】:Update Artifcatory on AWS AMI: sudo yum update failing with systemctl: command not found在 AWS AMI 上更新 Artifcatory:sudo yum 更新失败,systemctl:找不到命令
【发布时间】:2017-12-19 00:15:38
【问题描述】:

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

命令 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!

Amazon 的 AWS AMI 不附带 systemctl。

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

【问题讨论】:

    标签: amazon-web-services artifactory amazon-ami systemctl


    【解决方案1】:

    AWS AMI 基于 centos 6ish 版本。它使用旧库。 centos7 版本支持 systemd 命令。我也遇到了类似的情况,想用 centos7 AMI 而不是 Amazon AMI

    【讨论】:

      猜你喜欢
      • 2021-01-19
      • 2014-03-01
      • 1970-01-01
      • 2013-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-11
      • 2018-09-21
      相关资源
      最近更新 更多