Public key error when adding extra repositories

Asked by dural78

When I try to add extra repositories, as per this page:
https://help.ubuntu.com/7.04/add-applications/C/extra-repositories-adding.html

I get an error message as follow:
W: GPG error: http://ftp.debian.org sarge Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A70DAF536070D3A1 NO_PUBKEY B5D0C804ADB11277

Any ideas on how it can be fixed?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Boyd Stephen Smith Jr. (bss03) said :
#1

apt-get install debian-keychain

Revision history for this message
dural78 (mike-tee-vee) said :
#2

Hmm, when I type this in terminal, I get the following:

E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Is this where I should be?

Revision history for this message
Boyd Stephen Smith Jr. (bss03) said :
#3

On Friday 13 July 2007 04:24:46 pm dural78 wrote:
> Hmm, when I type this in terminal, I get the following:
>
> E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission
> denied) E: Unable to lock the administration directory (/var/lib/dpkg/),
> are you root?
>
> Is this where I should be?

Yes, but installing packages needs to be done as the "root" user. Preprend
the command I gave you with "sudo" to be prompted for your password and
execute the command as "root" like:

sudo apt-get install debian-keyring

--
Boyd Stephen Smith Jr.                     ,= ,-_-. =.
<email address hidden>                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-'
http://iguanasuicide.org/                      \_/

Can you help with this problem?

Provide an answer of your own, or ask dural78 for more information if necessary.

To post a message you must log in.