Hello, I tried to run apt-get upgrade and i get the following output in the cli:
ZitatAlles anzeigen/tmp/clamav-daemon.config.112921: 137: export: Illegal option --
clamav-daemon failed to preconfigure, with exit status 2
(Reading database ... 35841 files and directories currently installed.)
Preparing to replace clamav-daemon 0.98.7+dfsg-0+deb7u1 (using .../clamav-daemon _0.99+dfsg-0+deb7u2_amd64.deb) ...
/etc/init.d/clamav-daemon: 162: export: Illegal option --
invoke-rc.d: initscript clamav-daemon, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 2
dpkg: trying script from the new package instead ...
/etc/init.d/clamav-daemon: 162: export: Illegal option --
invoke-rc.d: initscript clamav-daemon, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/clamav-daemon_0.99+dfsg-0+deb7u2_ amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 2
/var/lib/dpkg/info/clamav-daemon.config: 136: export: Illegal option --
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
so i tried to remove clamav-daemon by apt-get -f remove clamav-daemon which gave me this output:
ZitatAlles anzeigenReading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
clamav-daemon
0 upgraded, 0 newly installed, 1 to remove and 15 not upgraded.
3 not fully installed or removed.
After this operation, 1,066 kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing clamav-daemon (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
clamav-daemon
Creating index of upgradeable packages ...
Creating index of openmediavault plugins ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
so i tried to reinstall clamav-daemon with apt-get install clamav-daemon which gave me this output:
ZitatAlles anzeigenReading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
clamav-daemon : Depends: clamav-base (= 0.99+dfsg-0+deb7u2) but it is not going to be installed
Depends: clamav-freshclam (>= 0.99+dfsg) but it is not going to be installed or
clamav-data
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
so i tried apt-get -f and i get this:
ZitatAlles anzeigenReading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
clamav-daemon : Depends: clamav-base (= 0.99+dfsg-0+deb7u2) but it is not going to be installed
Depends: clamav-freshclam (>= 0.99+dfsg) but it is not going to be installed or
clamav-data
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I'm not sure what is going on here. I have been trying every combination of apt-get -f remove, apt-get autoremove, apt-get -f autoremove, apt-get purge, apt-get -f purge imaginable and i still can't get rid of clamav. Any suggestions or a point in the direction of previous posts would be greatly appreciated. Thanks.
Brian