Skip to content

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

@diablodale

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

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