The “NO_PUBKEY” GPG error happens when a person provides a software program repository or PPA to Ubuntu with out including the GPG signing key. Since Ubuntu’s software program back-end takes safety severely, the system won’t enable the person to set up something from the repository with out this key, and so this error seems. Fortunately, it’s simple to fix.

Have dependency errors on Ubuntu? Right here’s how one can fix them.

Fix “NO_PUBKEY” GPG error – GUI

On Ubuntu Linux, it’s doable to fix the “NO_PUBKEY” subject with the GUI. To begin the course of, press the Win key on the keyboard. Urgent this button will convey up the search field in Gnome on Ubuntu. From there, begin typing “Software & Updates” in the search field. Then, click on on the icon with that identify. Or, if you happen to can’t discover it, choose the icon with the brown field/globe.

As soon as the “Software & Updates” app window is open on the display, look by the totally different tabs in the app, and click on on “Authentication.” Clicking on the “Authentication” tab will take you to the “Trusted software providers” space.

Hold the “Software & Updates” space open, and open up a brand new browser tab. Then, head over to the web page the place you bought the software program PPA from. On this web page, search for the GPG signing key and put it aside to your laptop.

As soon as on the Launchpad web page, click on “technical details” to reveal the signing key, click on on the key hyperlink to go to the subsequent web page.

9k=

On the subsequent web page, click on on the hyperlink subsequent to “pub,” to reveal the key in the browser.

Press  Ctrl + S on the keyboard to save the file as key.

After saving the key to your Ubuntu Linux PC, return to the “Software & Updates” app, in the “Authentication” part. Then, in the “Authentication” part, search for the “Import Key File” button.

Click on the “Import Key File” button with the mouse to convey up a file browser window. Then, look by the file browser window to add the key file to Ubuntu.

When the key file is added to Ubuntu, you’ll have the opportunity to set up software program from this software program repository. Nonetheless, earlier than you try to set up software program from this repository, you want to refresh Ubuntu’s software program sources.

To refresh Ubuntu’s software program sources, click on the “close” button. If you do, a message will seem that claims, “The information about available software is out of date.” Click on the “Reload” button to refresh. As soon as refreshed, the error “NO_PUBKEY” will go away.

Fix “NO_PUBKEY” GPG error – command-line

The “NO_PUBKEY” GPG error might be mounted in the terminal, together with being mounted in the GUI. Some would argue that fixing this error in Ubuntu by the terminal is quicker.

Open up a terminal window on your Ubuntu Linux PC by urgent Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, as soon as the terminal window is open, use the replace command to Ubuntu’s software program sources, as we’d like to reproduce the error.

Upon operating the replace command, you will note a message that states, “The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY.”

Following the “NO_PUBKEY” message, you will note a quantity. Spotlight this quantity with the mouse and duplicate it to your clipboard. This quantity is necessary, as it may be used with a restoration command to robotically import the lacking GPG key to your Ubuntu Linux system.

With the quantity saved to your clipboard, kind out the following command in the terminal window. Be certain to exchange the “COPIED-NUMBER-HERE” portion of the command with the quantity copied to the clipboard on your Linux PC.

Observe: To make use of the paste characteristic in the Linux terminal, press Ctrl + Shift + V on the keyboard.

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys COPIED-NUMBER-HERE

Let the apt-key command run, and it’ll obtain the lacking GPG key straight from the web. When the command finishes, you’ll see a message that claims “public key “REPO NAME Singing Key imported”.

After efficiently importing the lacking GPG key into Ubuntu, the “NO_PUBKEY” error is taken care of. Nonetheless, the fix is just not full, as Ubuntu’s software program sources have to be refreshed to replicate the modifications made by importing the key.

To replace Ubuntu’s software program sources, you have to use the replace command.

sudo apt replace

When the replace command finishes operating, every little thing ought to be in working order!

Stop “NO_PUBKEY” errors on Ubuntu

The “NO_PUBKEY” error is simple to keep away from. To make sure that you don’t run into this downside on your Ubuntu Linux PC once more, do the following.

  • Don’t set up any third-party software program repository that doesn’t present a public key file.
  • Solely add PPAs to Ubuntu by the terminal. By including PPAs by the terminal, the key file is robotically added to the system, avoiding the “NO_PUBKEY” subject.
  • By no means edit the software program sources file to add in a third-party software program repository to Ubuntu.



Source link

Share.
Leave A Reply

Exit mobile version