Closed jjuannn closed 6 months ago
You have to use dnf command instead of apt-get, since apt-get is a package management command for Ubuntu not for Amazon Linux.
And jq is already installed in this image, therefore I don't think that you need not to install jq command.
As mentioned by @bateleurX, you can use dnf or yum.
There was no difference between using Amazon Linux or Ubuntu for my use case, so I switched to an Ubuntu image and it's working now. Thanks guys.
I'm using the
aws/codebuild/amazonlinux2-x86_64-standard:5.0
image to run a CodeBuild build. My build spec is the next one:When the build runs, it fails in the
apt-get update
line with the following error:I also tried the workaround proposed here https://github.com/aws/aws-codebuild-docker-images/issues/594 but it's not working for me, besides it's something that has been already fixed.
Any hint of how can I make it work? Thanks