Skip to content

Wiki: Problem using cloudsmith setup.deb.sh #49

@suntong

Description

@suntong

After using cloudsmith's setup.deb.sh, I found that there are still several extra steps need to be fixed before it can actually be used:

Here is the log:

$ curl -1sLf \
>   'https://dl.cloudsmith.io/public/suntong/repo/setup.deb.sh' \
>   | sudo -E bash
Executing the  setup script for the 'suntong/repo' repository ...

   OK: Checking for required executable 'curl' ...
   OK: Checking for required executable 'apt-get' ...
   OK: Detecting your OS distribution and release using system methods ...
 ^^^^: ... Detected/provided for your OS/distribution, version and architecture:
 >>>>:
 >>>>: ... distro=debian  version=11  codename=bullseye  arch=x86_64
 >>>>:
   OK: Checking for apt dependency 'apt-transport-https' ...
   OK: Checking for apt dependency 'ca-certificates' ...
   OK: Checking for apt dependency 'gnupg' ...
  RUN: Importing 'suntong/repo' repository GPG key ...gpg: WARNING: unsafe ownership on homedir '/home/tong/.gnupg'
   OK: Checking for apt signed-by key support ...
   OK: Importing 'suntong/repo' repository GPG key ...
   OK: Checking if upstream install config is OK ...
   OK: Installing 'suntong/repo' repository via apt ...
   OK: Updating apt repository metadata cache ...
   OK: The repository has been installed successfully - You're ready to rock!

However, the new repo cannot be used out of the box:

$ apt-cache policy easygen
easygen:
  Installed: (none)
  Candidate: 4.1.0-1+b6
  Version table:
     4.1.0-1+b6 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
W: Unable to read /etc/apt/sources.list.d/suntong-repo.list - open (13: Permission denied)

If you get it as well, here are the steps to fix:

sudo chmod 644 /etc/apt/sources.list.d/suntong-repo.list
sudo chmod 644 /usr/share/keyrings/suntong-repo-archive-keyring.gpg

The 2nd step is necessary as otherwise, you'll get:

$ sudo apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
Hit:3 . . .

Get:7 https://dl.cloudsmith.io/public/suntong/repo/deb/debian bullseye InRelease [5,137 B]
Err:7 https://dl.cloudsmith.io/public/suntong/repo/deb/debian bullseye InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A57FC0ACD78A1A5E
Reading package lists... Done
W: GPG error: https://dl.cloudsmith.io/public/suntong/repo/deb/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A57FC0ACD78A1A5E
E: The repository 'https://dl.cloudsmith.io/public/suntong/repo/deb/debian bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions