package clamav-freshclam failed to install/upgrade during 9.04 upgrade

Bug #378833 reported by DaveM
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
clamav (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: clamav

It seems to be related to pam_mount which I have installed. I noticed that the install earlier replaced /etc/pam.d/login

I get a message like this on the console during the upgrade:

* Starting ClamAV virus database updater freshclam
re-enter password for pam_mount:

It just hangs there like that, entering a password makes no difference, I end up having to Ctrl-C out of it.

I did apt-get remove clamav-freshclam clamav

That at least allowed me to do dpkg --configure -a without the above problem occuring. I will now reboot and see what happens.

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage:
 ErrorMessage: subprocess post-installation script killed by signal (Interrupt)
NonfreeKernelModules: fglrx
Package: clamav-freshclam 0.95.1+dfsg-1ubuntu1.2
SourcePackage: clamav
Title: package clamav-freshclam 0.95.1+dfsg-1ubuntu1.2 failed to install/upgrade:
Uname: Linux 2.6.27-11-generic i686

Revision history for this message
DaveM (davidmartin-ntlworld) wrote :
description: updated
description: updated
description: updated
Revision history for this message
Scott Kitterman (kitterman) wrote :

This isn't a clamav bug. If you've configured your system to need a password to acces some part of the file system, then that's where the problem is.

affects: clamav (Ubuntu) → ubuntu
Revision history for this message
DaveM (davidmartin-ntlworld) wrote : Re: [Bug 378833] Re: package clamav-freshclam failed to install/upgrade during 9.04 upgrade

Scott,

Thanks for the quick response.

It never used to do this, only since I did the version upgrade to ubuntu
9.04 yesterday.

I had to remove clamav just to be able to do apt-get --configure -a

I just tried to reinstall dansguardian with the dependency on clamav
now, and this is what I got:

dave@ourbox:~$ sudo apt-get install dansguardian
[sudo] password for dave:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  linux-headers-2.6.27-7 linux-headers-2.6.27-7-generic dkms patch
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  clamav clamav-base clamav-freshclam libclamav6 libtommath0
Suggested packages:
  clamav-docs squid libclamunrar6
The following NEW packages will be installed
  clamav clamav-base clamav-freshclam dansguardian libclamav6 libtommath0
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/23.0MB of archives.
After this operation, 26.5MB of additional disk space will be used.
Do you want to continue [Y/n]?
Preconfiguring packages ...
Selecting previously deselected package libtommath0.
(Reading database ... 188931 files and directories currently installed.)
Unpacking libtommath0 (from .../libtommath0_0.39-3_i386.deb) ...
Selecting previously deselected package libclamav6.
Unpacking libclamav6 (from
.../libclamav6_0.95.1+dfsg-1ubuntu1.2_i386.deb) ...
Selecting previously deselected package clamav-base.
Unpacking clamav-base (from
.../clamav-base_0.95.1+dfsg-1ubuntu1.2_all.deb) ...
Selecting previously deselected package clamav-freshclam.
Unpacking clamav-freshclam (from
.../clamav-freshclam_0.95.1+dfsg-1ubuntu1.2_i386.deb) ...
Selecting previously deselected package clamav.
Unpacking clamav (from .../clamav_0.95.1+dfsg-1ubuntu1.2_i386.deb) ...
Selecting previously deselected package dansguardian.
Unpacking dansguardian (from .../dansguardian_2.9.9.7-2ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up libtommath0 (0.39-3) ...

Setting up libclamav6 (0.95.1+dfsg-1ubuntu1.2) ...

Setting up clamav-base (0.95.1+dfsg-1ubuntu1.2) ...

Setting up clamav-freshclam (0.95.1+dfsg-1ubuntu1.2) ...
 * Reloading AppArmor profiles ...
[ OK ]
 * Starting ClamAV virus database updater
freshclam reenter password for pam_mount:

As before, entering the password I think it is looking for just echoes
to the console without actually doing anything, I just have to ctrl-c.
Anyway, why would it need to mount any volume not already mounted just
to update its database? I'm running the full gui, the only volumes not
mounted are arbitrary data volumes.

Regards,
Dave

Scott Kitterman wrote:
> This isn't a clamav bug. If you've configured your system to need a
> password to acces some part of the file system, then that's where the
> problem is.
>
> ** Package changed: clamav (Ubuntu) => ubuntu
>
>

Revision history for this message
DaveM (davidmartin-ntlworld) wrote :

Furthermore I can't install dansguardian any longer, even though I have
virusscan=off, because of the dependency it has on clamav, and in turn
clamav-freshclam which seems to be causnig the trouble. I also tried
mounting everything controlled by pam_mount before installing, it didn't
help.

Scott Kitterman wrote:
> This isn't a clamav bug. If you've configured your system to need a
> password to acces some part of the file system, then that's where the
> problem is.
>
> ** Package changed: clamav (Ubuntu) => ubuntu
>
>

Revision history for this message
DaveM (davidmartin-ntlworld) wrote :

Just installed an old version of clamav no probs:

dave@ourbox:~/Desktop$ sudo dpkg -i clamav-freshclam_0.90.1dfsg-4etch16_i386.deb
(Reading database ... 189792 files and directories currently installed.)
Preparing to replace clamav-freshclam 0.90.1dfsg-4etch16 (using clamav-freshclam_0.90.1dfsg-4etch16_i386.deb) ...
Unpacking replacement clamav-freshclam ...
Setting up clamav-freshclam (0.90.1dfsg-4etch16) ...
Installing new version of config file /etc/logcheck/ignore.d.server/clamav-freshclam ...
Installing new version of config file /etc/init.d/clamav-freshclam ...
Replacing config file /etc/clamav/freshclam.conf with new version
 * Starting ClamAV virus database updater freshclam [ OK ]

Processing triggers for man-db ...

Are you so sure now its not clamav?

affects: ubuntu → clamav (Ubuntu)
Revision history for this message
Imre Gergely (cemc) wrote :

freshclam downloads and writes files in /var/lib/clamav, and writes in /var/log/clamav/freshclam.log, uses config files from /etc/clamav, and writes pid file in /var/run/clamav, but (AFAIK) it doesn't mount anything (at least not the init.d script itself).

You could try adding a "set -x" after the first line in the init script, and run it like that, to see where exactly it hangs. This will produce a lot of output, it will show you every command which gets run run from the script, maybe it will give you/us a clue where it happens.

Changed in clamav (Ubuntu):
status: New → Incomplete
Revision history for this message
DaveM (davidmartin-ntlworld) wrote :

OK I installed an old version of clamav and its dependencies and forced the versions in synaptic, so I could reinstall dansguardian. I will undo that and do the set -x in the init script and see what it does when I have the time and inclination, and post the results back here.

Revision history for this message
sandoz (sandoz) wrote :

I had the same problem:

During a CD upgrade from Intrepid to Jaunty a postinst script of clamav trigger the message:

   freshclam reenter password for pam_mount:

During CD upgrade it's even worse since CTRL+C would stop the whole upgrade process leaving your system in a possibly unstable situation.

I had to kill the right process in a different shell to continue the upgrade.
On the next boot up I got the same message so I deinstalled clamav.

I use pam_mount to open my encrypted home partition.

sandoz

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.