Ошибка gpg http ppa launchpad net lucid

При обновлении Ubuntu выскочила ошибка:

W: GPG error: http://ppa.launchpad.net lucid Release

Данная ошибка возникает при отсутствии GPG ключа, полный вывод ошибки выглядит примерно так:

W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY wsqwer42f43rd
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY wsqwer42f43rd
W: You may want to run apt-get update to correct these problems

Для автоматического поиска и импорта ключей можно использовать launchpad-getkeys из WebUpd8 PPA:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install launchpad-getkeys

чтобы импортировать отсутствующие ключи GPG для PPA, выполните команду:

sudo launchpad-getkeys

When I run the sudo apt-get update, it results in the following

 Reading package lists... Done
 W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A1715D88E1DF1F24
 W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 551CE2FB4CBEDD5A
 W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1E9377A2BA9EF27F

By googling I came to know the key is missing, and it can be obtained by running the following command with the corresponding hexadecimal numbers

 saikirangvr@ubuntu:~$ sudo gpg --keyserver subkeys.pgp.net --recv 551CE2FB4CBEDD5A

But I was not able to fix this as this gave me the error

gpg: WARNING: unsafe ownership on configuration file `/home/saikirangvr/.gnupg/gpg.conf'
gpg: external program calls are disabled due to unsafe options file permissions
gpg: keyserver communications error: general error
gpg: keyserver receive failed: general error

I tried many times but I was unable to fix. I was behind a proxy server in my college and I have configured the Ubuntu well to use behind the proxy.

After using

 sudo chown -R saikirangvr:saikirangvr /home/saikirangvr/.gnupg

the problem of unsafe ownership was gone, and it gave the following….

 sai@ubuntu:~/gpgpu-sim/ispass2009-benchmarks$ gpg --keyserver keyserver.ubuntu.com --recv 1E9377A2BA9EF27F 
 gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
 gpgkeys: key 1E9377A2BA9EF27F not found on keyserver
 gpg: no valid OpenPGP data found.
 gpg: Total number processed: 0
 sai@ubuntu:~/gpgpu-sim/ispass2009-benchmarks$ gpg --keyserver subkeys.pgp.net --recv 1E9377A2BA9EF27F
 gpg: requesting key BA9EF27F from hkp server subkeys.pgp.net
 gpgkeys: key 1E9377A2BA9EF27F not found on keyserver
 gpg: no valid OpenPGP data found.
 gpg: Total number processed: 0

the result of adding the ppa

sai@ubuntu:~$ sudo add-apt-repository ppa:nilarimogard/webupd8
[sudo] password for sai: 
Error reading https://launchpad.net/api/1.0/~nilarimogard/+archive/webupd8: Couldn't resolve host 'launchpad.net'

same error occurs when using launch pad get keys

 sai@ubuntu:~$ sudo launchpad-getkeys

 Please wait... launchpad-getkeys is running an update so 
 it can detect the missing GPG keys

 Trying to import all the missing keys
 gpg: requesting key 4C9D234C from hkp server keyserver.ubuntu.com
 gpgkeys: key 531EE72F4C9D234C not found on keyserver
 gpg: no valid OpenPGP data found.
 gpg: Total number processed: 0
 gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
 gpgkeys: key 1E9377A2BA9EF27F not found on keyserver
 gpg: no valid OpenPGP data found.
 gpg: Total number processed: 0

 launchpad-getkeys has finished importing all missing GPG keys. 
 Try running sudo apt-get update - you shouldn't see any key 
  errors anymore

What is the problem. *Is there any other method to solve this like through GUI *…….

When i run sudo apt-get update, i get the following error

W: GPG error:
http://ppa.launchpad.net lucid
Release: The following signatures
couldn't be verified because the
public key is not available: NO_PUBKEY
9BDB3D89CE49EC21
.

I tried searching for it, but wasn’t able to find anything helpful. What is the reason for this, and how can i fix this?

Edit1: I am using Linux mint 9.

Edit2: On sudo add-apt-repository ppa:mozillateam/firefox-stable/ubuntu, I was getting gpgkeys: HTTP fetch error 7: couldn't connect to host, so i did according to this post. When I run sudo apt-get update, it gives no errors. But, firefox 5 is still not installed. In my update manager when I try to install, it says «Fix broken packages first». In Synaptic manager there is an option of «Fix broken Packages», but it does nothing. What is going wrong here?

Edit3: Update is used to resynchronize the package index files from their sources, and Upgrade is used to install latest versions. So, I was forgetting about upgrade!

Thanks!

Community's user avatar

asked Jul 1, 2011 at 12:42

Priyank Bhatnagar's user avatar

3

Edit your /etc/apt/sources.list, and comment out the offending line (add «#» at the beginning of the line). The line you are looking for should have «ppa» in it. Save the file. Pls — note which ppa was mentioned there.

If in sources.list there is no ppa mentioned, check the files in /etc/apt/sources.list.d/ for a file which has «ppa» mentioned in there». Move this file to somewhere (so you have backup).

Then do:

sudo add-apt-repository ppa:any-ppa-that-I-need

This will add the ppa back to sources, but will fetch and install the pgp key as well.

answered Jul 1, 2011 at 13:14

Sunny's user avatar

SunnySunny

9414 silver badges8 bronze badges

5

The most direct method is to use apt itself:

$ apt-key update


The Ubuntu Forums have a couple things to say about this using more roundabout methods, if apt doesn’t do it properly.

ok. I figured it out.

do this:

wget
http://packages.freecontrib.org/ubuntu/plf/12B83718.gpg

and then open up synaptic and go to
settings>repos>authentication and
«import file key» browse the key and
click ok.

and then sudo aptitude update


And this:

sudo wget http://ftp-master.debian.org/ziyi_key_2006.asc -O — | sudo apt-key add —


This is the link to my Google search — there’s quite a bit much there to put in a single response.

answered Jul 1, 2011 at 12:53

new123456's user avatar

new123456new123456

4,4851 gold badge18 silver badges19 bronze badges

2

Thanks to ChrisJean.com I fixed this entirely in about 10 minutes.

First, collect a list of the GPG errors, by
cd /etc/apt/sources/list/d
sudo apt-get update > listoferrors

Do sudo nano listoferrors and strip out everything but the 16 character hexadecimal strings, and a space between each, then add at the beginning
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
so the hex strings, with a space between each, follow that apt-key command.

Copy the entire string and paste it into a terminal window with Ctrl-Shift-V. You end up with something like
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0123456789ABCDEF FEDCBA9876543210 11A11B11C11D11E1

Run it. It goes out, retrieves the correct keys, and puts them in place.

Then, another sudo apt-get update runs without flaw.

Close and delete the listoferrors file.

answered Sep 24, 2015 at 2:24

K7AAY's user avatar

K7AAYK7AAY

9,4244 gold badges33 silver badges61 bronze badges

@ actionparsnip

mario@ubuntu:~$ gpg —keyserver keyserver.ubuntu.com —recv A449F83829320B41C; gpg —export —armor A449F83829320B41C | sudo apt-key add —
gpg: «A449F83829320B41C» not a key ID: skipping
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.

@ marcobra

mario@ubuntu:~$ lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04

and /etc/apt/sources.list

# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ — Release i386 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://hr.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://hr.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://hr.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://hr.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://hr.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://hr.archive.ubuntu.com/ubuntu/ lucid universe
deb http://hr.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://hr.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://hr.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://hr.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://hr.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://hr.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the ‘backports’
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://hr.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://hr.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical’s
## ‘partner’ repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

## Depôt MultiBoot-v3
deb-src http://ppa.launchpad.net/jonls/redshift-ppa/ubuntu lucid main
deb http://ppa.launchpad.net/jonls/redshift-ppa/ubuntu lucid main
deb http://packages.geexbox.org/ lucid main

When you get GPG errors when running apt-get update on your Ubuntu machine, you have to import the the appropriate keys.

W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4DEF31B9A9E345C0
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0F678A01569113AE
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7889D725DA6DEEAA
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8CA7A6E8E4FA953A

Just run the following command :

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys KEYID

where KEYID is number shown in error message which is   bold & underlined

& you can do the same for every missing key.

Tags: NO_PUBKEY

Понравилась статья? Поделить с друзьями:
  • Ошибка gameinfo txt doesn t exist
  • Ошибка g62 фольксваген пассат б6
  • Ошибка ford c max p0400
  • Ошибка google services на телефоне
  • Ошибка gameguard not allowed driver detected