- 最新
- 投票最多
- 评论最多
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
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前