diff --git a/.github/workflows/integrationTest.yml b/.github/workflows/integrationTest.yml index 943742449c..3623fb14fb 100644 --- a/.github/workflows/integrationTest.yml +++ b/.github/workflows/integrationTest.yml @@ -221,7 +221,8 @@ jobs: matrix: arrays: [ { os: "ubuntu", username: "ubuntu", - installAgentCommand: "dpkg -i -E ./amazon-cloudwatch-agent.deb", + # ubuntu needs to have dpkg lock cleared before installing cw agent + installAgentCommand: "aptdcon --safe-upgrade && sudo dpkg -i -E ./amazon-cloudwatch-agent.deb", ami: "cloudwatch-agent-integration-test-ubuntu*", caCertPath: "/etc/ssl/certs/ca-certificates.crt", arc: "amd64", binaryName: "amazon-cloudwatch-agent.deb" }, { os: "al2", username: "ec2-user",