Skip to content

[DOCS] Update Salt Install Guide to include instructions to check permissions on keyrings #27

Closed

Description

@HomerThreepwood

Description

# lsb_release -a
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye
# sudo curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023.gpg https://repo.saltproject.io/salt/py3/debian/11/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg
echo "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://repo.saltproject.io/salt/py3/debian/11/amd64/latest bullseye main" | sudo tee /etc/apt/sources.list.d/salt.list
deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://repo.saltproject.io/salt/py3/debian/11/amd64/latest bullseye main
# aptitude update
Get: 1 https://repo.saltproject.io/salt/py3/debian/11/amd64/latest bullseye InRelease [1,585 B]
Err https://repo.saltproject.io/salt/py3/debian/11/amd64/latest bullseye InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 64CBBC8173D76B3F
(...)
W: GPG error: https://repo.saltproject.io/salt/py3/debian/11/amd64/latest bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 64CBBC8173D76B3F
E: The repository 'https://repo.saltproject.io/salt/py3/debian/11/amd64/latest bullseye InRelease' is not signed.
E: Failed to download some files
W: Failed to fetch https://repo.saltproject.io/salt/py3/debian/11/amd64/latest/dists/bullseye/InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 64CBBC8173D76B3F
E: Some index files failed to download. They have been ignored, or old ones used instead

Is there a step I am missing?

Type of documentation
Salt Install Guide

Location or format of documentation
https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/debian.html

Activity

  1. added
    documentation
    on Jun 22, 2023
  2. welcome commented on Jun 22, 2023

    @welcome

    Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
    Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

    There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
    If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

  3. HStry commented on Jun 26, 2023

    @HStry

    @HomerThreepwood
    I don't know why, but it didn't work before, and I got the same message as you had. Did some things through gpg, and now it seems to work. I'm using Debian 12 for this container, and using the new apt sources config format:

    root@4a4070412c4d:/etc/apt# cat sources.list.d/salt.sources
    Types: deb
    URIs: https://repo.saltproject.io/salt/py3/debian/11/arm64/latest
    Suites: bullseye
    Components: main
    Signed-By: /etc/apt/keyrings/salt-archive-keyring-2023.gpg
    

    What I did:

    # gpg --keyserver hkps://keys-openpgp.org --receive-keys 64CBBC8173D76B3F
    # gpg --export --armor 64CBBC8173D76B3F > /etc/apt/keyrings/salt-archive-keyring-2023.pub
    # gpg --export 64CBBC8173D76B3F > /etc/apt/keyrings/salt-archive-keyring-2023.gpg
    

    The keys generated through this method were exactly the same as pulled from saltproject.io, so I guess somewhere in this method I must've fixed a typo I overlooked. I see - for my situation - no other reason why this would have worked. Everything seems the same.

  4. OrangeDog commented on Jun 26, 2023

    @OrangeDog

    Can you please add some details as to what the documentation problem is, including a title for the issue.

  5. barbaricyawps commented on Jun 26, 2023

    @barbaricyawps
    Contributor

    @HomerThreepwood , I agree with @OrangeDog : can you add some details around what the documentation problem is and what fix you'd like to see. It sounds like you were having some problems with your GPG keys on Debian.

    Did you follow the steps to add the Salt GPG key to your repository? Is there anything about those steps that needs some clarification? For example, did you see the note on the Debian 11 install instructions:

    The GPG key for the 3006.1 release is now named: SALT-PROJECT-GPG-PUBKEY-2023. You must import the new GPG key before upgrading or your upgrade will fail.

    Can you tell me if you were upgrading or running a fresh install?

  6. arnoldasb commented on Aug 1, 2023

    @arnoldasb

    For some reason we had 0750 permissions on /etc/apt/keyrings folder, it took us hours of searching for solutions.

    Following apt update error:

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

    So make sure you check permissions:

    chmod 755 /etc/apt/keyrings
    chmod 644 /etc/apt/keyrings/salt-archive-keyring-2023.gpg
    
  7. changed the title [-][DOCS][/-] [+][DOCS] Update Salt Install Guide to include instructions to check permissions on keyrings[/+] on Aug 7, 2023
  8. BlackMetalz commented on Sep 13, 2023

    @BlackMetalz

    For some reason we had 0750 permissions on /etc/apt/keyrings folder, it took us hours of searching for solutions.

    Following apt update error:

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

    So make sure you check permissions:

    chmod 755 /etc/apt/keyrings
    chmod 644 /etc/apt/keyrings/salt-archive-keyring-2023.gpg
    

    This is the solution. It may be affected by some policy for hardening

  9. petrows commented on Jun 3, 2025

    @petrows
    Contributor

    For everyone who spend a time trying to resolve this issue: documentation is wrong, it has missing gpg --dearmor call, if you will try to use steps from Saltstack installation guide, it will throw an error:

    Err:5 https://packages.broadcom.com/artifactory/saltproject-deb stable InRelease
      The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 64CBBC8173D76B3F
    Warning: https://packages.broadcom.com/artifactory/saltproject-deb/dists/stable/InRelease: The key(s) in the keyring /etc/apt/keyrings/salt-archive-keyring.pgp are ignored as the file has an unsupported filetype.
    Warning: OpenPGP signature verification failed: https://packages.broadcom.com/artifactory/saltproject-deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 64CBBC8173D76B3F
    Error: The repository 'https://packages.broadcom.com/artifactory/saltproject-deb stable InRelease' is not signed.
    

    Correct command to provide Signed-by file option is:

    curl -fsSL https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public | gpg --dearmor > /etc/apt/keyrings/salt-archive-keyring.pgp
    

    (Documentation has missing gpg --dearmor part)

  10. added a commit that references this issue on Jun 3, 2025
    4afe5f7
  11. added a commit that references this issue on Feb 5, 2026
    ab76094
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions