[Debconf-devel] Bug#1073992: debconf: failure between unpack and configure dpkg runs via apt

Martin-Éric Racine martin-eric.racine at iki.fi
Wed Sep 25 08:00:01 BST 2024


ti 3. syysk. 2024 klo 12.47 Colin Watson (cjwatson at debian.org) kirjoitti:
>
> On Wed, Aug 28, 2024 at 12:56:32AM +0200, Guillem Jover wrote:
> > On Fri, 2024-06-21 at 10:53:20 +0300, Martin-Éric Racine wrote:
> > > Unpacking pci.ids (0.0~2024.05.31-1) over (0.0~2024.04.20-1) ...
> > > debconf: Unable to load Debconf::Element::Dialog. Failed because: Can't locate Debconf/Element/Dialog.pm in @INC (you may need to install the Debconf::Element::Dialog module) (@INC entries checked: /etc/perl /usr/local/lib/i386-linux-gnu/perl/5.38.2 /usr/local/share/perl/5.38.2 /usr/lib/i386-linux-gnu/perl5/5.38 /usr/share/perl5 /usr/lib/i386-linux-gnu/perl-base /usr/lib/i386-linux-gnu/perl/5.38 /usr/share/perl/5.38 /usr/local/lib/site_perl) at (eval 19) line 1, <GEN0> line 3.
> > > BEGIN failed--compilation aborted at (eval 19) line 1, <GEN0> line 3.
> > >
> > > Can't locate object method "new" via package "Debconf::Element::Dialog" (perhaps you forgot to load "Debconf::Element::Dialog"?) at /usr/share/perl5/Debconf/FrontEnd.pm line 69, <GEN0> line 3.
> > > Setting up pci.ids (0.0~2024.05.31-1) ...
> >
> > As mentioned on the report, this is not an issue with pci.ids, but
> > with something (apt) calling debconf (perhaps indirectly) between the
> > unpack and configure runs. I'd assume an apt hook is causing this. I'm
> > reassigning this to debconf as the actual thing apparently failing, but
> > if the actual hook (or caller) can be tracked down then perhaps that
> > can be reassigned there. (Sorry for passing along this hot potato. :)
> >
> > (The BTS contains mails with several log files, and some analysis.)
>
> Martin-Éric, could you provide the output of "ls /etc/apt/apt.conf.d/"
> and "grep -E 'debconf|dpkg-' /etc/apt/apt.conf.d/*"?  That would
> probably speed up the search here.

$ ls /etc/apt/apt.conf.d/
00CDMountPoint  00trustcdrom  01autoremove  20apt-show-versions
50appstream  50apt-file.conf  50command-not-found  70debconf
99funkyware  99-localepurge  99needrestart

$ grep -E 'debconf|dpkg-' /etc/apt/apt.conf.d/*
/etc/apt/apt.conf.d/70debconf:// Pre-configure all packages with
debconf before they are installed.
/etc/apt/apt.conf.d/70debconf:DPkg::Pre-Install-Pkgs
{"/usr/sbin/dpkg-preconfigure --apt || true";};

Martin-Éric



More information about the Debconf-devel mailing list