- Newest
- Most votes
- Most comments
After further studying of how apt-get update is crashing on the AWS provided container for Nodejs, I saw that a key is expired for yarn
I contacted the package maintainer and he responded with the following:
Try refreshing your GPG key:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
so for anyone using the Nodejs container image, please make that your first script before running apt-get update
I found this solution did not work. The use of 'sudo' in that context produced the error "sudo not found". Without the 'sudo' it worked.
My BuildProject is created via CloudFormation with the following Environment parameters:
"Environment": {
"ComputeType": "BUILD_GENERAL1_SMALL",
"Image": "aws/codebuild/standard:2.0",
"ImagePullCredentialsType": "CODEBUILD",
"Type": "LINUX_CONTAINER"
}
To use the solution posted here I needed to remove the 'sudo' and run the command like this:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
Coach Spoon
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago