Error while useing terminal

Asked by Kyle100101

I seem to get a bit of an error when I put in some codes.

W: GPG error: http://mirror.ubuntulinux.nl edgy-seveas Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 49A120FD1135D466
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

I all ready have the public key but the bloke who gave it to me never told me where to paste it.

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
Kyle100101 (michaelmountbatten) said :
#1

Haha, ok I just saw that W: GPG error: "http://mirror.ubuntulinux.nl edgy-seveas" was edgy, and I have gusty, Removed, :)

Revision history for this message
Kyle100101 (michaelmountbatten) said :
#2

Does anyone have an answer for me?

Revision history for this message
Daniel Voicu (danielvoicu) said :
#3

Okay, first you should use mirrors for Ubuntu Gutsy, not Edgy.:) Next thing: don't try to run at the same time two installers, this will give you the ": Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?" error. For example, you can't run "apt-get install" while you use Synaptic to install something.

Revision history for this message
Kyle100101 (michaelmountbatten) said :
#4

Well I had thought I had closed everything but I'll try it again.

Revision history for this message
Kyle100101 (michaelmountbatten) said :
#5

Ok well how do I add the Pub key?

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

Open a terminal from Applications->Accessories->Terminal and type:

wget http://address.of.requested.key/keyfile.xxx

sudo apt-key add keyfile.xxx

Replace keyfile.xxx and http://address.of.requested.key/ with proper values

When the system ask you for password, give your user password, you don't see nothing when you type it, then press enter

Hope this helps

Revision history for this message
Kyle100101 (michaelmountbatten) said :
#7

Ok so I typed in that first bit "wget http://address.of.requested.key/keyfile.xxx"

And I got this

kyle100101@kyle100101-laptop:~$ wget http://address.of.requested.key/keyfile.xxx
--20:16:03-- http://address.of.requested.key/keyfile.xxx
           => `keyfile.xxx'
Resolving address.of.requested.key... failed: Name or service not known.
kyle100101@kyle100101-laptop:~$

How do I fix this now?

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

Kyley100101 please read my previos answer:

"Replace keyfile.xxx and http://address.of.requested.key/ with proper values"

The value of gpg key depending repository thas you want to add to your /etc/apt/sources.list and usually you can find download link and key name on the repository http pages.

Thank you

Revision history for this message
Kyle100101 (michaelmountbatten) said :
#9

Oh I'm sorry I thought that was telling the computer to Replace it with proper values.

Revision history for this message
Kyle100101 (michaelmountbatten) said :
#10

Thanks marcobra, that solved my question.