On Thu, 30 Mar 2023 01:02:00 +0200 Vincent Lefevre wrote:

> On 2023-03-29 14:25:23 -0300, Antonio Terceiro wrote:
[...]
> > If anyone can still see this bug, it would be nice to configure
> > apt-listbugs in debug mode, e.g. setting
> > 
> > DPkg::Pre-Install-Pkgs {"/usr/bin/apt-listbugs -d apt";};
> > 
> > in /etc/apt/apt.conf.d/10apt-listbugs (i.e. adding the `-d` option), so
> > that when it happens we have a trace of the requests/reponses.
> 
> Is it possible to redirect (only) the debug data to a file?
> Otherwise that's too invasive.

All (well, almost all) debug output goes to stderr, so, yes, it should
be possible to redirect only the debug data to a file.

I think that

  DPkg::Pre-Install-Pkgs {"/usr/bin/apt-listbugs -d apt 2> 
/tmp/apt-listbugs.err";};

should achieve that goal.

-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Attachment: pgpB4Hl3Cs8Kf.pgp
Description: PGP signature

Reply via email to