Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#431990: clamav-base: installation fails: Not creating home directory `/var/lib/clamav'.

2 views
Skip to first unread message

Stephen Gran

unread,
Jul 6, 2007, 10:40:07 AM7/6/07
to
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.
--
-----------------------------------------------------------------
| ,''`. Stephen Gran |
| : :' : sg...@debian.org |
| `. `' Debian user, admin, and developer |
| `- http://www.debian.org |
-----------------------------------------------------------------

signature.asc

Lucas Nussbaum

unread,
Jul 6, 2007, 11:00:16 AM7/6/07
to
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
| lu...@lucas-nussbaum.net http://www.lucas-nussbaum.net/ |
| jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F |


--
To UNSUBSCRIBE, email to debian-bugs...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Stephen Gran

unread,
Jul 6, 2007, 12:20:09 PM7/6/07
to
This one time, at band camp, Lucas Nussbaum said:
> On 06/07/07 at 16:01 +0100, Stephen Gran wrote:
> > This one time, at band camp, Lucas Nussbaum said:
> > > + 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
> >
> > aha. Can you modify the line:
> > if [ $newal ] && [ -x $newal ]; then
> > to be:
> > if [ -n "$newal" ] && [ -x "$newal" ]; then
> >
> > and let me know if it fixes it for you?
>
> No. Note that 'which newaliases' returns 1 if newaliases cannot be found.

Arg. Good catch. I see that for some reason I must have been
mistakenly thinking that the subshell would handle that, but clearly
not. So it should be

newal=`which newaliases || true`.

Will upload soon, and thanks,

signature.asc

Debian Bug Tracking System

unread,
Jul 9, 2007, 1:40:14 PM7/9/07
to
Your message dated Mon, 09 Jul 2007 17:32:04 +0000
with message-id <E1I7x5g-...@ries.debian.org>
and subject line Bug#431990: fixed in clamav 0.90.3-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Debian Bug Tracking System

unread,
Jul 24, 2007, 6:30:16 AM7/24/07
to
Your message dated Tue, 24 Jul 2007 12:20:10 +0200 (CEST)
with message-id <200707241020...@verdi.debian.org>
and subject line Bug#431990: fixed in clamav 0.91.1-1~volatile1

Debian Bug Tracking System

unread,
Jul 25, 2007, 8:30:15 PM7/25/07
to
Your message dated Thu, 26 Jul 2007 02:20:10 +0200 (CEST)
with message-id <200707260020...@verdi.debian.org>
and subject line Bug#431990: fixed in clamav 0.91.1-0volatile1
0 new messages