While installing ClamAV dpkg returns an error

Bug #39853 reported by Pascal de Bruijn
84
Affects Status Importance Assigned to Milestone
clamav (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I got this from Synaptic while installing 'clamav' plus all it's dependancies:

E: clamav-base: subprocess post-installation script returned error exit status 1
E: clamav-freshclam: dependency problems - leaving unconfigured
E: clamav: dependency problems - leaving unconfigured

I'm currently on Dapper Drake.

Workaround: Reinstalling the packages seems to resolve the issue.

Related branches

description: updated
Revision history for this message
Vassilis Pandis (pandisv) wrote :

A new package was uploaded. Could you please try and see if this still happens?

Changed in clamav:
status: Unconfirmed → Needs Info
Revision history for this message
Stephan Rügamer (sruegamer) wrote :

Reporter: ping

Revision history for this message
Pascal de Bruijn (pmjdebruijn) wrote :

Like I already said, reinstalling the packages works around the problem, so I would need to do a new pristine install to check. So I'm not doing that any time soon, maybe after Dapper is released???

Revision history for this message
Mark Crutch (markc-qsiuk) wrote :

I have received the same error when upgrading from Breezy to Dapper using the Update Manager.

The error window shows:

Could not install 'clamav-base'
The upgrade aborts now. Please report this bug
subprocess post-installation script returned error exit status 1

However the rest of the upgrade does appear to be carrying on in the background as I type this.

Revision history for this message
Mark Crutch (markc-qsiuk) wrote :

An additional note: after clicking the close button on the dialogue, I also received the remaining errors that were in the original bug report.

Changed in clamav:
status: Needs Info → Confirmed
Revision history for this message
Vassilis Pandis (pandisv) wrote :

Apparently this is still an issue with current Edgy (and Dapper too though, I suppose). This is what I get on a fresh installation:

Setting up clamav-base (0.88.2-1ubuntu1) ...
Adding system user `clamav' with uid 109...
Adding new group `clamav' (115).
Adding new user `clamav' (109) 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
dpkg: dependency problems prevent configuration of clamav-freshclam:
 clamav-freshclam depends on clamav-base (= 0.88.2-1ubuntu1); however:
  Package clamav-base is not configured yet.
dpkg: error processing clamav-freshclam (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of clamav:
 clamav depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav (--configure):
 dependency problems - leaving unconfigured
Setting up unzoo (4.4-4) ...
Errors were encountered while processing:
 clamav-base
 clamav-freshclam
 clamav
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up clamav-base (0.88.2-1ubuntu1) ...

Setting up clamav-freshclam (0.88.2-1ubuntu1) ...
 * Starting ClamAV virus database updater freshclam [ ok ]

Setting up clamav (0.88.2-1ubuntu1) ...

Revision history for this message
Vassilis Pandis (pandisv) wrote :

As described originally, reinstalling goes OK.

Revision history for this message
Vassilis Pandis (pandisv) wrote :

I used aptitude to install them. Purging 'clamav' and reinstalling it is also trouble free.

Revision history for this message
Arthur Peters (amp) wrote :
Download full text (3.1 KiB)

I experience this problem on a new Edgy Eft install.

== Install log ==

amp@chrome:~/firmware$ sudo apt-get install clamav-freshclam clamav
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  clamav-base libclamav1 libgmp3c2
Suggested packages:
  unrar lha clamav-docs
Recommended packages:
  arj unzoo
The following NEW packages will be installed:
  clamav clamav-base clamav-freshclam libclamav1 libgmp3c2
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 6360kB of archives.
After unpacking 7520kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://archive.ubuntu.com edgy/main libgmp3c2 2:4.2.1+dfsg-2 [423kB]
Get:2 http://archive.ubuntu.com edgy/universe libclamav1 0.88.3-1ubuntu1 [265kB]
Get:3 http://archive.ubuntu.com edgy/universe clamav-base 0.88.3-1ubuntu1 [173kB]
Get:4 http://archive.ubuntu.com edgy/universe clamav-freshclam 0.88.3-1ubuntu1 [5433kB]
Get:5 http://archive.ubuntu.com edgy/universe clamav 0.88.3-1ubuntu1 [66.4kB]
Fetched 6360kB in 40s (159kB/s)
Preconfiguring packages ...
Selecting previously deselected package libgmp3c2.
(Reading database ... 91535 files and directories currently installed.)
Unpacking libgmp3c2 (from .../libgmp3c2_2%3a4.2.1+dfsg-2_i386.deb) ...
Selecting previously deselected package libclamav1.
Unpacking libclamav1 (from .../libclamav1_0.88.3-1ubuntu1_i386.deb) ...
Selecting previously deselected package clamav-base.
Unpacking clamav-base (from .../clamav-base_0.88.3-1ubuntu1_all.deb) ...
Selecting previously deselected package clamav-freshclam.
Unpacking clamav-freshclam (from .../clamav-freshclam_0.88.3-1ubuntu1_i386.deb) ...
Selecting previously deselected package clamav.
Unpacking clamav (from .../clamav_0.88.3-1ubuntu1_i386.deb) ...
Setting up libgmp3c2 (4.2.1+dfsg-2) ...

Setting up libclamav1 (0.88.3-1ubuntu1) ...

Setting up clamav-base (0.88.3-1ubuntu1) ...
Adding system user `clamav' with uid 110...
Adding new group `clamav' (115).
Adding new user `clamav' (110) 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
dpkg: dependency problems prevent configuration of clamav-freshclam:
 clamav-freshclam depends on clamav-base (= 0.88.3-1ubuntu1); however:
  Package clamav-base is not configured yet.
dpkg: error processing clamav-freshclam (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of clamav:
 clamav depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 clamav-base
 clamav-freshclam
 clamav
Running prelink, please wait...
E: Sub-process /usr/bin/dpkg returned an e...

Read more...

Revision history for this message
Vassilis Pandis (pandisv) wrote :

Can anybody reproduce this with 0.88.4-1ubuntu1 ? I can't ...

Revision history for this message
Scott Kitterman (kitterman) wrote :

Still occurs with 0.90~rc3 on Feisty

Revision history for this message
Scott Kitterman (kitterman) wrote :

I have just tried and failed to replicate this in a fresh Feisty chroot using clamav (0.90.1-1ubuntu2).

If someone could install clamav into a Feisty system that has never had any version of clamav installed before and see if this problem still occurs, it would be helpful. I don't have a box I can strip and install at the moment.

If the poblem does recurr, please report back here BEFORE you try to install a second time. I have some additional questions about the state of your system I'd like answered.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Could not be replicated with the current Feisty package (0.90.1-1ubuntu2).

Changed in clamav:
status: Confirmed → Fix Released
Revision history for this message
coderef3 (coderef3) wrote :

This error has been resolved on 386.. but it still exists on 7.04 amd64 (though the clamav-base package seems to be arch-independent. The post-installation script needs to be tested on an amd64 install.

-Arnie

Revision history for this message
Scott Kitterman (kitterman) wrote :

Sorry, it's still present on -386 too. I thought I'd reopened this bug a few days ago.

Changed in clamav:
status: Fix Released → Confirmed
Revision history for this message
kseise (kevin-seise) wrote :

I can verify it is still present on a fresh install of Feisty.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Anyone happening on this bug report ....

Before you try and install clamav again, please open a command line console and type:

sudo ls =l /var/run/clamav

and report here what you find. Thanks

Revision history for this message
Scott Kitterman (kitterman) wrote :

Correction. That should be:

sudo ls -l /var/run/clamav

Revision history for this message
hyapadi (hyapadi-myrealbox-deactivatedaccount-deactivatedaccount) wrote :

I tried to remove the clamav by doing :

sudo apt-get remove clamav

but I get the following message :

hyapadi@hyapadi-laptop:~$ sudo apt-get remove clamav
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package clamav is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up clamav-base (0.90.2-0ubuntu1) ...
chown: cannot access `/var/run/clamav': No such file or directory
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)

Can somebody help?

Revision history for this message
hyapadi (hyapadi-myrealbox-deactivatedaccount-deactivatedaccount) wrote :

hyapadi@hyapadi-laptop:~$ sudo ls -l /var/run/clamav
ls: /var/run/clamav: No such file or directory

Revision history for this message
Scott Kitterman (kitterman) wrote :

Thanks for the feedback. That is useful for helping get this fixed.

If you haven't already, try to install clamav-base again. It should succeed the second time.

sudo apt-get install clamav-base

Revision history for this message
Wietse Koopmans (wietse-koopmans-deactivatedaccount) wrote :

I just tried installing clamav on a fresh install of Feisty, the following error message was returned by synaptic:

Preconfiguring packages ...
Selecting previously deselected package libgmp3c2.
(Reading database ... 94303 files and directories currently installed.)
Unpacking libgmp3c2 (from .../libgmp3c2_2%3a4.2.1+dfsg-4build1_i386.deb) ...
Selecting previously deselected package libclamav2.
Unpacking libclamav2 (from .../libclamav2_0.90.2-0ubuntu1_i386.deb) ...
Selecting previously deselected package clamav-base.
Unpacking clamav-base (from .../clamav-base_0.90.2-0ubuntu1_all.deb) ...
Selecting previously deselected package clamav-freshclam.
Unpacking clamav-freshclam (from .../clamav-freshclam_0.90.2-0ubuntu1_i386.deb) ...
Selecting previously deselected package clamav.
Unpacking clamav (from .../clamav_0.90.2-0ubuntu1_i386.deb) ...
Setting up libgmp3c2 (4.2.1+dfsg-4build1) ...

Setting up libclamav2 (0.90.2-0ubuntu1) ...

Setting up clamav-base (0.90.2-0ubuntu1) ...
Adding system user `clamav' (UID 110) ...
Adding new group `clamav' (GID 119) ...
Adding new user `clamav' (UID 110) 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
dpkg: dependency problems prevent configuration of clamav-freshclam:
 clamav-freshclam depends on clamav-base (>= 0.90.2-0ubuntu1); however:
  Package clamav-base is not configured yet.
dpkg: error processing clamav-freshclam (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of clamav:
 clamav depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 clamav-base
 clamav-freshclam
 clamav
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up clamav-base (0.90.2-0ubuntu1) ...

Setting up clamav-freshclam (0.90.2-0ubuntu1) ...
 * Starting ClamAV virus database updater freshclam
   ...done.

Setting up clamav (0.90.2-0ubuntu1) ...

Revision history for this message
Wietse Koopmans (wietse-koopmans-deactivatedaccount) wrote :

sudo ls -l /var/run/clamav
total 4
-rw-rw---- 1 clamav clamav 4 2007-05-10 21:33 freshclam.pid

Revision history for this message
Scott Kitterman (kitterman) wrote :

Thank you for that.

sudo apt-get install clamav-base

should allow the install to finish.

Revision history for this message
Wolfgang Rupp (wolfgang-coredump) wrote :

On a fresh install of feisty/amd64 server, anything except clamav-base is
not installable. It clamac-freshclam, clamav-daemon, etc. fail with:

 The following packages have unmet dependencies:
   clamav: Depends: libclamav2 (>= 0.90.2) but it is not going to be installed
 E: Broken packages

I followed this further:
libclamav2 complains about libgmp3c2 being not installable.
libgmp3c2 has no installation candidate.

If i can help you, e.g. to try installation on a practically blank machine,
let me know.

Wolfgang

who is currently whacking his head against the table for
being stupid and installing 64bit on a machine that is needed
for work.

Revision history for this message
dcherryholmes (david-cherryholmes) wrote : Re: [Bug 39853] Re: While installing ClamAV dpkg returns an error

On 6/12/07, Wolfgang Rupp <email address hidden> wrote:
> On a fresh install of feisty/amd64 server, anything except clamav-base is
> not installable. It clamac-freshclam, clamav-daemon, etc. fail with:
>
> The following packages have unmet dependencies:
> clamav: Depends: libclamav2 (>= 0.90.2) but it is not going to be installed
> E: Broken packages
>
> I followed this further:
> libclamav2 complains about libgmp3c2 being not installable.
> libgmp3c2 has no installation candidate.
>
> If i can help you, e.g. to try installation on a practically blank machine,
> let me know.
>
> Wolfgang
>
> who is currently whacking his head against the table for
> being stupid and installing 64bit on a machine that is needed
> for work.

It's not just the 64 bit version. I just ran into the same thing on a
fresh 32 bit install of Feisty. Which I also had on Edgy. And also
had on Dapper. They have no right to even mention the word "server"
with a bug like this persisting across three releases.

--
David Cherryholmes

"Your effort to remain what you are is what limits you."
     -- The Puppet Master, Ghost In The Shell

Revision history for this message
Daniel Hahler (blueyed) wrote :

Wolfgang, what does "apt-cache policy libgmp3c2" display?

The package should be available, also on amd64: http://packages.ubuntu.com/feisty/libs/libgmp3c2

Revision history for this message
Wolfgang Rupp (wolfgang-coredump) wrote :

> Wolfgang, what does "apt-cache policy libgmp3c2" display?

Maybe this was fixed after the initial release? I have a machine hosted at easyspeedy.
When feisty main restricted points to the hoster's install server, I get:

# apt-cache policy libgmp3c2
libgmp3c2:
  Installed: (none)
  Candidate: (none)
  Version table:

When I point feisty main restricted to dk.archive.ubuntu.com I get:
# apt-cache policy libgmp3c2
libgmp3c2:
  Installed: (none)
  Candidate: 2:4.2.1+dfsg-4build1
  Version table:
     2:4.2.1+dfsg-4build1 0
        500 http://dk.archive.ubuntu.com feisty/main Packages

I will try the install now.

Wolfgang

Revision history for this message
Wolfgang Rupp (wolfgang-coredump) wrote :

clamav installed, and apart from complaining about an outdated engine, it works.

Wolfgang

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 39853] Re: While installing ClamAV dpkg returns an error

Whatever is going on is not this bug. This bug is about a freshclam
postinst bug the has existed long befor libclamav. If you are still having
problems please file a new bug and work it there.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Fix uploaded for Gutsy.

Changed in clamav:
status: Confirmed → Fix Committed
Revision history for this message
Scott Kitterman (kitterman) wrote :

clamav (0.90.3-1ubuntu2) gutsy; urgency=low

  * Stop clamav-base postinst from bailing out when which newaliases
    doesn't return anything (fix from Soren Hansen) (LP: #39853)

 -- Scott Kitterman <email address hidden> Wed, 27 Jun 2007 13:22:01 -0400

Changed in clamav:
status: Fix Committed → Fix Released
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.