Re: W: GPG error: http://security.debian.org stable/updates Release: Unknown error executing gpgv



Enrique Perez-Terron <enrio@xxxxxxxxx> wrote:
> On Sat, 24 Dec 2005 02:23:17 +0100, <ANTant@xxxxxxxxxx> wrote:

> > Hello! I am having a minor problem with apt-get update today:
> >
> > # apt-get update
> [...]
> > W: GPG error: http://security.debian.org stable/updates Release: Unknown error executing gpgv
> > W: GPG error: http://security.debian.org testing/updates Release: Unknown error executing gpgv
> > W: You may want to run apt-get update to correct these problems

> Any software that outputs "unknown error" should be abandoned immediately.

> Do you have a program called gpgv? Is it in your path? If so, run

Yep, according to root:

# gpgv
gpgv: keyblock resource `/root/.gnupg/trustedkeys.gpg': general error

I also reran apt-get update this morning and I no longer get the errors.
It seems like it got fixed from remotely or by itself? I ran apt-get update
twice. Should I be OK now?


> strace -o /tmp/apt.strace -f apt-get update

> (make sure you have room in /tmp, or use another directory)

> Search the resulting /tmp/apt.strace for "execv.*gpgv", and note the
> process id (leftmost number). Extract all lines with that initial number,
> and look at the last part of the resulting file. Look for "=.*E"
> to identify failed system calls.

> It is normal to issue a sequence of failed calls, when e.g. doing execve
> and trying all directories in the path. Look for more telling errors.
> If you don't find any, the error is probably an invalid gpg key.

> Look in the main strace file for the line "fork...= <pid>" or
> "clone...= <pid>" to determine the parent process of gpgv, and see if
> you can determine where it get's it's idea about the "correct" keys
> from. What key repository files does it open?

> Can you run gpgv with the same command line parameters? It is possible
> to run strace so that it shows more of the data passed in read and write
> calls. Can you run gpgv with the same input? Do you see in the strace
> any error messages gpgv sends to apt-get?

I will try this if it happens again. ;)


> YMMV

> I have never used Debian. Don't listen to me. Especially when
> I say "don't listen to me". You have been warned. Merry Christmas.

Merry Christmas Enrique, and thanks. :)
--
"None preaches better than the ant, and she says nothing." --Ben Franklin
/\___/\
/ /\ /\ \ Phillip (Ant) @ http://antfarm.ma.cx (Personal Web Site)
| |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
.



Relevant Pages

  • Re: W: GPG error: http://security.debian.org stable/updates Release: Unknown error executing gpgv
    ... W: GPG error: http://security.debian.org testing/updates Release: Unknown error executing gpgv W: You may want to run apt-get update to correct these problems ... "clone...= " to determine the parent process of gpgv, and see if you can determine where it get's it's idea about the "correct" keys from. ... Do you see in the strace ...
    (comp.os.linux.setup)
  • Re: aptitude update gpgv error
    ... You may want to run apt-get update to correct these problems ... i can't see any reference to gpgv in that post: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)