Software⏱️ 4 min read📅 2026-06-19

How to Fix: apt-get update throws error for key in 1 instance but not in second one, both identical

Failed to update package list due to missing GPG key. Solution involves updating the key.

Quick Answer: Update the GPG key by running `gpg --import` on the missing key, then try `sudo apt-get update` again.

The error 'Err:6 https://repos.influxdata.com/ubuntu jammy InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E' occurs when the GPG key used for signing the repository's package list is not available or not properly configured. This error affects users trying to install packages from the InfluxData repository, specifically those using Ubuntu Jammy.

This error can be frustrating because it prevents the user from updating their package list and installing required packages. However, by following the correct steps to add the GPG key and update the package list, this issue can be resolved.

🛑 Root Causes of the Error

  • The primary reason for this error is that the GPG key used for signing the repository's package list is not properly configured or not available on the system. This can happen due to various reasons such as the key being stored in a legacy trusted.gpg keyring, which is deprecated, or the key being missing altogether.
  • An alternative reason for this error could be that the GPG key is not being added to the correct location, causing it to be ignored by the system.

🛠️ Step-by-Step Verified Fixes

Adding the GPG Key Manually

  1. Step 1: First, download the necessary GPG key using the command 'wget -q https://repos.influxdata.com/influxdata-archive_compat.key'. This will download the key to the current directory.
  2. Step 2: Next, verify the integrity of the downloaded key using the command 'gpg --with-fingerprint --show-keys ./influxdata-archive_compat.key'. This ensures that the key has not been tampered with during transmission.
  3. Step 3: After verifying the integrity of the key, extract it from the downloaded file using the command 'echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key'. This will extract the key to a new file.
  4. Step 4: Then, use the command 'gpg --dearmor' to convert the extracted key into a format that can be used by the system. The output will be redirected to '/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg'.
  5. Step 5: Finally, update the package list using the command 'sudo apt-get update'. This should resolve the error and allow the user to install packages from the InfluxData repository.

Using the Official Documentation Method

  1. Step 1: First, navigate to the official InfluxData documentation website and follow the instructions for adding the GPG key. This may involve downloading a script or using an online tool to generate the necessary commands.
  2. Step 2: Next, run the generated commands in the terminal to add the GPG key to the system. These commands should include updating the package list and installing any required packages.
  3. Step 3: Finally, verify that the error has been resolved by running 'sudo apt-get update' again. If the error persists, refer to the official documentation for further assistance.

🎯 Final Words

To resolve the error 'Err:6 https://repos.influxdata.com/ubuntu jammy InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E', follow one of the provided methods. If you are using a script or online tool from the official documentation, ensure that you have run all the necessary commands as instructed. Once the GPG key has been added and the package list updated, you should be able to install packages from the InfluxData repository without any issues.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions