I don't need dansguardian anymore, but somehow the package broke, and I can't remove it:
Code:
$ sudo apt-get remove --purge dansguardian
[sudo] password for alex:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
guile-1.8 libxine1-x libxine1-misc-plugins libxcb-xv0 guile-1.8-libs libxcb1
libxcb-shape0 libxine1-gnome libxine1-plugins python-cups dbus-x11
libxcb-shm0 texinfo libntfs-3g12 libxine1-console libxine1
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
dansguardian*
0 upgraded, 0 newly installed, 1 to remove and 72 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 1536kB disk space will be freed.
Do you want to continue [Y/n]? Y
dpkg: error processing dansguardian (--purge):
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)
Code:
$ sudo apt-get install --reinstall dansguardian
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
guile-1.8 libxine1-x libxine1-misc-plugins libxcb-xv0 guile-1.8-libs libxcb1
libxcb-shape0 libxine1-gnome libxine1-plugins python-cups dbus-x11
libxcb-shm0 texinfo libntfs-3g12 libxine1-console libxine1
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
dansguardian
1 upgraded, 0 newly installed, 0 to remove and 72 not upgraded.
1 not fully installed or removed.
Need to get 0B/296kB of archives.
After unpacking 0B of additional disk space will be used.
Selecting previously deselected package dansguardian.
(Reading database ... 165593 files and directories currently installed.)
Preparing to replace dansguardian 2.8.0.6-antivirus-6.4.4.1-4 (using .../dansguardian_2.8.0.6-antivirus-6.4.4.1-4build1~gutsy2_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~gutsy2_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
Starting DansGuardian: Error reading file: /etc/dansguardian/blacklists/ads/urls
Error reading file: /etc/dansguardian/blacklists/ads/urls
Error opening file:/etc/dansguardian/blacklists/ads/urls
Error opening bannedurllist
Error opening filter list:/etc/dansguardian/dansguardianf1.conf
Error reading filter group conf file(s).
Error parsing the dansguardian.conf file or other DansGuardian configuration files
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~gutsy2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can anyone help me out?
Bookmarks