Add Repo with Keys

瀏覽次數:57 次
跳到第一則未讀訊息

di...@laurenz.ws

未讀,
2022年5月13日 下午2:21:382022/5/13
收件者:salt-...@googlegroups.com

Hi,

 

i’m trying to add an repo with 2 keys – but it fails with “not a key ID”…. Why? According to salt I can add multiple keys….

 

samba_dc_debian_backports:

  pkgrepo.managed:

    - humanname: debian-backports

    - name: deb http://deb.debian.org/debian bullseye-backports main

    - keyid: 0x04EE7237B7D453EC  0x648ACFD622F3D138

    - keyserver: keyserver.ubuntu.com

    - file: /etc/apt/sources.list.d/debian-packports.list

 

Here’s the output

----------

          ID: samba_dc_debian_backports

    Function: pkgrepo.managed

        Name: deb http://deb.debian.org/debian bullseye-backports main

      Result: False

     Comment: Failed to configure repo 'deb http://deb.debian.org/debian bullseye-backports main': Error: key retrieval failed: Executing: /tmp/apt-key-gpghome.vMOu10pyE2/gpg.1.sh --batch --keyserver keyserver.ubuntu.com --logger-fd 1 --recv-keys 0x04EE7237B7D453EC  0x648ACFD622F3D138

              gpg: "0x04EE7237B7D453EC  0x648ACFD622F3D138" not a key ID: skipping

     Started: 20:17:11.042187

    Duration: 1602.441 ms

     Changes:

----------

          ID: samba_packages

    Function: pkg.installed

      Result: False

     Comment: Problem encountered installing package(s). Additional info follows:

 

              errors:

                  - Running scope as unit: run-reb068422d7854c96b0f36510bc25b086.scope

                    E: The value 'debian-backports' is invalid for APT::Default-Release as such a release is not available in the sources

     Started: 20:17:12.645800

    Duration: 8941.394 ms

     Changes:

di...@laurenz.ws

未讀,
2022年5月13日 下午2:32:552022/5/13
收件者:salt-...@googlegroups.com

Removing 0x doesn’t help either

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/076901d866f6%2444816bb0%24cd844310%24%40laurenz.ws.

Phipps, Thomas

未讀,
2022年5月13日 下午3:36:072022/5/13
收件者:salt-...@googlegroups.com

It says in the description for keyid why it isn’t working with two in a single line like that.

keyid
  The KeyID or a list of KeyIDs of the GPG key to install.This option also requires the keyserver option to be set.

The main thing to pay attention to is that it is either A key id or a LIST of keyids.

samba_dc_debian_backports:  
  pkgrepo.managed:    
    - humanname: debian-backports    
    - name: deb http://deb.debian.org/debian
 bullseye-backports main
    - keyid: 
      - 0x04EE7237B7D453EC
      - 0x648ACFD622F3D138
    - keyserver: keyserver.ubuntu.com
    - file: /etc/apt/sources.list.d/debian-packports.list

--

di...@laurenz.ws

未讀,
2022年5月14日 凌晨3:08:492022/5/14
收件者:salt-...@googlegroups.com

Hi,

 

thanks – that was it…

 

回覆所有人
回覆作者
轉寄
0 則新訊息