Gott zum Gruße!
Ich habe ein Problem mit Clamav, das läuft seit geraumer Zeit nicht mehr.
Beim Versuch es zu deinstallieren um es anschließend neu installieren zu können erhalte ich nun folgende Fehlermeldung:
www:/test# apt-get remove clamav
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
clamav
0 packages upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
2 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 1348kB will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 26338 files and directories currently installed.)
Removing clamav ...
Setting up clamav-freshclam (0.80-2) ...
Starting clamav virus database updater: freshclamERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger.
invoke-rc.d: initscript clamav-freshclam, action "start" failed.
dpkg: error processing clamav-freshclam (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
clamav-freshclam
E: Sub-process /usr/bin/dpkg returned an error code (1)
Beim Versuch es zu installieren die folgende:
www:/test# apt-get install clamav
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
clamav
0 packages upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
1 packages not fully installed or removed.
Need to get 0B/573kB of archives. After unpacking 1348kB will be used.
Selecting previously deselected package clamav.
(Reading database ... 26196 files and directories currently installed.)
Unpacking clamav (from .../clamav_0.80-2_i386.deb) ...
Setting up clamav-freshclam (0.80-2) ...
Starting clamav virus database updater: freshclamERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger.
invoke-rc.d: initscript clamav-freshclam, action "start" failed.
dpkg: error processing clamav-freshclam (--configure):
subprocess post-installation script returned error exit status 1
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-freshclam
clamav
E: Sub-process /usr/bin/dpkg returned an error code (1)
Wie kann ich Clamav (inkl. freshclam und co) manuell deinstallieren bzw. was kann ich tun?
Clamav In-/Deinstallation
EntwederDerMoench hat geschrieben:Wenn ich apt-get remove --purge clamav_0.80-2_i386.deb eingeben sagt er mir, dass er das package nicht finden kann.
In /var/cache/apt/archives liegt es aber.
apt-get remove --purge clamav
oder
dpkg -r --purge clamav
man braucht das ".deb" hinten nur anhängen wenn man mit dpkg -i ein Paket installiert.
btw welche Debian Version nutzt Du?
Gruß Athlux
Ich habe Linux version 2.4.24 (root@debian) (gcc version 2.95.4 20011002 (Debian prerelease)). Es ist nen root-server von http://www.serverflex.de ... außerdem läuft Confixx2
Wenn ich's so mache wie oben beschrieben erhalte ich die gleiche Fehlermeldung:
www:/# apt-get remove --purge clamav
Reading Package Lists... Done
Building Dependency Tree... Done
Package clamav is not installed, so not removed
0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up clamav-freshclam (0.80-2) ...
Starting clamav virus database updater: freshclamERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger.
invoke-rc.d: initscript clamav-freshclam, action "start" failed.
dpkg: error processing clamav-freshclam (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
clamav-freshclam
E: Sub-process /usr/bin/dpkg returned an error code (1)
oder diese hier:
www:/# dpkg -r --purge clamav
dpkg: conflicting actions --purge and --remove
Type dpkg --help for help about installing and deinstalling packages [*];
Use dselect for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --licence for copyright licence and lack of warranty (GNU GPL) [*].
Options marked [*] produce a lot of output - pipe it through `less' or `more' !
www:/# dpkg --purge clamav
dpkg - warning: ignoring request to remove clamav which isn't installed.
www:/# dpkg -r clamav
dpkg - warning: ignoring request to remove clamav which isn't installed.
www:/#[/b]
Wenn ich's so mache wie oben beschrieben erhalte ich die gleiche Fehlermeldung:
www:/# apt-get remove --purge clamav
Reading Package Lists... Done
Building Dependency Tree... Done
Package clamav is not installed, so not removed
0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up clamav-freshclam (0.80-2) ...
Starting clamav virus database updater: freshclamERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger.
invoke-rc.d: initscript clamav-freshclam, action "start" failed.
dpkg: error processing clamav-freshclam (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
clamav-freshclam
E: Sub-process /usr/bin/dpkg returned an error code (1)
oder diese hier:
www:/# dpkg -r --purge clamav
dpkg: conflicting actions --purge and --remove
Type dpkg --help for help about installing and deinstalling packages [*];
Use dselect for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --licence for copyright licence and lack of warranty (GNU GPL) [*].
Options marked [*] produce a lot of output - pipe it through `less' or `more' !
www:/# dpkg --purge clamav
dpkg - warning: ignoring request to remove clamav which isn't installed.
www:/# dpkg -r clamav
dpkg - warning: ignoring request to remove clamav which isn't installed.
www:/#[/b]
DerMoench hat geschrieben:Weis echt niemand Rat ?
Möglichkeit 1
Mal die Rechte überprüfen
die "sollten" so sein. (Hab Ich grad nur aus der clamav mailinglist - also bin mir nicht sicher ob das so passt)
drwxrwxr-x 2 clamav clamav 4096 Oct 17 18:13 /var/log/clamav
-rw-r--r-- 1 clamav logs 768 Oct 17 18:46 /var/log/clamav/freshclam.log
ein chmod o+x /var/log schadet auch nicht.
Dann mit apt-get install clamav installieren
Möglichkeit 2
cd /var/cache/apt/archives
dpkg -i --force-all clamav_0.80-2_i386.deb
dann das Paket wieder mit apt-get remove --purge clamav deinstallieren
und frisch mit apt-get install clamav draufspielen
Das könnte auch klappen
dpkg -i --force-confnew clamav_0.80-2_i386.deb
Möglichkeit 3
ClamAV autostart ausschalten
sollte es eine /etc/default/clamav geben Ansonsten mal am initscript das starten von clamav unterbinden. Kenne leider die Konfig nicht
mit apt-get install clamav normal installieren. Da Er jetzt nicht Startet sollte kein Fehler kommen und es wird installiert.
Dann trotzdem das paket mit purge entfernen und neuinstallieren.
Gruß Athlux