codebuilds icon indicating copy to clipboard operation
codebuilds copied to clipboard

GPG key doesn't download due to lack of curl following redirects

Open diablodale opened this issue 6 years ago • 1 comments

Download of GPG key in apt.sh for the APT install will fail given the current packagecloud.io infrastructure. This is due to the url https://packagecloud.io/headmelted/codebuilds/gpgkey issuing a redirect to the eventual location and unfortunately apt.sh does not use curl in a manner that will follow redirects.

The fix is to change line 28 of the script from:

curl $gpg_key | gpg --dearmor > /etc/apt/trusted.gpg.d/${REPO_VENDOR}_vscode.gpg;

to

curl -L $gpg_key | gpg --dearmor > /etc/apt/trusted.gpg.d/${REPO_VENDOR}_vscode.gpg;

This could be related to the multiple GPG problems like in issue #61

diablodale avatar Nov 14 '18 14:11 diablodale

This issue can now be closed as it's been resolved in 38e4efe.

ZimbiX avatar Dec 14 '19 12:12 ZimbiX