Find the answer to your Linux question:
Results 1 to 5 of 5
E: /var/cache/apt/archives/proftpd_1.2.10-22_i386.deb: subprocess new pre-removal script returned error exit status 100 Any ideas how to fix this?...
  1. #1
    Just Joined!
    Join Date
    Aug 2004
    Posts
    92

    Problems with synaptic, cant uninstall, nor reinstall an application.

    E: /var/cache/apt/archives/proftpd_1.2.10-22_i386.deb: subprocess new pre-removal script returned error exit status 100

    Any ideas how to fix this?

  2. #2
    Just Joined!
    Join Date
    Aug 2004
    Posts
    92
    More info


    I get the error

    Code:
    E: /var/cache/apt/archives/proftpd_1.2.10-22_i386.deb: subprocess new pre-removal script returned error exit status 100
    When I try to remove, or re install proftpd via synaptic. Any tips how to fix this?

    Code:
    Preconfiguring packages ...
    (Reading database ... 56961 files and directories currently installed.)
    Preparing to replace proftpd 1.2.10-22 (using .../proftpd_1.2.10-22_i386.deb) ...
    invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
    dpkg: warning - old pre-removal script returned error exit status 100
    dpkg - trying script from the new package instead ...
    invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
    dpkg: error processing /var/cache/apt/archives/proftpd_1.2.10-22_i386.deb (--unpack):
     subprocess new pre-removal script returned error exit status 100
    And then I try apt-get remove proftpd and I get the error

    Code:
    Reading package lists... Done
    Building dependency tree... Done
    The following packages will be REMOVED:
      proftpd proftpd-common
    0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
    Need to get 0B of archives.
    After unpacking 1507kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 56960 files and directories currently installed.)
    Removing proftpd ...
    invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
    dpkg: error processing proftpd (--remove):
     subprocess pre-removal script returned error exit status 100
    dpkg: proftpd-common: dependency problems, but removing anyway as you request:
     proftpd depends on proftpd-common (= 1.2.10-22).
    Removing proftpd-common ...
    Errors were encountered while processing:
     proftpd
    E: Sub-process /usr/bin/dpkg returned an error code (1

  3. #3
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    you might try running
    Code:
    apt-get -f install
    Brilliant Mediocrity - Making Failure Look Good

  4. #4
    Just Joined!
    Join Date
    Aug 2006
    Posts
    2
    Read this: http://www.debian-administration.org/articles/251

    cd /var/lib/dpkg/info
    Find the offending script - in my case, it was:
    lighttpd.prerm
    Edit script to taste - debian says comment out set -e, but in my case I needed to edit out entire script
    Proceed - should run, or there may be other debris.

  5. #5
    Just Joined!
    Join Date
    Oct 2005
    Posts
    2

    Thumbs up Thank you tllucero

    I was pulling my hair out until I googled up this post.
    Man, you save my butt with the link to: http://www.debian-administration.org/articles/251

    Hey, love ya
    fireboy

    Old 09-24-2006 #4 (permalink)
    tllucero
    Just Joined!


    Join Date: Aug 2006
    Posts: 2
    Read this: http://www.debian-administration.org/articles/251

    cd /var/lib/dpkg/info
    Find the offending script - in my case, it was:
    lighttpd.prerm
    Edit script to taste - debian says comment out set -e, but in my case I needed to edit out entire script
    Proceed - should run, or there may be other debris.

Posting Permissions

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