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:
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.
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
--
Hi,
thanks – that was it…
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/CAPaX09jve1kiac-B9wCJ1hS0KzrUADcJtJXNXNyA3ySeT35nVw%40mail.gmail.com.