Re: debconf help
On Tue, Feb 08, 2000 at 10:09:37AM -0800, Joey Hess was heard to say:
> Daniel Burrows wrote:
> > When I run this as root, it runs and exits without generating any output
> > or messages. If, however, I run it as myself, I get the expected: a dialog
> > with the test message and the Yes/No buttons. Selecting either, of course,
> > causes the script to abort with a 'permission denied' error. What am I doing
> > wrong?
>
> No clue. :-) Try setting DEBCONF_DEBUG=1 before running it as root, you will
> probably see some error message.
Hmm.
bluegreen:/tmp> env DEBCONF_DEBUG=1 ./foo.config
debconf: trying frontend Dialog
debconf: <-- FSET test/foo isdefault true
debconf: --> 0 true
debconf: <-- INPUT high test/foo
debconf: --> 0
debconf: <-- GO
debconf: --> 0
(dialog appears)
/var/lib/debconf//debconf.new: Permission denied at /usr/lib/perl5/Debian/DebConf/ConfigDb.pm line 229, <GEN0> chunk 3.
bluegreen:/tmp> env DEBCONF_DEBUG=1 sudo ./foo.config
debconf: trying frontend Dialog
debconf: <-- FSET test/foo isdefault true
debconf: --> 0 true
debconf: <-- INPUT high test/foo
debconf: --> 30
debconf: <-- GO
debconf: --> 0
(nothing happens)
That 30 seems to indicate that the question is being skipped because the
'isdefault' flag is false, if I understand the documentation correctly. But
I set it to be true right above that. Here's what I get setting the
debug level to 2:
bluegreen:/tmp> env DEBCONF_DEBUG=2 sudo ./foo.config
debconf: frontend started
debconf: trying frontend Dialog
debconf: Trying to find a templates file..
debconf: I guess it is ./foo.templates
debconf: frontend running, package name is
debconf: starting ./foo.config
debconf: <-- FSET test/foo isdefault true
debconf: --> 0 true
debconf: <-- INPUT high test/foo
debconf: Trying to make element of type Noninteractive::Boolean
debconf: Failed with Can't locate Debian/DebConf/Element/Noninteractive/Boolean.pm in @INC (@INC contains: /usr/lib/perl5/5.005/i386-linux /usr/lib/perl5/5.005 /usr/local/lib/site_perl/i386-linux /usr/local/lib/site_perl /usr/lib/perl5 .) at (eval 4) line 2, <GEN0> chunk 2.
BEGIN failed--compilation aborted at (eval 4) line 2, <GEN0> chunk 2.
debconf: --> 30
debconf: <-- GO
debconf: preparing to ask questions
debconf: --> 0
So it looks like something weird is happening: first, why is it looking for a
noninteractive widget, and second, why can't it find the module? Upping the
debug level further doesn't appear to give any useful output..
Ahhh, interesting: dpkg-reconfigure has the same problem, I just haven't
noticed.
bluegreen:/tmp> env DEBCONF_DEBUG=2 sudo dpkg-reconfigure debconf
debconf: trying frontend Dialog
debconf: starting /var/lib/dpkg/info/debconf.config reconfigure 0.2.80.1
debconf: <-- VERSION 2.0
debconf: --> 0 2.0
debconf: <-- CAPB backup
debconf: --> 0 multiselect backup
debconf: <-- BEGINBLOCK
debconf: --> 0
debconf: <-- INPUT medium debconf/frontend
debconf: Trying to make element of type Noninteractive::Select
debconf: --> 30
debconf: <-- INPUT medium debconf/priority
debconf: Trying to make element of type Noninteractive::Select
debconf: --> 30
debconf: <-- ENDBLOCK
debconf: --> 0
debconf: <-- GO
debconf: preparing to ask questions
debconf: --> 0
debconf: <-- BEGINBLOCK
debconf: --> 0
debconf: <-- INPUT low debconf/preconfig
debconf: Trying to make element of type Noninteractive::Boolean
debconf: Failed with Can't locate Debian/DebConf/Element/Noninteractive/Boolean.pm in @INC (@INC contains: /usr/lib/perl5/5.005/i386-linux /usr/lib/perl5/5.005 /usr/local/lib/site_perl/i386-linux /usr/local/lib/site_perl /usr/lib/perl5 .) at (eval 10) line 2, <GEN0> chunk 9.
BEGIN failed--compilation aborted at (eval 10) line 2, <GEN0> chunk 9.
debconf: --> 30
debconf: <-- INPUT low debconf/showold
debconf: Trying to make element of type Noninteractive::Boolean
debconf: Failed with Can't locate Debian/DebConf/Element/Noninteractive/Boolean.pm in @INC (@INC contains: /usr/lib/perl5/5.005/i386-linux /usr/lib/perl5/5.005 /usr/local/lib/site_perl/i386-linux /usr/local/lib/site_perl /usr/lib/perl5 .) at (eval 11) line 2, <GEN0> chunk 10.
BEGIN failed--compilation aborted at (eval 11) line 2, <GEN0> chunk 10.
debconf: --> 30
debconf: <-- ENDBLOCK
debconf: --> 0
debconf: <-- GO
debconf: preparing to ask questions
debconf: --> 0
debconf: starting /var/lib/dpkg/info/debconf.postinst configure 0.2.80.1
debconf: <-- GET debconf/preconfig
debconf: --> 0 true
So it looks like somehow (!!) my root account is screwing debconf up. I
don't speak Perl; do you have any idea where this could be coming from?
Thanks,
Daniel
--
Whoever fights monsters should see to it that in the process he does not
become a monster. And when you look into an abyss, the abyss also looks
into you.
-- Friedrich Nietzsche
Reply to: