apt-get update problem gpg key error NO_PUBKEY

Asked by Mario Tomljenović

Hi!

When i try to update my system, I get this:

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 449F83829320B41C

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
marcobra (Marco Braida) (marcobra) said :
#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.ubuntu.com A449F83829320B41C

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://help.launchpad.net/Packaging/PPA#Adding%20a%20PPA%20to%20your%20Ubuntu%20repositories

How to videos:

http://www.archive.org/download/LaunchpadAddingAPpasKeyToYourUbuntuSystem/launchpad-adding-key-for-signed-ppa.ogv

http://www.youtube.com/watch?v=UUZOQsNo_ws

Hope this helps

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#2

That does not solve the problem:

mario@ubuntu:~$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A449F83829320B41C
[sudo] password for mario:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com A449F83829320B41C
gpg: "A449F83829320B41C" not a key ID: skipping
mario@ubuntu:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

gpg --keyserver keyserver.ubuntu.com --recv A449F83829320B41C; gpg --export --armor A449F83829320B41C | sudo apt-key add -

Done

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#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/sources.list file, to open it from terminal type:

gedit /etc/apt/sources.list

Thank you

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#5

@ 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

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

sorry try:

gpg --keyserver keyserver.ubuntu.com --recv 29320B41C; gpg --export --armor 29320B41C | sudo apt-key add -

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#7

@ actionparsnip

I get the same output

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#8

Seems something related to https://launchpad.net/~jonls/+archive/redshift-ppa

