How do I install packages with machine builds?

My .circleci/config.yml has this step in it:

    - run:
        name: Install deps
        command: sudo apt install -y postgresql mysql-server leiningen

However, that always fails with:

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

What am I doing wrong?

1 Like

Ah, I bet that this the same as this:

I just gave up on this. It seems like Circle wasn’t really planning on supporting machine builds. It took me a few days but I converted everything to Docker images and that instead now.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.