apt-get update problem gpg key error NO_PUBKEY
Hi!
When i try to update my system, I get this:
W: GPG error: http://
How to solve this?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- marcobra (Marco Braida)
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
How to add gpg repository keys
To add your keys, please try this:
Open a Terminal from the menu Applications → Accessories → Terminal and type or better copy and paste a row a time then press enter:
(if the system ask you a password give your user password, you will not see nothing when you type it, then press enter)
sudo apt-key adv --recv-keys --keyserver keyserver.
Then type: (when the system ask you a password give your user password, you will not see nothing when you type it, then press enter)
sudo apt-get update
sudo apt-get dist-upgrade
to update your system.
General info: https:/
How to videos:
http://
Hope this helps
Revision history for this message
|
#2 |
That does not solve the problem:
mario@ubuntu:~$ sudo apt-key adv --recv-keys --keyserver keyserver.
[sudo] password for mario:
Executing: gpg --ignore-
gpg: "A449F83829320B41C" not a key ID: skipping
mario@ubuntu:~$
Revision history for this message
|
#3 |
gpg --keyserver keyserver.
Done
Revision history for this message
|
#4 |
Please copy and paste the result of this terminal command:
lsb_release -rd
and please copy and paste here the content of your /etc/apt/
gedit /etc/apt/
Thank you
Revision history for this message
|
#5 |
@ actionparsnip
mario@ubuntu:~$ gpg --keyserver keyserver.
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/
# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://
# newer versions of the distribution.
deb http://
deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
## 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://
deb-src http://
deb http://
deb-src http://
## 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://
deb-src http://
deb http://
deb-src http://
## 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://
# deb-src http://
## 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://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
## Depôt MultiBoot-v3
deb-src http://
deb http://
deb http://
Revision history for this message
|
#6 |
sorry try:
gpg --keyserver keyserver.
Revision history for this message
|
#7 |
@ actionparsnip
I get the same output
Revision history for this message
|
#8 |
Seems something related to https:/
Please temporary rem (put a # at row begin ) the lines and retry
gksudo gedit /etc/apt/
Example:
## Depôt MultiBoot-v3
# deb-src http://
# deb http://
Save and exit and retry
Hope this helps
Revision history for this message
|
#9 |
@ actionparsnip
I get the same output
mario@ubuntu:~$ gpg --keyserver keyserver.
gpg: "29320B41C" not a key ID: skipping
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
Revision history for this message
|
#10 |
Or visit http://
Select the text
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.0.10
mI0ES0jStQEEALR
FyY57lfK7kVW7CQ
ftwrJCu+
dCBQUEGItgQTAQI
jByfJNgD/
MCwxn2Y/
nLXqM5uLjfxSivf
=co0r
-----END PGP PUBLIC KEY BLOCK-----
Open a terminal and type:
gedit /tmp/gpg.txt
Paste the text in it, save and exit,
Then type:
sudo apt-key add /tmp/gpg.txt
Hope this helps
Revision history for this message
|
#11 |
ok run:
gedit ~/key; sudo add-apt-key ~/key; rm ~/key
Try copying the small text here (NOT the bold top line):
http://
Save the file and close gedit, it will then be added as a key. Does:
sudo apt-get update
Now run ok?
Revision history for this message
|
#12 |
@ marcobra
I removed:
deb-src http://
deb http://
deb http://
and still:
W: GPG error: http://
And I tried what you told me, and this is what I get:
mario@ubuntu:~$ sudo apt-key add /tmp/gpg.txt
[sudo] password for mario:
OK
mario@ubuntu:~$ sudo apt-get update
Get:1 http://
Ign http://
Hit http://
Ign http://
Ign http://
Hit http://
Ign http://
Get:2 http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Ign http://
Hit http://
Ign http://
Hit http://
Ign http://
Hit http://
Ign http://
Ign http://
Get:3 http://
Ign http://
Get:4 http://
Ign http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Get:5 http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Fetched 4096B in 4s (1014B/s)
Reading package lists... Done
W: GPG error: http://
mario@ubuntu:~$
Revision history for this message
|
#13 |
@ actionparsnip
Done as you told me, and still get the same output:
W: GPG error: http://
Revision history for this message
|
#14 |
it seems an expired key:
sudo apt-key list | grep -i red
pub 1024D/6A423791 2006-09-26 [expired: 2009-09-25]
uid Launchpad Redshift PPA
So please rem the row into /etc/apt/
## Depôt MultiBoot-v3
# deb-src http://
# deb http://
and delete the expired key
sudo apt-key remove 6A423791
sudo apt-get update
Revision history for this message
|
#15 |
@ marcobra
I removed:
## Depôt MultiBoot-v3
# deb-src http://
# deb http://
And:
mario@ubuntu:~$ sudo apt-key remove 6A423791
gpg: key "6A423791" not found: eof
gpg: 6A423791: delete key failed: eof
Here are my sources:
http://
And here are things that you told me before to do:
Revision history for this message
|
#16 |
Please give the result of:
sudo apt-key list | grep -i red
Revision history for this message
|
#17 |
mario@ubuntu:~$ sudo apt-key list | grep -i red
uid Launchpad Redshift PPA
Revision history for this message
|
#18 |
Sorry 6A423791 was a my old key is not the key to remove you don't have that...
Revision history for this message
|
#19 |
And /etc/apt/
# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://
# newer versions of the distribution.
deb http://
deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
## 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://
deb-src http://
deb http://
deb-src http://
## 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://
deb-src http://
deb http://
deb-src http://
## 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://
# deb-src http://
## 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://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
Revision history for this message
|
#20 |
The key to remove is
sudo apt-key remove 298C1C9F
Revision history for this message
|
#21 |
Nope, still nothing:
mario@ubuntu:~$ sudo apt-key remove 298C1C9F
OK
mario@ubuntu:~$ sudo apt-get update
.......
Reading package lists... Done
W: GPG error: http://
mario@ubuntu:~$
The problem showed up today when I upgraded to 2.6.32-24-generic kernel. Maybe this is an issue?
Revision history for this message
|
#22 |
Please give the output of
sudo apt-key list | grep -i 20B41
Revision history for this message
|
#23 |
I get nothing:
mario@ubuntu:~$ sudo apt-key list | grep -i 20B41
mario@ubuntu:~$
Revision history for this message
|
#24 |
For your indf the key with issue is this: http://
and it is on the server are you connecting using a proxy...?
Revision history for this message
|
#25 |
Revision history for this message
|
#26 |
Thank you Marco Braida! It is Launchpad ubun-student. Ubun-student no longer exists, because it is Ailurus now. I removed ubun-student from software sources, and everything is OK now. Thank you Marco Braida!
Revision history for this message
|
#27 |
So please close this question marking it as solved...
Revision history for this message
|
#28 |
Thanks marcobra (Marco Braida), that solved my question.