December 22, 2006 · Package Mgmt · Email This Post
Share
{lang: 'en-GB'}

Some times you might see the following error message when you try to install any package using apt-get or synaptic
E: The package webmin needs to be reinstalled, but I can’t find an archive for it.

E: The package mfc8500lpr needs to be reinstalled, but I can’t find an archive for it.

This error might be with any package in the above examples webmin and mfc8500lpr packages this error mostly occour when you try to install a debian package in to ubuntu system

Error

E: The package package name needs to be reinstalled, but I can’t find an archive for it.

Package name in the above error could be any package

Solution

Run the following command

For webmin Pakage

dpkg --remove --force-remove-reinstreq webmin

You can replace webmin to any of your package name which is giving the error

Share

Related posts

42 Comments to “Package Installation error and solution”

  1. Hi guys, I’m in linux Lucid Lynx and i was trying to install java jre 6 in the synaptic center, but my laptop ran out of battery and I get the problem that you have mentioned up there, but when I’m trying to remove by ‘sudo dpgk --force-remove-reinsreq ‘ I get this

    dpkg: error processing openjdk-6-jre (--remove): subprocess installed post-removal script returned error exit status 2

    So, i’m unavailable to do what you have already said… Do you have any ideas? I’m not that expert to go and erase the files directly from de / directory

    Regards,

    Felipe.

    [Reply]

  2. Bouke says:

    Hey thanks!
    I had this problem with package skype just yet, and your solution still works on Kubuntu maverick!

    [Reply]

  3. Josh says:

    You are the man!!! Thanks so much for this! I could hug you!!

    [Reply]

  4. lnxjenn says:

    I am getting this error but trying to remove the package I get

    dpkg: error processing icaclient (--remove):
    Package is in a very bad inconsistent state - you should
    reinstall it before attempting a removal.
    Errors were encountered while processing:
    icaclient

    But I can’t reinstall either. I am getting this on several package I’m trying to reinstall or configure and cannot even locate on my Linux machine. Any ideas??

    [Reply]

  5. not-so-super-user says:

    I get the following error:

    dpkg: error: requested operation requires superuser privilege

    superuser???

    Thanks

    [Reply]

  6. Jason says:

    Thanks heaps man was having trouble with skype.

    ^ dude above just put “sudo ” infront worked for me

    [Reply]

  7. Neil says:

    Hi.
    I know this is an old post, but I hope someone sees it.
    Unfortunately, this did not work for me.
    I get the following message:
    $ sudo dpkg --remove --force-remove-reinstreq mfc5490cnlpr
    dpkg: dependency problems prevent removal of mfc5490cnlpr:
    mfc5490cncupswrapper depends on mfc5490cnlpr.
    dpkg: error processing mfc5490cnlpr (--remove):
    dependency problems - not removing
    Errors were encountered while processing:
    mfc5490cnlpr

    I then removed mfcncupswrapper and tried again.
    The result was:
    $ sudo dpkg --remove --force-remove-reinstreq mfc5490cncupswrapper
    (Reading database …
    dpkg: warning: files list file for package `mfc5490cncupswrapper’ missing, assuming package has no files currently installed.
    (Reading database … 221988 files and directories currently installed.)
    Removing mfc5490cncupswrapper …
    njm@WOLF359:~$ sudo dpkg --remove --force-remove-reinstreq mfc5490cnlpr
    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 … 221988 files and directories currently installed.)
    Removing mfc5490cnlpr …
    start: Unknown job: lprng
    dpkg: error processing mfc5490cnlpr (--remove):
    subprocess installed post-removal script returned error exit status 1
    Errors were encountered while processing:
    mfc5490cnlpr

    If anyone out there has any ideas about how to solve this, without a full reinstall of my system, it would be appreciated.

    Best regards,

    Neil.

    [Reply]

  8. Tim McDaniel says:

    In my case it was blindly following Brother’s Web page instructions for an MFC-7460DN. I believe that Ubuntu’s System - Administration - Printing is all I needed to do.

    Anyway, in re Neil: mine was

    # dpkg --remove --force-all mfc7460dnlpr
    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 … 180087 files and directories currently installed.)
    Removing mfc7460dnlpr …
    start: Unknown job: lpd
    dpkg: error processing mfc7460dnlpr (--remove):
    subprocess installed post-removal script returned error exit status 1
    Errors were encountered while processing:
    mfc7460dnlpr

    Worse, the Synaptic package manager threw an error on startup and aborted!

    What I did was

    locate postrm

    which pointed to, inter alia, a lot of files named /var/lib/dpkg/info/[PACKAGE].postrm
    I cd’ed there and found /var/lib/dpkg/info/mfc7460dnlpr.postrm.

    #!/bin/sh
    if [ -e /etc/init.d/lprng ]; then
    /etc/init.d/lprng restart
    elif [ -e /etc/init.d/lpd ]; then
    /etc/init.d/lpd restart
    fi

    I appended ” || true” to make it ignore command exit statuses:

    #!/bin/sh
    if [ -e /etc/init.d/lprng ]; then
    /etc/init.d/lprng restart || true
    elif [ -e /etc/init.d/lpd ]; then
    /etc/init.d/lpd restart || true
    fi

    Then I got

    # dpkg --remove --force-all mfc7460dnlpr
    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 … 180087 files and directories currently installed.)
    Removing mfc7460dnlpr …
    start: Unknown job: lpd

    which removed the package. I ran

    # dpkg --purge --force-all mfc7460dnlpr

    to get rid of everything.

    --
    Tim McDaniel, tmcd@panix.com

    [Reply]

  9. Neil McLeish says:

    Hi Tim.

    Thanks for the thorough information. Much appreciated.

    In the end, I ended up doing a fresh OS install. I was not too bothered about that as I had only just done it and wasn’t going to lose much time.

    I will keep this bookmarked, in case I need to call upon it again. I am just perplexed as to why the printer worked fine in 10.04 but not 10.10 or later.

    Here’s hoping they sort it soon.

    Many thanks again and best regards,

    Neil.

    [Reply]

  10. Raul says:

    Thanks a lot!!!
    It works for me.

    [Reply]

  11. Connor Moroney says:

    You are a life saver

    [Reply]

  12. Alexander Papadopulos says:

    Why is the right solution, so hard to find!

    Thank you for sharing this valuable information. Worked on Ubuntu 11.10 for my MFC-7360n.

    [Reply]

Leave a Reply