Skip to content

Instantly share code, notes, and snippets.

@suntong
Last active September 24, 2022 19:39
Show Gist options
  • Save suntong/5951d4149d275906719e4e3fd7049b11 to your computer and use it in GitHub Desktop.
Save suntong/5951d4149d275906719e4e3fd7049b11 to your computer and use it in GitHub Desktop.
# add my cloudsmith ppa
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
#curl -1sLf 'https://dl.cloudsmith.io/public/suntong/repo/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/cloudsmith.suntong.keyring.gpg
#ls -l /usr/share/keyrings/cloudsmith.suntong.keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/suntong/repo/setup.deb.sh' \
| sudo -E bash || true
sudo chmod o+r /etc/apt/sources.list.d/* /usr/share/keyrings/*
sudo apt -y update

Installing my cloudsmith ppa repo should be as simple as

curl -1sLf \
  'https://dl.cloudsmith.io/public/suntong/repo/setup.deb.sh' \
  | sudo -E bash

But for once, I've got the following error before:

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ...

Thus I came up with the above script, by following

Unable to install. Debian repository is not signed

However, after that, I found that commenting out line# 3,4 is still OK.

YMMV. If NOK, uncomment line# 3,4 and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment