On 06/07/07 at 15:28 +0100, Stephen Gran wrote:
> This one time, at band camp, Lucas Nussbaum said:
> > Package: clamav-base
> > Version: 0.90.3-1
> > Severity: serious
> > 
> > Hi,
> > 
> > While testing with piuparts, clamav-base failed to install:
> >   Setting up clamav-base (0.90.3-1) ...
> >   Adding system user `clamav' (UID 104) ...
> >   Adding new group `clamav' (GID 105) ...
> >   Adding new user `clamav' (UID 104) with group `clamav' ...
> >   Not creating home directory `/var/lib/clamav'.
> >   dpkg: error processing clamav-base (--configure):
> >    subprocess post-installation script returned error exit status 1
> >   Errors were encountered while processing:
> >    clamav-base
> >   E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> Well, I have to say I've never seen this failure mode.  Can you assist
> me with debugging it?  I don't see anything that gives me a clue about
> what part of the postinstall is failing or why.

Yes.
In a chroot, install debfoster, then run:
debfoster -o MaxPriority=required -o UseRecommends=no -f -n apt debfoster

Then:
apt-get install clamav-base

I modified clamav-base to run 'set -x':
Setting up clamav-base (0.90.3-1) ...
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/clamav-base.postinst 
configure ''
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
++ check_ucf
++ ucf -h
++ grep -q debconf-ok
++ echo ok
+ UCFVER=ok
+ case "$1" in
+ DATABASEDIR=/var/lib/clamav
+ RUNDIR=/var/run/clamav
+ LOGDIR=/var/log/clamav
+ '[' -z '' ']'
++ getent passwd clamav
+ '[' -z '' ']'
+ adduser --system --no-create-home --disabled-password --disabled-login 
--shell /bin/false --group --home /var/lib/clamav clamav
Adding system user `clamav' (UID 104) ...
Adding new group `clamav' (GID 105) ...
Adding new user `clamav' (UID 104) with group `clamav' ...
Not creating home directory `/var/lib/clamav'.
+ chown clamav:clamav /var/lib/clamav
+ chown clamav:clamav /var/run/clamav
+ chown clamav:clamav /var/log/clamav
+ '[' -f /etc/aliases ']'
+ grep -qi '^clamav' /etc/aliases
+ echo 'clamav: root'
++ which newaliases
+ newal=
dpkg: error processing clamav-base (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 clamav-base
-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED]             GPG: 1024D/023B3F4F |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to