LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Error on adding gpg keys (https://www.linuxquestions.org/questions/ubuntu-63/error-on-adding-gpg-keys-560524/)

144419855310001 06-09-2007 06:30 PM

Error on adding gpg keys
 
Hi

Whenever I'm using Ubuntu 7.04 amd64, and whenever I try to add a gpg key with a command such as
Quote:

wget http://janvitus.interfree.it/ubuntu/2C4C84CC.gpg -O- | sudo apt-key add -
I get an error which looks like this:
Quote:

Error parsing proxy URL http://:8080/: Invalid host name.
gpg: no valid OpenPGP data found.
I recently had to unpick a conversion to Ubuntu Christian Edition, as the dansguardian which was installed messed things up, if that's of any relevance.

Any thoughts? Thanks

HappyTux 06-09-2007 06:54 PM

Quote:

Originally Posted by 144419855310001
Hi

Whenever I'm using Ubuntu 7.04 amd64, and whenever I try to add a gpg key with a command such as


I get an error which looks like this:


I recently had to unpick a conversion to Ubuntu Christian Edition, as the dansguardian which was installed messed things up, if that's of any relevance.

Any thoughts? Thanks

Do your wget to download the key by itself then gpg --import 2C4C84CC.gpg and gpg --armour -export 2C4C84CC | sudo apt-key add - importing first into the keyring then you export from keyring to apt-key, you might have to check the syntax its been awhile since I used the commands.

144419855310001 06-09-2007 07:05 PM

Thanks for the reply, but check that last post - I think it's a problem with wget: it states

Quote:

Error parsing proxy URL http://:8080/: Invalid host name.
...every time I use it.
How can I fix this?

HappyTux 06-09-2007 07:22 PM

Quote:

Originally Posted by 144419855310001
Thanks for the reply, but check that last post - I think it's a problem with wget: it states



...every time I use it.
How can I fix this?

Have you tried opening a browser and right clicking on the link and using the save as both that and the wget command works here.

Code:


[09:07 PM Sat Jun 09: stephen @ ~]
>$ wget http://janvitus.interfree.it/ubuntu/2C4C84CC.gpg
--21:08:18--  http://janvitus.interfree.it/ubuntu/2C4C84CC.gpg
          => `2C4C84CC.gpg.1'
Resolving janvitus.interfree.it... 213.158.72.68
Connecting to janvitus.interfree.it|213.158.72.68|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,084 (2.0K) [application/octet-stream]

100%[=======================================>] 2,084        --.--K/s

21:08:19 (262.93 MB/s) - `2C4C84CC.gpg.1' saved [2084/2084]

>$ cat 2C4C84CC.gpg
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.3 (GNU/Linux)

mQGiBEWbr3cRBADm/7RTptAvnlr+RSxFyngpi3ov5IJc7sDPpxJQ7KpdffrMegUd
jpdWdo4xi41Bo+thncDqQTnIj8DjXtqqXcxWZmdfwMocUYwpbEpmCsU5O673tJ4E
B0UYc+QLr7caMqa85ZWPZcA93NOeb7pqikcO4L2n/H3+QlTOiHix4A+v4wCgy+I7
JqKjcwgUPAqZNujtPUnCHOMD/3j3Vht8pYEdkz2wPu5cjimvWDZbnhEvl0jp2oOM
yEw+X5Z8TTxLjP7r4AuowXDC2s2eP6QvoxU1fkWiFH3WPTHGt4IMF/Vw1wvFYVmo
Safc+WCpBkq0/H5AxhR9cI8n23zZ4PVtThpM8ybtjC4CF5zjHyl/+WkZRYWCImIo
b6nbA/0fpR3GaXQxkbBA6UQ96C7I0MGn5DDQJ0eKCtfJp8x15drvIKEoC0egEEPp
vOsJulSLDBj6h/duXtUgClzFXOzGGtaO2laPEOW1+hyWAk5aPestHg4vc3wKktSv
7USzA6oOLgvcXAq/IzQ8KOkyMe8M5X/WJrtgrTsjStEAm6pNBLQmR2lhbnZpdG8g
Q2F2YXNvbGkgPGdpYW52aXRvNzdAYWltLmNvbT6IYAQTEQIAIAUCRZuvdwIbIwYL
CQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEFzr4kwsTITM1r8An3lEV4Hrx6MaZPvK
1Z4yk2VlOFJZAJ9a6o9jQ2F0/v4BLuB01PZQDWsTJ4kBIgQQAQIADAUCRZzs9QUD
ABJ1AAAKCRCXELibyletfBSSCACwvOPbZ0kyeByJR3ybMMLmhkxJF8GPo37XxusV
IXLMLNCXIWZkdfQZ67yx/BoQZ5V58ckgeAPy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lxsLF
af3dk+usbSkD8kGzgxif
=vO7u
-----END PGP PUBLIC KEY BLOCK-----

If you want and cannot get it any other way just cut'n'paste into a file the output of the cat command I show above then import it into your keyring.

144419855310001 06-10-2007 09:15 AM

Hmmm. Fixed it -

I edited /etc/wgetrc
and uncommented the line

Quote:

use_proxy = on
and changed it to:

Quote:

use_proxy = off
Things seem ok now.


All times are GMT -5. The time now is 08:48 PM.