This error is so frustrating. Doing an
apt-get install on a circleci/classic:201808-01 machine build leads to the following error several times per day:
#!/bin/bash -eo pipefail sudo killall -9 apt-get || true && sudo apt-get install -y git python3 curl python-pip jq pip install awscli --upgrade --user E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? Exited with code 100
sudo killall -9 apt-get was a work around suggested in another thread, but does not work. The other suggestion I’ve seen is to downgrade to an earlier circleci/class machine version, but I can’t do that as I need
circleci/classic:201808-01 for docker-compose 3.4 configs.
Does anyone have a solution to this that is not just adding a random sleep to the build?