Etch-backports and gpg problems

I am running Etch and I want to install the alpine package from
etch-backports.

I also want to verify the downloaded files.

I followed the instructions on the backports instruction page:

----------------------------------------

If you are using *etch* and you want apt to verify the downloaded
backports you can import backports.org archive’s key into apt:

gpg --keyserver hkp://subkeys.pgp.net --recv-keys 16BA136C
gpg --export | apt-key add -

or

wget -O - http://backports.org/debian/archive.key | apt-key add -

----------------------------------------

but after executing the second option (or the second line of the first option) I get the following messages:

----------------------------------------

gpg: no writable keyring found: eof
gpg: error reading `-': general error
gpg: import from `-' failed: general error

----------------------------------------

This occurs whether I run this as a normal user, or with sudo. What am I doing wrong?

If I then try to run 'aptitude update' I get the following:

----------------------------------------

mns@xander:~$ sudo aptitude update
Get:1 http://debian.oregonstate.edu etch Release.gpg [378B]
Get:2 http://security.debian.org etch/updates Release.gpg [189B]
Hit http://debian.oregonstate.edu etch Release
Hit http://security.debian.org etch/updates Release
Ign http://debian.oregonstate.edu etch/main Packages/DiffIndex
Get:3 http://www.debian-multimedia.org etch Release.gpg [189B]
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://debian.oregonstate.edu etch/contrib Packages/DiffIndex
Ign http://debian.oregonstate.edu etch/non-free Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://debian.oregonstate.edu etch/main Sources/DiffIndex
Ign http://debian.oregonstate.edu etch/contrib Sources/DiffIndex
Ign http://debian.oregonstate.edu etch/non-free Sources/DiffIndex
Ign http://security.debian.org etch/updates/non-free Packages/DiffIndex
Hit http://debian.oregonstate.edu etch/main Packages
Hit http://debian.oregonstate.edu etch/contrib Packages
Hit http://debian.oregonstate.edu etch/non-free Packages
Hit http://debian.oregonstate.edu etch/main Sources
Hit http://debian.oregonstate.edu etch/contrib Sources
Hit http://security.debian.org etch/updates/main Packages
Hit http://www.debian-multimedia.org etch Release
Get:4 http://www.backports.org etch-backports Release.gpg [189B]
Hit http://debian.oregonstate.edu etch/non-free Sources
Hit http://security.debian.org etch/updates/contrib Packages
Hit http://security.debian.org etch/updates/non-free Packages
Hit http://www.backports.org etch-backports Release
Err http://www.backports.org etch-backports Release

Ign http://www.debian-multimedia.org etch/main Packages/DiffIndex
Get:5 http://www.backports.org etch-backports Release [43.7kB]
Hit http://www.debian-multimedia.org etch/main Packages
Ign http://www.backports.org etch-backports Release
Hit http://www.backports.org etch-backports/main Packages/DiffIndex
Hit http://www.backports.org etch-backports/contrib Packages/DiffIndex
Hit http://www.backports.org etch-backports/non-free Packages/DiffIndex
Hit http://www.backports.org etch-backports/contrib Packages
Fetched 43.9kB in 2s (18.0kB/s)
Reading package lists... Done
W: GPG error: http://www.backports.org etch-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EA8E8B2116BA136C
W: You may want to run apt-get update to correct these problems

----------------------------------------

Can someone help me get this sorted out, please?

--
Marc Shapiro

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Etch-backports and gpg problems (SOLVED)

Marc Shapiro wrote:
> I followed the instructions on the backports instruction page:
>
> ----------------------------------------
>
> If you are using *etch* and you want apt to verify the downloaded
> backports you can import backports.org archive’s key into apt:
>
> gpg --keyserver hkp://subkeys.pgp.net --recv-keys 16BA136C
> gpg --export | apt-key add -
>
> or
>
> wget -O - http://backports.org/debian/archive.key | apt-key add -
>
> ----------------------------------------
>
>
> but after executing the second option (or the second line of the first
> option) I get the following messages:
>
> ----------------------------------------
>
>
> gpg: no writable keyring found: eof
> gpg: error reading `-': general error
> gpg: import from `-' failed: general error
>
> ----------------------------------------
>
>
> This occurs whether I run this as a normal user, or with sudo. What
> am I doing wrong?
>
If I had run as root, it probably would have worked, but I used sudo.
This only runs the first command as root (I believe), so the command
'apt-key add - ' was run as a normal user and did not like that. Using
sudo on that command, as well, ran without errors.

Alpine is now installed and aptitude gives me no errors.

--
Marc Shapiro

--

Etch-backports and gpg problems (SOLVED)

On 9/23/07, Marc Shapiro wrote:

> If I had run as root, it probably would have worked, but I used sudo.
> This only runs the first command as root (I believe), so the command
> 'apt-key add - ' was run as a normal user and did not like that. Using

It might be worth mentioning that "sudo" doesn't work across pipes:

For instance:

sudo command_1 | command_2

The first command will be run as root, but the second will be run with
normal user permissions. You can probably get around that by enclosing
the entire pipechain in quotes, but there's sometimes when just
entering su for the command and exiting su when finished is easier.

>

--

Etch-backports and gpg problems (SOLVED)

David Fox wrote:
>
> It might be worth mentioning that "sudo" doesn't work across pipes:
>
> For instance:
>
> sudo command_1 | command_2
>
> The first command will be run as root, but the second will be run with
> normal user permissions. You can probably get around that by enclosing
> the entire pipechain in quotes, but there's sometimes when just
> entering su for the command and exiting su when finished is easier.
>
>>

hmmm... How about

sudo command_1 | sudo command_2

raju
--
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/

--

Etch-backports and gpg problems (SOLVED)

Kamaraju S Kusumanchi wrote:
> David Fox wrote:
>
>> It might be worth mentioning that "sudo" doesn't work across pipes:
>>
>> For instance:
>>
>> sudo command_1 | command_2
>>
>> The first command will be run as root, but the second will be run with
>> normal user permissions. You can probably get around that by enclosing
>> the entire pipechain in quotes, but there's sometimes when just
>> entering su for the command and exiting su when finished is easier.
>>
>>
>
> hmmm... How about
>
> sudo command_1 | sudo command_2
>
>
That's exactly the way I did it. Worked like a charm.

--
Marc Shapiro

--

Etch-backports and gpg problems (SOLVED)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/24/07 21:44, Marc Shapiro wrote:
> Kamaraju S Kusumanchi wrote:
>> David Fox wrote:
>>
>>> It might be worth mentioning that "sudo" doesn't work across pipes:
>>>
>>> For instance:
>>>
>>> sudo command_1 | command_2
>>>
>>> The first command will be run as root, but the second will be run with
>>> normal user permissions. You can probably get around that by enclosing
>>> the entire pipechain in quotes, but there's sometimes when just
>>> entering su for the command and exiting su when finished is easier.
>>>
>>>
>>
>> hmmm... How about
>>
>> sudo command_1 | sudo command_2
>>
>>
> That's exactly the way I did it. Worked like a charm.

What about:
sudo (command_1 | command_2)

- --
Ron Johnson, Jr.
Jefferson LA USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG+Q8IS9HxQb37XmcRAuZ2AKDC/UmOaIjXhxO91YyXP1YQGA6CNgCgyFqi
aHfoYyJi61SPlXS7UMbqL6A=
=oxZK
-----END PGP SIGNATURE-----

--

Etch-backports and gpg problems (SOLVED)

On Tue, Sep 25, 2007 at 08:37:12AM -0500, Ron Johnson was heard to say:
> -----BEGIN PGP SIGNED MESSAGE-----
> What about:
> sudo (command_1 | command_2)

Won't work -- the ()s are shell metacharacters, and sudo knows
nothing about them. What you would need to do this with just one
sudo is something like:

sudo sh -c "command_1 | command_2"

with appropriate wariness towards quoting gremlins.

Daniel

--

Syndicate content