TCSnyder
October 9th, 2008, 05:15 AM
I was installing dansguardian and the gui tool for it and apt-get stopped working. i restarted my computer after about 10 min ( probably caused the problem) and now i cannot remove dansguardian and it doesnt work.
sudo apt-get remove dansguardian
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
clamav clamav-freshclam clamav-base libclamav2 libclamav3 libgmp3c2
libesmtp5
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
dansguardian
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 1536kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing dansguardian (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
dansguardian
E: Sub-process /usr/bin/dpkg returned an error code (1)
then i cant install it again
Synaptic' message is cut off. i try to uninstall it and it says
"E: dansguardian: Package is in a very bad inconsistent state - you should"
but the details of Synaptic tell me to reinstall it before trying to remove it, but i cannot select reinstall in synaptic.
it has an update but it fails and says to reinstall it. so my best guess was to
sudo apt-get install dansguardian
sudo apt-get install dansguardian
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libclamav2
Use 'apt-get autoremove' to remove them.
Suggested packages:
squid
The following packages will be upgraded:
dansguardian
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/295kB of archives.
After this operation, 16.4kB of additional disk space will be used.
Selecting previously deselected package dansguardian.
(Reading database ... 150938 files and directories currently installed.)
Preparing to replace dansguardian 2.8.0.6-antivirus-6.4.4.1-4build1~gutsy2 (using .../dansguardian_2.8.0.6-antivirus-6.4.4.1-4build1_i386.deb) ...
Stopping DansGuardian: dansguardian.
/etc/init.d/dansguardian: 71: /usr/local/apps/parental-control/./dansguardian_log.pl: not found
invoke-rc.d: initscript dansguardian, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
Stopping DansGuardian: dansguardian.
/etc/init.d/dansguardian: 71: /usr/local/apps/parental-control/./dansguardian_log.pl: not found
invoke-rc.d: initscript dansguardian, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/dansguardian_2.8.0.6-antivirus-6.4.4.1-4build1_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
Starting DansGuardian: LibClamAV Warning: ************************************************** *********
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ************************************************** *********
Error connecting to parent proxy
invoke-rc.d: initscript dansguardian, action "start" failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/dansguardian_2.8.0.6-antivirus-6.4.4.1-4build1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
it also does not show up in the broken libraries. i dunno what to do.
sudo apt-get remove dansguardian
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
clamav clamav-freshclam clamav-base libclamav2 libclamav3 libgmp3c2
libesmtp5
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
dansguardian
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 1536kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing dansguardian (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
dansguardian
E: Sub-process /usr/bin/dpkg returned an error code (1)
then i cant install it again
Synaptic' message is cut off. i try to uninstall it and it says
"E: dansguardian: Package is in a very bad inconsistent state - you should"
but the details of Synaptic tell me to reinstall it before trying to remove it, but i cannot select reinstall in synaptic.
it has an update but it fails and says to reinstall it. so my best guess was to
sudo apt-get install dansguardian
sudo apt-get install dansguardian
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libclamav2
Use 'apt-get autoremove' to remove them.
Suggested packages:
squid
The following packages will be upgraded:
dansguardian
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/295kB of archives.
After this operation, 16.4kB of additional disk space will be used.
Selecting previously deselected package dansguardian.
(Reading database ... 150938 files and directories currently installed.)
Preparing to replace dansguardian 2.8.0.6-antivirus-6.4.4.1-4build1~gutsy2 (using .../dansguardian_2.8.0.6-antivirus-6.4.4.1-4build1_i386.deb) ...
Stopping DansGuardian: dansguardian.
/etc/init.d/dansguardian: 71: /usr/local/apps/parental-control/./dansguardian_log.pl: not found
invoke-rc.d: initscript dansguardian, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
Stopping DansGuardian: dansguardian.
/etc/init.d/dansguardian: 71: /usr/local/apps/parental-control/./dansguardian_log.pl: not found
invoke-rc.d: initscript dansguardian, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/dansguardian_2.8.0.6-antivirus-6.4.4.1-4build1_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
Starting DansGuardian: LibClamAV Warning: ************************************************** *********
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ************************************************** *********
Error connecting to parent proxy
invoke-rc.d: initscript dansguardian, action "start" failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/dansguardian_2.8.0.6-antivirus-6.4.4.1-4build1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
it also does not show up in the broken libraries. i dunno what to do.