Tag Info

Hot answers tagged

84

Here's the (easiest) solution: Type the following commands in the Terminal: $ sudo -i # apt-get clean # cd /var/lib/apt # mv lists lists.old # mkdir -p lists/partial # apt-get clean # apt-get update Credits: ubuntugeek.com Edit: If the error occurs again (maybe after a few days/months), open Nautilus as root > navigate to var/lib/apt > delete the ...


56

I liked this solution, re-download the missing keys from the Ubuntu key server. http://naveenubuntu.blogspot.com/2011/08/fixing-gpg-keys-in-ubuntu.html In my case Reading package lists... Done W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ...


41

The important part of your error message is the following in bold: W: GPG error: http://download.virtualbox.org lucid Release: The following signatures were invalid: BADSIG 54422A4B98AB5139 Oracle Corporation (VirtualBox archive signing key) Copy the stuff in bold and then open a terminal and type: sudo apt-key adv --recv-keys --keyserver ...


40

Unix(-like) operative systems decouples the user name from its user identity, so you may safely change the first without changing the other. All permissions, files etc are tied to your identity (uid), not your username. To manage every aspect of the user database, you use the usermod tool. To change username: usermod -l *new username* *old username* This ...


39

PGP can refer to two things: The Pretty Good Privacy software originally written by Phil Zimmermann, and now owned by Symantec. The formats for keys, encrypted messages and message signatures defined by that software. These have now been formalised as the OpenPGP standard. The GPG software is an independent implementation of the OpenPGP standards, so ...


24

Run the following in your terminal, sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3C962022012520A0 sudo apt-get update References: How do I fix the GPG error "NO_PUBKEY" without terminal?


23

You need to get and import the key. To get the key from a PPA, visit the PPA's Launchpad page. On every PPA page at Launchpad you will find this link (2), after clicking on 'Technical details about this PPA' (1): Follow it and click on the key ID link (3): Save the page, this is your key file. Now it's time to import it: Applications > ...


22

First you need to find the key id of the key you added. Do this by the command: sudo apt-key list. It will list all the keys that you have, with each entry looking like this: pub 1024R/B455BEF0 2010-07-29 uid Launchpad clicompanion-nightlies Once you have figured out which key to remove, use the command sudo apt-key del <keyid> ...


16

Try deleting the key sudo apt-key del 16126D3A3E5C1192 then updating the repository sudo apt-get update You should get a NO_PUBKEY error instead of a BADSIG error and sudo apt-key finger should not find the key (called "Ubuntu Extras Archive Automatic Signing Key") Now add the key sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com ...


14

Run these commands in the terminal: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 This downloads the missing GPG keys (as mentioned in the original error message) from the Ubuntu GPG keyserver.


13

By far the simplest way to handle this now is with Y-PPA-Manager (which now integrates the launchpad-getkeys script with a graphical interface). To install it, first add the webupd8 repository for this program: sudo add-apt-repository ppa:webupd8team/y-ppa-manager Update your software list and install Y-PPA-Manager: sudo apt-get update sudo apt-get ...


13

In a terminal, run the following: gpg --export-secret-key -a > secretkey.asc And on the other system, import the secret key with: gpg --import secretkey.asc Alternatively, if you've got ssh access to the other system you should be able to combine these two actions into a single command: gpg --export-secret-key -a | ssh othermachine gpg --import - ...


11

Command line way: Run: gpg --keyserver hkp://keyserver.ubuntu.com --search-key 'your@mail.com' Graphical way: Run seahorse (Passwords and Encryption Keys), hit the Find Remote Keys... button, enter your key ID in the search field, and finally only select the Ubuntu keyserver:


11

It happens because you don't have a suitable public key for a repository. To solve this problem use this command: gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 9BDB3D89CE49EC21 Which retrieves the key from ubuntu key server and then this: gpg --export --armor 9BDB3D89CE49EC21 | sudo apt-key add - Which adds the key to apt trusted keys. This ...


11

Your issue is described on this following bug report, It seems that the proper fix is described at commment #11: Set the variable https_proxy to your proxy Edit /etc/sudoers or the correct file in /etc/sudoers.d/ so it contains: Defaults env_keep = https_proxy


11

“PGP” stands for “Pretty Good Privacy.” It was developed by Phil Zimmermann. At first it was written as copyrighted freeware under the Gnu Public License. Later, PGP was upgraded and made into a propriety program. The rights for this program are traded around. The reason for this upgrade was legal defense costs and royalty issues related to the export laws ...


10

Option 1 From here: sudo apt-get install --reinstall ubuntu-extras-keyring Option 2 See here. Summary: Open the terminal and run the following commands: gpg –keyserver keyserver.ubuntu.com –recv 3E5C1192 gpg –export –armor 3E5C1192 | sudo apt-key add - sudo apt-get update


10

Pass the --allow-unauthenticated option to apt-get as in: sudo apt-get --allow-unauthenticated upgrade From tha manual page of apt-get: --allow-unauthenticated Ignore if packages can't be authenticated and don't prompt about it. This is useful for tools like pbuilder. Configuration Item: APT::Get::AllowUnauthenticated. You can make this ...


9

Restart in recovery mode and go to the root prompt shell ("Drop to root shell prompt") First remount the root mount -o remount,rw / To change the username and home folder name, usermod -l <newname> -d /home/<newname> -m <oldname> For group name, groupmod -n <newgroup> <oldgroup>


9

To put it all together: At the start screen press Ctrl+ALT+F1. Log in using your username and password. Set a password for the "root" account. sudo passwd root Log out. exit Log in using the "root" account and the password you have previously set. Change the username and the home folder to the new name that you want. usermod -l <newname> -d ...


8

If you have your whole old home directory backed up, all you need to do is copy the old ~/.gnupg/ folder to your new home. Though it should be noted that this isn't really the best way to back up and restore a key. It has the draw back of over-writing the gpg keyrings on the target system. If you've imported public keys or created new keys, this isn't the ...


8

first enter the following command in the terminal sudo rm /var/lib/apt/lists/* -vf then update your system by entering the following command in the terminal sudo apt-get update && sudo apt-get upgrade after this there should be no errors and everything should work fine.


8

@andrewsomething No. The questioner you mentioned[sic], have[sic] the key available on one machine. but I've lost my key. (The computer exploded) Sorry, but you cannot get your key back. This is by design. The RSA (and DSA/ElGamal) algorithms are engineered so that the keys must be made at the same time. There are intermediate variables that are not ...


7

For Ubuntu 12.04 Precise: Permanent solution to this error message occuring after adding a new repository and updating repository list. This is due to a server which address is no more valid. So just change the address to a good one. Open the file ~/.gnupg/gpg.conf with a text editor. In terminal: gedit ~/.gnupg/gpg.conf then, in this file, find the ...


7

No, it is highly unprobable that you'd be able to generate the same key again. However, you can easily import/export keys following the steps below: Importing the keyring (all the keys) Just copy the ~/.gnupg directory from the source machine to the destination machine. Importing only a particular key Suppose the name of the key is ABCDFE01. Export the ...


7

What is GPG? GPG, or GNU Privacy Guard, is a suite of cryptographic software. It can be used to encrypt or sign data and communications to ensure its authenticity. This type of cryptography is based on key pairs. A public key is hosted on a key server (e.g. keyserver.ubuntu.com) and the private key is kept secret. Using the public key, one can verify the ...


7

it's easy you have to download the PPA GPG key : sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 005E0276 and then : sudo aptitude update or sudo apt-get update again. How do I fix the GPG error "NO_PUBKEY" without terminal?


7

The method to backup your sources list has already been described by garbagecollector (also note the additional directory as explained by Javier Rivera). To backup the trusted keys added to your system you can use the apt-key command line program. I don't know if there is a way to do this from the GUI. From a terminal you can run something like this: ...


6

There is a tiny script packaged in the WebUpd8 PPA which I'll link as a single .deb download so you don't have to add the whole PPA - which automatically imports all missing GPG keys. Download and install Launchpad-getkeys (ignore the ~natty in its version, it works with all Ubuntu versions from Karmic all the way to Oneiric). Once installed, open a ...


6

This was a doozy. The problem was that I had recently switched Virtualbox to NAT the Ubuntu VMs rather than bridge them. I ran several tests and found that if NAT was enabled, encoding problems developed on the incoming files. Once I returned the main interface to bridge mode the error changed to the standard BADSIG one which was fixed by grabbing the key ...



Only top voted, non community-wiki answers of a minimum length are eligible