Results 1 to 5 of 5

Thread: Remove An Application complety

  1. #1
    Join Date
    Feb 2008
    Location
    Malta
    Beans
    126
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Remove An Application complety

    Hi,

    I installed:

    Code:
    aptitude install courier-base courier-authdaemon courier-authlib-mysql courier-imap courier-imap-ssl courier-ssl
    However, i made some screw ups in the config... and deleted the /etc/courier config files..

    However, now when i try to install it... it is looking for those configuration files:

    Code:
    Do you want to continue [Y/n]? Y
    (Reading database ... 47115 files and directories currently installed.)
    Removing courier-imap ...
     * ERR: /usr/sbin/couriertcpd missing
    invoke-rc.d: initscript courier-imap, action "stop" failed.
    dpkg: error processing courier-imap (--purge):
     subprocess pre-removal script returned error exit status 1
     * ERR: /usr/sbin/couriertcpd missing
    invoke-rc.d: initscript courier-imap, action "start" failed.
    dpkg: error while cleaning up:
     subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
     courier-imap
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Is there any way to tell apt-get to install from scratch?? to re create the configuration files once again?

    thanks!

  2. #2
    Join Date
    Jan 2008
    Location
    the space between spaces.
    Beans
    1,654

    Re: Remove An Application complety

    us
    Code:
    e
    sudo apt-get uninstall --purge appname
    and just replace appname with the name of the app. That should do it.

  3. #3
    Join Date
    Feb 2008
    Location
    Malta
    Beans
    126
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Remove An Application complety

    I tried purging already... however get the same problem :S

  4. #4
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: Remove An Application complety

    Edit the post-installation file:

    Code:
    sudo gedit /var/lib/dpkg/info/courier-imap.postinst
    then try adding exit 1 at the top of your opened file and save.

    Then purge courier-imap

    Code:
    sudo apt-get remove --purge courier-imap
    and reinstall courier-imap again

    Code:
    apt-get install courier-imap
    Hope this could work in your case.
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  5. #5
    Join Date
    Feb 2008
    Location
    Malta
    Beans
    126
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Remove An Application complety

    Came across that one... however still no luck... gonna try compile it a purge it...

    Thanks!

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
  •