Tag Info

Hot answers tagged

93

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 ...


71

Execute the following commands in terminal sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8BAF9A6F and then update sudo apt-get update


68

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 ...


52

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 (it is probably best to do this without being ...


48

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 ...


45

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 ...


29

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?


25

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 > ...


25

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> ...


25

The installer contains the wrong repository url. To fix this you need: Start the installer and try to install, you got error, close installer. Open console and type: sudo gedit /etc/apt/sources.list.d/intellinuxgraphics.list Replace text with text below, don't close gedit just leave it: deb https://download.01.org/gfx/ubuntu/14.04/main/ trusty main ...


23

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 ...


21

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.


18

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 - ...


17

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 ...


17

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

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 ...


14

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>


12

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:


12

“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 ...


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

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 ...


11

Try this one : sudo apt-get clean cd /var/lib/apt sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get clean sudo apt-get update


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


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

@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 ...


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

Lauch dconf-editor. Navigate to desktop - gnome - crypto - cache. change gpg-cache-method to idle or timeout. change gpg-cache-ttl to the number of seconds you want the passphrase to be cached. idle means that the timer is reset each time you use the key before timeout is reached. timeout means that simply the time elapsed since entering the passphrase is ...


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 ...



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