Skip to content

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

Open

Description

@diablodale

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

Activity

  1. ZimbiX commented on Dec 14, 2019

    @ZimbiX

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

  2. added a commit that references this issue on Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions