Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

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

  1. #11
    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
    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
    mkdir -P doesn't exist - what's P supposed to do?

    sudo touch /etc/dansguardian/blacklists/ads/urls didn't work, the second touch command did but then the dpkg command ended up just as the other did before
    Last edited by pianoboy3333; August 8th, 2008 at 01:02 AM.
    pianoboy3333

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

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

    the -P is make parent directories, and it is -p (small p), my mistake lol

    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

  3. #13
    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
    the -P is make parent directories, and it is -p (small p), my mistake lol

    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
    still not working...
    Code:
    $ sudo mdkir -p /etc/dansguardian/blacklists/ads/
    [sudo] password for alex:
    sudo: mdkir: command not found
    alex@dell9150:~$ sudo mkdir -p /etc/dansguardian/blacklists/ads/
    alex@dell9150:~$ sudo touch /etc/dansguardian/blacklists/ads/urls
    alex@dell9150:~$ sudo touch /etc/dansguardian/dansguardianf1.conf
    alex@dell9150:~$ sudo dpkg --purge --force-all dansguardian
    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/adult/urls
    Error reading file: /etc/dansguardian/blacklists/adult/urls
    Error opening file:/etc/dansguardian/blacklists/adult/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

  4. #14
    Join Date
    Apr 2008
    Location
    United Kingdom
    Beans
    84
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    Looks to me like it's not removing because the init script is broken. Try
    Code:
    sudo touch /etc/init.d/dansguardian
    Edit:
    And then of course:
    Code:
    sudo dpkg --purge --force-all dansguardian

  5. #15
    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 damoxc View Post
    Looks to me like it's not removing because the init script is broken. Try
    Code:
    sudo touch /etc/init.d/dansguardian
    Edit:
    And then of course:
    Code:
    sudo dpkg --purge --force-all dansguardian
    Still a no-go
    Code:
    $ sudo touch /etc/init.d/dansguardian
    $ sudo dpkg --purge --force-all dansguardian
    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/adult/urls
    Error reading file: /etc/dansguardian/blacklists/adult/urls
    Error opening file:/etc/dansguardian/blacklists/adult/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

  6. #16
    Join Date
    Apr 2008
    Location
    United Kingdom
    Beans
    84
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    hmm, ok try:
    Code:
    nano /etc/init.d/dansguardian
    and stick `exit 0` on the first line. This will guarantee a successful return so the script won't fail and dpkg will think it's stopped and it should remove then. The init script is what's causing the issue.

  7. #17
    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 damoxc View Post
    hmm, ok try:
    Code:
    nano /etc/init.d/dansguardian
    and stick `exit 0` on the first line. This will guarantee a successful return so the script won't fail and dpkg will think it's stopped and it should remove then. The init script is what's causing the issue.
    bingo! Thank you all for helping me, the problem is now solved.
    pianoboy3333

Page 2 of 2 FirstFirst 12

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
  •