【问题标题】:Unable to reinstall the codedeploy-agent无法重新安装 codedeploy-agent
【发布时间】:2016-05-17 00:01:38
【问题描述】:

我已使用以下命令从区域中的一个 ec2 实例中删除了代码部署代理:us-west-2:

sudo dpkg -r codedeploy-agent

如文档http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-run-agent.html#how-to-verify-agent-version-ubuntu中所述

为了重新安装,我从 s3 bucket 复制了安装

sudo ./install auto 

我收到这条消息:

I, [2016-05-13T14:20:03.902026 #5227]  INFO -- : Starting Ruby version check.
I, [2016-05-13T14:20:03.902274 #5227]  INFO -- : The current Ruby version is not 2.0.x! Restarting the installer with /usr/bin/ruby2.0
I, [2016-05-13T14:20:04.043343 #5227]  INFO -- : Starting Ruby version check.
I, [2016-05-13T14:20:04.043548 #5227]  INFO -- : Starting update check.
I, [2016-05-13T14:20:04.043649 #5227]  INFO -- : Attempting to automatically detect supported package manager type for system...
I, [2016-05-13T14:20:04.048600 #5227]  INFO -- : Checking AWS_REGION environment variable for region information...
I, [2016-05-13T14:20:04.048712 #5227]  INFO -- : Checking EC2 metadata service for region information...
I, [2016-05-13T14:20:04.103736 #5227]  INFO -- : Running version 1.0-1.950
I, [2016-05-13T14:20:04.103871 #5227]  INFO -- : Downloading version file from bucket aws-codedeploy-us-west-2 and key latest/VERSION...
I, [2016-05-13T14:20:04.169833 #5227]  INFO -- : Running version matches target version, skipping install
I, [2016-05-13T14:20:04.170000 #5227]  INFO -- : Update check complete.
I, [2016-05-13T14:20:04.170094 #5227]  INFO -- : Stopping updater.

【问题讨论】:

    标签: amazon-web-services amazon-ec2 aws-code-deploy


    【解决方案1】:
    sudo dpkg -r codedeploy-agent
    

    这不会完全删除 codedeploy-agent

    我跑了

    sudo apt-get purge codedeploy-agent
    

    然后

    sudo ./install auto
    

    它对我有用

    【讨论】:

      【解决方案2】:

      sudo dpkg --purge 可以完成这项工作。

      【讨论】:

        猜你喜欢
        • 2018-05-19
        • 2021-01-20
        • 1970-01-01
        • 2023-02-02
        • 2016-07-14
        • 2015-01-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多