Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Can't purge, and can't reinstall dansguardian - help!

  1. #1
    Join Date
    Jan 2006
    Beans
    173
    Distro
    Ubuntu 9.10 Karmic Koala

    Can't purge, and can't reinstall dansguardian - help!

    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?
    pianoboy3333

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Can't purge, and can't reinstall dansguardian - help!

    This may help with your prblem. Go to System-->Administration-->Synaptic Package Manager-->Edit-->Fix broken packages.

    Jim

  3. #3
    Join Date
    Jan 2006
    Beans
    173
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't purge, and can't reinstall dansguardian - help!

    Quote Originally Posted by cariboo907 View Post
    This may help with your prblem. Go to System-->Administration-->Synaptic Package Manager-->Edit-->Fix broken packages.

    Jim
    It doesn't help because the package isn't under the broken filter...
    pianoboy3333

  4. #4
    Join Date
    Jan 2006
    Beans
    173
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't purge, and can't reinstall dansguardian - help!

    bump
    pianoboy3333

  5. #5
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Can't purge, and can't reinstall dansguardian - help!

    Try :

    sudo dpkg --remove --force-remove-reinstreq dansguardian
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  6. #6
    Join Date
    Jan 2008
    Beans
    11

    Re: Can't purge, and can't reinstall dansguardian - help!

    I'm having the same issue, doesn't matter what I try to install or remove or upgrade, nothing shows up in broken packages.

    whenever i try to install anything via apt-get or aptitude or the package manager i get something along the lines of...

    Code:
    Setting up initramfs-tools (0.85eubuntu39.1) ...
    cp: cannot create regular file `/etc/initramfs-tools/': Is a directory
    dpkg: error processing initramfs-tools (--configure):
     subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
     initramfs-tools
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    been searching forums after forums with now luck at all.

    please any advice would be awesome, very strange why it stopped working.

  7. #7
    Join Date
    Jan 2006
    Beans
    173
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't purge, and can't reinstall dansguardian - help!

    Quote Originally Posted by bodhi.zazen View Post
    Try :

    sudo dpkg --remove --force-remove-reinstreq dansguardian
    didn't work:
    Code:
    $ sudo dpkg --remove --force-remove-reinstreq dansguardian
    [sudo] password for alex:
    dpkg - warning, overriding problem because --force enabled:
     Package is in a very bad inconsistent state - you should
     reinstall it before attempting a removal.
    (Reading database ... 165592 files and directories currently installed.)
    Removing dansguardian ...
    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 dansguardian (--remove):
     subprocess 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:
     dansguardian
    pianoboy3333

  8. #8
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Can't purge, and can't reinstall dansguardian - help!

    Code:
    sudo dpkg --purge --force-all dansguardian
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #9
    Join Date
    Jan 2006
    Beans
    173
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't purge, and can't reinstall dansguardian - help!

    Quote Originally Posted by bodhi.zazen View Post
    Code:
    sudo dpkg --purge --force-all dansguardian
    same error:
    Code:
    $ sudo dpkg --purge --force-all dansguardian
    [sudo] password for alex:
    dpkg - warning, overriding problem because --force enabled:
     Package is in a very bad inconsistent state - you should
     reinstall it before attempting a removal.
    (Reading database ... 165592 files and directories currently installed.)
    Removing dansguardian ...
    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 dansguardian (--purge):
     subprocess 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:
     dansguardian
    pianoboy3333

  10. #10
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Can't purge, and can't reinstall dansguardian - help!

    Lets see if we can fool it then

    Code:
    sudo mdkir -P /etc/dansguardian/blacklists/ads/
    
    # If the forst command give you an error, keep going ...
    
    sudo touch /etc/dansguardian/blacklists/ads/urls
    sudo touch /etc/dansguardian/dansguardianf1.conf
    
    sudo dpkg --purge --force-all dansguardian
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •