aws-codedeploy-agent: CodeDeploy Agent install fails on Ubuntu 20.10 (and likely others)

In the deb package, DEBIAN/conffiles contains the line:

etc/codedeploy-agent/conf/codedeployagent.yml

Note that this is a relative path.

It seems that new versions of dpkg require absolute paths for specified conf files:

https://www.mail-archive.com/debian-dpkg-cvs@lists.debian.org/msg07446.html

Error I received:

Preparing to unpack .../codedeploy-agent_1.3.1-1880_all.deb ...
dpkg: error processing archive ./codedeploy-agent_1.3.1-1880_all.deb (--install):
conffile name 'etc/codedeploy-agent/conf/codedeployagent.yml' is not an absolute pathname

Workaround:

Extract the package, add a leading forward slash in DEBIAN/conffiles, repackage, and manually install.

wget https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/releases/codedeploy-agent_1.3.1-1880_all.deb
mkdir extracted
dpkg-deb -R codedeploy-agent_1.3.1-1880_all.deb ./extracted
<edit DEBIAN/conffiles to add the forward slash>
dpkg-deb -b extracted fixed.deb
sudo /usr/bin/gdebi -n -o Dpkg::Options::=--force-confdef -o Dkpg::Options::=--force-confold ./fixed.deb

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

I’m also facing the same issue installing CodeDeploy Agent on arm64 ec2 instances.

failed to find platform: no manifest found for platform: ubuntu, version 22.04, architecture arm64
failed to find platform: no manifest found for platform: ubuntu, version 22.04, architecture arm64
failed to find platform: no manifest found for platform: ubuntu, version 22.04, architecture arm64
failed to find platform: no manifest found for platform: ubuntu, version 22.04, architecture arm64

yikes, this isn’t good. Adding to this week’s grooming. Targeting next release of the agent.

Attempting to install Code Deploy agent 1.3.2 using SSM and still getting the error. failed to find platform: no manifest found for platform: ubuntu, version 20.04, architecture arm64

Appears that this was not fixed in the 1.3.2 release.

Screen Shot 2021-05-12 at 11 12 08 PM

Btw, this documentation is brutallllllllllll. After a few hours i got here when I finally sudo tail -fn500 /var/log/amazon/ssm/amazon-ssm-agent.log

For the lazy and tired

sudo apt install gdebi -y
wget https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/releases/codedeploy-agent_1.3.1-1880_all.deb
mkdir extracted
dpkg-deb -R codedeploy-agent_1.3.1-1880_all.deb ./extracted
echo "/etc/codedeploy-agent/conf/codedeployagent.yml" > extracted/DEBIAN/conffiles
dpkg-deb -b extracted fixed.deb
sudo /usr/bin/gdebi -n -o Dpkg::Options::=--force-confdef -o Dkpg::Options::=--force-confold ./fixed.deb