Package Installation error and solution
Posted by admin on December 22nd, 2006
Email This Post
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
If you want to be notified the next time we write something please subscribe to our RSS feed.Thanks for Visiting!


January 28th, 2007 at 2:41 am
I’m having a simimlar problem, but with a different package.
All the solutions so far don’t work, apt-get remains broken so I can’t install or uninstall anything.
This is what happens:
dpkg –remove –force-remove-reinstreq virtualbox
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 … 109242 files and directories currently installed.)
Removing virtualbox …
(Kernel module not found)…fail!
invoke-rc.d: initscript virtualbox, action “stop” failed.
dpkg: error processing virtualbox (–remove):
subprocess pre-removal script returned error exit status 1
-e
Creating group ‘vboxusers’. VM users must be member of that group!
No precompiled module for this kernel found — trying to build one
Messages displayed during module compilation will be logged to /var/log/vbox-install.log
Compilation of kernel module failed, aborting installation
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
virtualbox
———-
And that’s it. Without the –force-remove-reinstreq option it also doesn’t work.
Any clues? I don’t want to reinstall the whole of Ubuntu again if at all possible.
Edit/Delete Message
February 17th, 2007 at 3:14 pm
Yes, I’m at exactly the same point with virtualbox. I installed VirtualBox_1.3.2_Ubuntu_Dapper_x86.deb from a downloaded file with dpkg -i, just as described in the VirtualBox User Manual. It worked fine for a while. Then I installed a new version of the linux kernel and (silly me) decided to install the latest VirtualBox_1.3.4_Ubuntu_dapper_i386.deb WITHOUT making a new 1.3.2 kernel module…. boom!
Now I’m hopelessly stuck - can’t go forward, back or even sideways. If hantms found the answer, please let me know asap.
February 17th, 2007 at 4:05 pm
OK, I’ve fixed it! The process is quite long and specific to VirtualBox.
1. delete all files beginning with virtualbox in /var/lib/dpkg/info/
2. sudo dpkg –remove –force-depends –force-remove-reinstreq virtualbox
Then, follow the instructions in the VirtualBox FAQ as follows….
3. edit /etc/init.d/virtualbox and change line 129 exit 1 to zero (after the kernel module failure detection).
4. reinstall with sudo dpkg -i VirtualBox_blah.deb - expect it to fail in postinstall.
5. edit /var/lib/dpkg/info/virtualbox.postinst line 39 exit 1 to zero.
6. resume the failed install with sudo dpkg –configure –pending (this will also fail because it still can’t build the kernel module).
At this stage, you can breath a sigh of relief after synaptic starts successfully! search for virtualbox and you will find it installed OK. Also, dpkg –status virtualbox is reassuringly clean.
7. use synaptic to install the linux-headers-xxx package that matches your running kernel.
Follow the VirtualBox User Manual to build the correct kernel module….
8. cd /opt/VirtualBox-blah/src/ ; sudo make; sudo make install. (phew!)
9. sudo /etc/init.d/virtualbox start works fine.
Hope that helps someone.
March 8th, 2007 at 4:15 am
Awesome. Exactly what I was looking for, worked in an instant. Thanks for posting this
May 5th, 2007 at 8:04 pm
this way solved my problem with virtualbox
Run the following command
For webmin Pakage
dpkg –remove –force-remove-reinstreq webmin
May 13th, 2007 at 8:18 pm
dpkg –remove –force-remove-reinstreq webmin
it worked also perfectly for me! Thanks a lot!
June 5th, 2007 at 9:13 pm
Hey thanks That solved my prb
August 18th, 2007 at 2:32 pm
Finally !!!!
Having a similar problem with another package. Of course every piece of advise failed until I saw Brians Step 1 above. Seems the key was to delete the files in the /var/lib/dpkg/info/ directory related to your installation (in my case MFC665*). Once done with that THEN run the following:
sudo dpkg –remove –force-depends –force-remove-reinstreq mfc665cwcupswrapper
Without this first step the above command always failed. Now by removing the files dpkg finds no files, assumes the install was removed and updates (in my case) Adept.
Thanks Brian… 2 days of searching…. finally resolved.
December 26th, 2007 at 2:08 pm
This is truly the best x-mas present so far!
I had the same problem that Finally had (darn those stupid brother mfc) and now it seems resolved!
Hugs and kisses to admin, Brian Burch and Finally for this article!
December 30th, 2007 at 10:44 pm
Thank you so much for this guide!
My Christmas was also saved.
January 19th, 2008 at 11:37 pm
Wish it worked for me
I tried to install the NDAS drivers and admin tools for the networkable NDAS hard drives — my first mistake, as they are not supported, and written for debain - a few people did get it to work under ubuntu — but not me
Running 7.10 Gutsy, can not do any apt-gets or install any packages.Really hate the idea of reinstalling over one failed package. Here is the output I am getting when using the above method.
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 … 134678 files and directories currently installed.)
removing ndas-admin …
/etc/init.d/ndas: 38: Syntax error: Bad substitution
dpkg: error processing ndas-admin (–remove):
subprocess pre-removal script returned error exit status 2
System startup links for /etc/init.d/ndas already exist.
/etc/init.d/ndas: 38: Syntax error: Bad substitution
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
ndas-admin
I looked in the /var/lib/dpkg/info/ directory and didn’t see anything that belonged to ndas-admin (nothing with that name anyways)…
I’m kind of at a lose, so if anyone has any ideas please let me know thanks.
February 9th, 2008 at 10:15 pm
Well, after looking and searching, and not finding anything — I sat down and was thinking….and decided that I would deleted the /etc/init.d/ndas file that was giving the errors — I reran dpkg with the force enabled, and just as I thought, /etc/init.d/ndas file came back!!! Which made me think, that there had to be some ndas-admin files someplace on the hard drive -
I did a locate ndas* and came up with a long list -
I then deleted (sudo rm) the files I felt were causing problems — mainly the INSTALL and make files…
reran dpkg with the force remove — got a couple of weird errors, but it did solve the problem, and now I am able to install the updates, — over 100 at this point!! Oh Well, better then having to wipeout my system and start over…
I guess the point to this post is — if You get ERRORS when you try to remove the failed package — do a locate and see if you can find anything that might look as if it belongs to the failed package — remove that and then run dpkg.
(THen again, I could have broken my system even worse if I was wrong….so use at your own risk)
Thanks for the help thou.
April 10th, 2008 at 1:55 pm
Thanks so much, Finally. I’m working with an eeepc 8g, and I had the same problem with a brother printer driver. Using the information here, I was able to delete the files in the /var/lib/dpkg/info/ folder and get everything working again. Before fixing, couldn’t update any software with the builtin utility. THANKS AGAIN!
April 30th, 2008 at 9:58 pm
Hit this problem with Google Earth. The above solution (dpkg –remove –force-remove-reinstreq) cleared it right up. Thanks.
May 30th, 2008 at 8:00 am
Hi,
Thanks a ton for your support/solution.
This works fine me after removing the files from /var/lib/dpkg/info/ with dpkg –remove –force-depends –force-remove-reinstreq option.
Thanks you very much again and keep a good work going on.
Regds,
Sera
June 26th, 2008 at 6:09 am
Many thanks. I’ve recovered apt-get a few times, this time required the removal of the files /var/lib/dpkg/info before the dpkg –remove –force-remove-reinstreq webmin which had me stumped! Can’t print any more from linux but at least OS works
August 14th, 2008 at 12:54 pm
i need telnet ubuntu server package 8.04.1 .