package clamav-freshclam 0.96.5 dfsg-1ubuntu1.10.04.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #732645 reported by Ron Edwards
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
clamav (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: clamav

Error appears after every update.

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: clamav-freshclam 0.96.5+dfsg-1ubuntu1.10.04.2
ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
Uname: Linux 2.6.32-27-generic i686
Architecture: i386
Date: Thu Mar 10 09:03:36 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
SourcePackage: clamav
Title: package clamav-freshclam 0.96.5+dfsg-1ubuntu1.10.04.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Revision history for this message
Ron Edwards (edwardsron) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

The key error in the dpkg log is
  chown: invalid group: `clamav:adm'
  dpkg: error processing clamav-freshclam (--configure):
   subprocess installed post-installation script returned error exit status 1
  dpkg: dependency problems prevent configuration of clamav:

It would be useful if you could provide your '/etc/clamav/clamd.conf', or anything you might have done that would make that user not exist on upgrade.

Changed in clamav (Ubuntu):
status: New → Incomplete
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 732645] Re: package clamav-freshclam 0.96.5 dfsg-1ubuntu1.10.04.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

The error is related to the group "adm", not the clamav user. The Ubuntu
clamav packages use clamav group, so something's been modified.

Revision history for this message
Ron Edwards (edwardsron) wrote :
  • clamd.conf Edit (1.5 KiB, text/plain; name="clamd.conf"; charset="UTF-8")

On Thu, 2011-03-10 at 16:07 +0000, Scott Moser wrote:
> The key error in the dpkg log is
> chown: invalid group: `clamav:adm'
> dpkg: error processing clamav-freshclam (--configure):
> subprocess installed post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of clamav:
>
>
> It would be useful if you could provide your '/etc/clamav/clamd.conf', or anything you might have done that would make that user not exist on upgrade.
>
> ** Changed in: clamav (Ubuntu)
> Status: New => Incomplete
>

Chuck Short (zulcss)
Changed in clamav (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Imre Gergely (cemc) wrote :

It seems like for example the /var/log/clamav/freshclam.log file is created by default (by .postinst script) with the 'adm' group.

root@utest-mms32:/var/lib/dpkg/info# grep adm clamav-freshclam.postinst
      echo " create 640 $User adm" >> $DEBROTFILE
      chown "$User":adm "$udlogfile"
  chown "$dbowner":adm $FRESHCLAMLOGFILE
  chown "$dbowner":adm $FRESHCLAMCONFFILE

But the 'adm' group should exist by default, it's not created by any clamav package. Possibly it was removed from that system, or something else happened outside clamav. I don't think this is a clamav bug (or maybe it is in the sense of .postinst script assuming - and not checking - there is an 'adm' group).

@Ron: please check what happened to the 'adm' group.

Changed in clamav (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for clamav (Ubuntu) because there has been no activity for 60 days.]

Changed in clamav (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.