2016-05-13 62 views
0

我已經在區域除去代碼部署代理從EC2實例之一:使用命令US-西-2:無法重新安裝codedeploy劑

sudo dpkg -r codedeploy-agent 

如在doc提到http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-run-agent.html#how-to-verify-agent-version-ubuntu

要重新安裝我複製從S3桶安裝ADN當我做

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. 

回答

0
sudo dpkg -r codedeploy-agent 

這個簡化版,去掉codedeploy劑完全

我跑

sudo apt-get purge codedeploy-agent 

然後

sudo ./install auto 

和它的工作對我來說