Please temporary rem (put a # at row begin ) the lines and retry

gksudo gedit /etc/apt/sources.list

Example:
## 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

Save and exit and retry

Hope this helps

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#9

@ actionparsnip

I get the same output

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

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#10

Or visit http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x9FF820FA298C1C9F

Select the text

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.0.10

mI0ES0jStQEEALRq49TNCZDnwiFGE19jaUI/FbDyviXWvRqbIRmTBZGDvpuOYKvm+O4NNA5Q
FyY57lfK7kVW7CQ509tC6WH8g6kn5IBxpyVZSRbcYBtzFxPjqI/oH+P+QGj9yv/cj7/5n44V
ftwrJCu+GmVCr9yhrN7kWUKTtXtxVo0Ukbt4UEN3ABEBAAG0FkxhdW5jaHBhZCBSZWRzaGlm
dCBQUEGItgQTAQIAIAUCS0jStQIbAwYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEJ/4IPop
jByfJNgD/RuNRmJ8v34NrL3lP0zSADwtWNq+dFjW5Op3OsNP+ldyt90DIjgjQ4/L9HJV3eUa
MCwxn2Y/+E1gYz8SQHrILmbdgu8B8mbDntndy8r9geQ2Jc9/a/qJcQHSGlsmhxEIntZj5dyI
nLXqM5uLjfxSivfjtQ7L7+17/0bHWvJv9vUX
=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
actionparsnip (andrew-woodhead666) said :
#11

ok run:

gedit ~/key; sudo add-apt-key ~/key; rm ~/key

Try copying the small text here (NOT the bold top line):
http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x9FF820FA298C1C9F

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
Mario Tomljenović (tomljenovicmario) said :
#12

@ marcobra

I removed:

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

and still:

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 449F83829320B41C

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://dl.google.com stable Release.gpg [189B]
Ign http://dl.google.com/linux/deb/ stable/main Translation-hr
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-hr
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-hr
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/am-monkeyd/nautilus-elementary-ppa/ubuntu/ lucid/main Translation-hr
Get:2 http://dl.google.com stable Release [2544B]
Hit http://hr.archive.ubuntu.com lucid Release.gpg
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-hr
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-hr
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-hr
Hit http://security.ubuntu.com lucid-security Release
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/bisigi/ppa/ubuntu/ lucid/main Translation-hr
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/canonical-dx-team/une/ubuntu/ lucid/main Translation-hr
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/conkyhardcore/ppa/ubuntu/ lucid/main Translation-hr
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/dockbar-main/ppa/ubuntu/ lucid/main Translation-hr
Ign http://hr.archive.ubuntu.com/ubuntu/ lucid/main Translation-hr
Get:3 http://ppa.launchpad.net lucid Release.gpg [307B]
Ign http://hr.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-hr
Get:4 http://dl.google.com stable/main Packages [1055B]
Ign http://hr.archive.ubuntu.com/ubuntu/ lucid/universe Translation-hr
Hit http://archive.canonical.com lucid Release
Ign http://ppa.launchpad.net/ubun-student/ppa/ubuntu/ lucid/main Translation-hr
Hit http://linux.dropbox.com lucid Release.gpg
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ lucid/main Translation-hr
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/zeitgeist/ppa/ubuntu/ lucid/main Translation-hr
Ign http://hr.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-hr
Hit http://hr.archive.ubuntu.com lucid-updates Release.gpg
Hit http://ppa.launchpad.net lucid Release
Hit http://ppa.launchpad.net lucid Release
Hit http://ppa.launchpad.net lucid Release
Hit http://ppa.launchpad.net lucid Release
Hit http://archive.canonical.com lucid/partner Packages
Ign http://hr.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-hr
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Ign http://hr.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-hr
Hit http://ppa.launchpad.net lucid Release
Get:5 http://ppa.launchpad.net lucid Release [66,0kB]
Hit http://ppa.launchpad.net lucid Release
Hit http://ppa.launchpad.net lucid Release
Ign http://ppa.launchpad.net lucid Release
Ign http://linux.dropbox.com/ubuntu/ lucid/main Translation-hr
Ign http://hr.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-hr
Hit http://archive.canonical.com lucid/partner Sources
Ign http://hr.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-hr
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://hr.archive.ubuntu.com lucid Release
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Sources
Hit http://hr.archive.ubuntu.com lucid-updates Release
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://linux.dropbox.com lucid Release
Hit http://hr.archive.ubuntu.com lucid/main Packages
Hit http://hr.archive.ubuntu.com lucid/restricted Packages
Hit http://hr.archive.ubuntu.com lucid/main Sources
Hit http://hr.archive.ubuntu.com lucid/restricted Sources
Hit http://linux.dropbox.com lucid/main Packages
Hit http://hr.archive.ubuntu.com lucid/universe Packages
Hit http://hr.archive.ubuntu.com lucid/universe Sources
Hit http://hr.archive.ubuntu.com lucid/multiverse Packages
Hit http://hr.archive.ubuntu.com lucid/multiverse Sources
Hit http://hr.archive.ubuntu.com lucid-updates/main Packages
Hit http://archive.getdeb.net lucid-getdeb Release.gpg
Ign http://archive.getdeb.net/ubuntu/ lucid-getdeb/apps Translation-hr
Hit http://hr.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://hr.archive.ubuntu.com lucid-updates/main Sources
Hit http://hr.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://hr.archive.ubuntu.com lucid-updates/universe Packages
Hit http://hr.archive.ubuntu.com lucid-updates/universe Sources
Hit http://hr.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://hr.archive.ubuntu.com lucid-updates/multiverse Sources
Hit http://archive.getdeb.net lucid-getdeb Release
Hit http://archive.getdeb.net lucid-getdeb/apps Packages
Fetched 4096B in 4s (1014B/s)
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 449F83829320B41C
mario@ubuntu:~$

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#13

@ actionparsnip

Done as you told me, and still get the same output:

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 449F83829320B41C

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#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/sources.list

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

and delete the expired key

sudo apt-key remove 6A423791

sudo apt-get update

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#15

@ marcobra

I removed:

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

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://slike.hr/slike/prikazzaslona_48e70.png.html

And here are things that you told me before to do:

http://slike.hr/slike/prikazzaslona1_b4b46.png.html

http://slike.hr/slike/prikazzaslona2_2f04d.png.html

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#16

Please give the result of:

sudo apt-key list | grep -i red

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#17

mario@ubuntu:~$ sudo apt-key list | grep -i red
uid Launchpad Redshift PPA

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#18

Sorry 6A423791 was a my old key is not the key to remove you don't have that...

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#19

And /etc/apt/sources.list again:

# 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

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#20

The key to remove is

sudo apt-key remove 298C1C9F

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#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://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 449F83829320B41C
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
marcobra (Marco Braida) (marcobra) said :
#22

Please give the output of

sudo apt-key list | grep -i 20B41

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#23

I get nothing:

mario@ubuntu:~$ sudo apt-key list | grep -i 20B41
mario@ubuntu:~$

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#24

For your indf the key with issue is this: http://keyserver.ubuntu.com:11371/pks/lookup?search=0x449F83829320B41C&op=vindex
and it is on the server are you connecting using a proxy...?

Revision history for this message
tjpmack2 (tmccormack) said :
#25
Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#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
Best marcobra (Marco Braida) (marcobra) said :
#27

So please close this question marking it as solved...

Revision history for this message
Mario Tomljenović (tomljenovicmario) said :
#28

Thanks marcobra (Marco Braida), that solved my question.