Skip to content

CodeDeploy Agent install fails on Ubuntu 20.10 (and likely others) #277

Closed
@shabino

Description

@shabino

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions