-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sudo apt update not possible, likely related to wrong key of Influxdb #722
Comments
I have several comments which may or may not help. First, problems with GnuPG keys often turn out to be transient. I have a small script which I use to confirm whether key IDs are available or not. The script is named
The script takes one or more KEYIDs as arguments. It attempts to fetch each key using its ID. If it is successful, it also exports the ASCII armored form of the key into the working directory. It finishes off listing whatever has turned up in the temporary keychain and then cleans up. All the work is done in a temporary directory so it won't interfere with any existing keychains. Here's the script running on my Raspberry Pi 4 (64-bit Bullseye) fetching the KEYID from your error message:
Conclusion: the key definitely exists. It doesn't expire until January 2026 so it's still valid. Second point. I don't understand why
In words:
Is my machine running InfluxDB? You betcha:
Now let's repeat the keys check but, this time, inside the InfluxDB container:
Although the container doesn't have a separate sources list mentioning Influx, it's plain that Yet, just like the Pi that is hosting the InfluxDB container, the container knows nothing about any Influx GnuPG keys. What I think might be going on on your system is that, at some point in the past, you installed InfluxDB "natively". You probably also have it running as a container (else you wouldn't be asking this question on the IOTstack repo). I'm no expert on
Last point. It looks like you're running Buster. The current Raspberry Pi OS is based on Bullseye. Debian Bookworm is all the rage and, at some point, the Raspberry Pi Foundation is going to upgrade to that as its base. It might be time to start thinking about a rebuild with Bullseye. I've emphasised rebuild (as opposed to some form of migration) because, if this were my machine and my guess about an unnecessary native install of InfluxDB had just proven correct, I'd be wondering how many other gremlins were hiding in the cracks. A rebuild gives you a nice clean slate. Hope this helps. |
Hello there,
on my raspberry pi 4 the command
sudo apt update
is not successful any more (see response below).I guess it is related to the change of the key for Influxdb (https://www.influxdata.com/blog/linux-package-signing-key-rotation/). I am running Influxdb via Docker Container.
Any idea how I can update the key?
The way that is described on influx-site is not working (no failure message, but 'sudo apt update' still not successful)
English code below
pi@raspberrypi:~ $ sudo apt update
OK:1 http://archive.raspberrypi.org/debian buster InRelease
OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
OK:3 https://download.docker.com/linux/raspbian buster InRelease
Holen:4 https://repos.influxdata.com/debian stable InRelease [6.892 B]
Holen:5 https://repos.influxdata.com/debian buster InRelease [7.038 B]
Fehl:3 https://download.docker.com/linux/raspbian buster InRelease
Splitting up /var/lib/apt/lists/download.docker.com_linux_raspbian_dists_buster_InRelease into data and signature failed
Fehl:4 https://repos.influxdata.com/debian stable InRelease
Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY D8FF8E1F7DF8B07E
Fehl:5 https://repos.influxdata.com/debian buster InRelease
Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY D8FF8E1F7DF8B07E
Fehler beim Verbinden: Verbindung ist gescheitert: Verbindungsaufbau abgelehnt
Paketlisten werden gelesen... Fehler!
automatically translated:
pi@raspberrypi:~ $ sudo apt update
OK:1 http://archive.raspberrypi.org/debian buster InRelease
OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
OK:3 https://download.docker.com/linux/raspbian buster InRelease
Get:4 https://repos.influxdata.com/debian stable InRelease [6.892 B]
Get:5 https://repos.influxdata.com/debian buster InRelease [7.038 B]
Miss:3 https://download.docker.com/linux/raspbian buster InRelease
Splitting up /var/lib/apt/lists/download.docker.com_linux_raspbian_dists_buster_InRelease into data and signature failed
Error:4 https://repos.influxdata.com/debian stable InRelease
The following signatures could not be verified because their public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
Miss:5 https://repos.influxdata.com/debian buster InRelease
The following signatures could not be verified because their public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
Error connecting: Connection failed: connection establishment rejected
Packet lists are being read... Error!
The text was updated successfully, but these errors were encountered: