"apt-get install" returns exit code 100

Running a CircleCI build that has worked for many months but now decides to fail (with no changes made to it).

The step is a docker build that fails on this line:
RUN apt-get install -y -qq --no-install-recommends libsdl2-dev

For some reason the above line causes circleci builds to fail running on a ‘ubuntu-2004:current’ machine. The output containing the error is:

#47 [builder 35/67] RUN apt-get install -y -qq --no-install-recommends   libsdl2-dev
#47 sha256:9218a44ad18a41c69176286b26d53ea4f361a45ed4e6c2d7cc1a8a21e7b8d447
#47 1.418 E: Unable to correct problems, you have held broken packages.
#47 ERROR: executor failed running [/bin/sh -c apt-get install -y -qq --no-install-recommends   libsdl2-dev]: exit code: 100
 > [builder 35/67] RUN apt-get install -y -qq --no-install-recommends   libsdl2-dev:
executor failed running [/bin/sh -c apt-get install -y -qq --no-install-recommends   libsdl2-dev]: exit code: 100
Command exited with non-zero status 1

It may be worth adding -V and removing the -qq to the command line as it may provide more detail about what is breaking.

Other things to try are

  • add apt update to your script as that will sync the local dependency data structures.

  • see what happens if you remove the ’ --no-install-recommends as that is restricting what the installer can add to allow the deployment to take place.

1 Like

Thank you - you were right, removing those helped uncover that there was a dependency issue (and is a bug in the current ubuntu 18.04 docker image) - and this was replicatable locally so not CircleCI related. Will close this now.

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