How to Update the GPG Key on Debian/Ubuntu

You are here:
Estimated reading time: 1 min

If your BitNinja installation or update/upgrade fails due to a GPG signature error, it’s likely related to a missing or outdated GPG key used to verify the repository. Follow the steps below to update the key and fix the issue.

πŸ›  Step 1: Update the BitNinja GPG Key

Run the following command in your terminal to fetch and install the updated key using the trusted keyring method:

curl -sSL http://apt.bitninja.io/7F8B47DC.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/bitninja.gpg > /dev/null

This command downloads the key, converts it to the proper format, and stores it securely in the APT trusted keyring directory.

πŸ”„ Step 2: Refresh Package List

Once the key is updated, refresh your APT package list:

sudo apt-get update

You should no longer see GPG-related errors.

πŸ” Alternative Method (Legacy Systems)

If the command above does not work (for example, on older Debian/Ubuntu versions), you can try this fallback method:

wget -O- http://apt.bitninja.io/7F8B47DC.gpg | sudo apt-key add -

⚠️ Note: This method is deprecated and less secure. Use the trusted keyring method above whenever possible.

The latest available version for the following Linux versions is 2.39.1. No further updates will be available. BitNinja will still work on them with the above-mentioned version.
RedHat 6
CentOS 6.x
CloudLinux 6.x
Debian 6-7
Ubuntu 14-15

❓ Need Help?

If you experience issues with this process, please don’t hesitate to contact our support team:

πŸ“§ Email: info@bitninja.io

We’re happy to help you get things running smoothly.

Was this article helpful?
It was not helpful
Views: 21