On Sun, 13 Oct 2024 03:21:20 +0200 Christoph Anton Mitterer wrote:

[...]
> On Sat, 2024-10-12 at 15:46 +0200, Francesco Poli wrote:
[...]
> What did however work is replacing the whole /etc/apt/apt.conf.d/10apt-
> listbugs with e.g.:
>    DPkg::Pre-Install-Pkgs {"/usr/local/bin/apt-listbugs apt";};
>    DPkg::Tools::Options::/usr/local/bin/apt-listbugs "";
>    DPkg::Tools::Options::/usr/local/bin/apt-listbugs::Version "3";
>    DPkg::Tools::Options::/usr/local/bin/apt-listbugs::InfoFD "20";
>    AptListbugs::Severities "critical,grave,serious";
> 
> 
> and have /usr/local/bin/apt-listbugs be:
>    #!/bin/sh
>    
>    export SSL_CERT_FILE=/usr/share/ca-
>    certificates/mozilla/ISRG_Root_X1.crt
>    exec /usr/bin/apt-listbugs "$@"
> 
> 
> But that's pretty hacky, and even if a better solution was found, if
> 10apt-listbugs needs to be changed, it will not work out-of-the box on
> upgrades.
[...]

I don't think such an uncommon use case is worth a specific support to
be implemented into apt-listbugs.

However, you could:

  # export SSL_CERT_FILE=/usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt

just before invoking apt (or aptitude or your package manager of
choice). It should work.

As an alternative strategy, you could play with dpkg-divert and move
the official /usr/bin/apt-listbugs provided by the Debian package to a
different place:

  # dpkg-divert --divert /usr/bin/apt-listbugs.official --rename 
/usr/bin/apt-listbugs

At that point you could move your custom script to the official place:

  # mv -i /usr/local/bin/apt-listbugs /usr/bin/apt-listbugs

and keep the /etc/apt/apt.conf.d/10apt-listbugs configuration file as
provided by the Debian package...
I think this second strategy should work, as well.




-- 
 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: pgpNVYsJxrns0.pgp
Description: PGP signature

Reply via email to