Spamassassin install errors

Chris cpollock at embarqmail.com
Fri Jul 18 05:15:50 UTC 2014


I again removed the SA I'd installed via CPAN and again attempted to
install the Ubuntu version from the repository


Preparing to unpack .../spamassassin_3.4.0-1ubuntu1_all.deb ...
Unpacking spamassassin (3.4.0-1ubuntu1) ...
Selecting previously unselected package sa-compile.
Preparing to unpack .../sa-compile_3.4.0-1ubuntu1_all.deb ...
Unpacking sa-compile (3.4.0-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up spamassassin (3.4.0-1ubuntu1) ...
Setting up sa-compile (3.4.0-1ubuntu1) ...
Running sa-compile (may take a long time)
plugin: failed to parse plugin /etc/spamassassin/clamav.pm: Can't locate
File/Scan/ClamAV.pm in @INC (you may need to install the
File::Scan::ClamAV module) (@INC
contains: /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl) at /etc/spamassassin/clamav.pm line 14.
BEGIN failed--compilation aborted at /etc/spamassassin/clamav.pm line
14.
Compilation failed in require
at /usr/share/perl5/Mail/SpamAssassin/PluginHandler.pm line 109.

rules: failed to run CLAMAV test, skipping:
	(Can't locate object method "check_clamav" via package
"Mail::SpamAssassin::PerMsgStatus" at (eval 1170) line 19.
)
sa-compile: not compiling; 'spamassassin --lint' check failed!
dpkg: error processing package sa-compile (--configure):
 subprocess installed post-installation script returned error exit
status 13
Errors were encountered while processing:
 sa-compile
Error in function: 
Setting up sa-compile (3.4.0-1ubuntu1) ...
Running sa-compile (may take a long time)
plugin: failed to parse plugin /etc/spamassassin/clamav.pm: Can't locate
File/Scan/ClamAV.pm in @INC (you may need to install the
File::Scan::ClamAV module) (@INC
contains: /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl) at /etc/spamassassin/clamav.pm line 14.
BEGIN failed--compilation aborted at /etc/spamassassin/clamav.pm line
14.
Compilation failed in require
at /usr/share/perl5/Mail/SpamAssassin/PluginHandler.pm line 109.

rules: failed to run CLAMAV test, skipping:
	(Can't locate object method "check_clamav" via package
"Mail::SpamAssassin::PerMsgStatus" at (eval 1171) line 19.
)
sa-compile: not compiling; 'spamassassin --lint' check failed!
dpkg: error processing package sa-compile (--configure):
 subprocess installed post-installation script returned error exit
status 13

So, I commented out the clamav.cf files in /etc/mail/spamassassin and
in /etc/spamassassin, removed and reinstalled (attempted)

Preparing to unpack .../spamassassin_3.4.0-1ubuntu1_all.deb ...
Unpacking spamassassin (3.4.0-1ubuntu1) ...
Selecting previously unselected package sa-compile.
Preparing to unpack .../sa-compile_3.4.0-1ubuntu1_all.deb ...
Unpacking sa-compile (3.4.0-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up spamassassin (3.4.0-1ubuntu1) ...
Setting up sa-compile (3.4.0-1ubuntu1) ...
Running sa-compile (may take a long time)
rules: failed to run CLAMAV test, skipping:
	(Can't locate object method "check_clamav" via package
"Mail::SpamAssassin::PerMsgStatus" at (eval 1170) line 19.
)
sa-compile: not compiling; 'spamassassin --lint' check failed!
dpkg: error processing package sa-compile (--configure):
 subprocess installed post-installation script returned error exit
status 13
Errors were encountered while processing:
 sa-compile
Error in function: 
Setting up sa-compile (3.4.0-1ubuntu1) ...
Running sa-compile (may take a long time)
rules: failed to run CLAMAV test, skipping:
	(Can't locate object method "check_clamav" via package
"Mail::SpamAssassin::PerMsgStatus" at (eval 1171) line 19.
)
sa-compile: not compiling; 'spamassassin --lint' check failed!
dpkg: error processing package sa-compile (--configure):
 subprocess installed post-installation script returned error exit
status 13

I'm getting burned out on this and my old head is aching. Would someone
tell me what I'm doing wrong, please.


Also shouldn't I just be able to start SA by typing:

service spamassassin start from a root terminal (opened as sudo -s)

Chris






More information about the ubuntu-users mailing list