Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2913  / 3 Years ago, sat, august 28, 2021, 8:54:21

All right, so, I got a really persistent error. I tried to install mfc6490cwlpr:i386 (downloaded as mfc6490cwlpr-1.1.2-2.i386.deb) and installed it using either gdebi or the Ubuntu Software Centre, probably both even. Following instructions, I restarted my computer and the following error appeared on my upper bar in Unity:



An error occured, please run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong. The error message was: 'Unknown Error:'<type 'exceptions.SystemError'>'(E:The package mfc6490cwlpr:i386 needs to be reinstalled, but I can't find an archive for it.)'. This usually means that your installed packages have unmet dependencies


I tried several ways to remove it. Among the following commands:



sudo dpkg --remove --force-remove-reinstreq mfc6490cwlpr:i386
sudo dpkg --force-all -r mfc6490cwlpr:i386


Digging further into history, I find this command:



sudo dpkg  -i  --force-all  --force-architecture  mfc6490cwlpr-1.1.2-2.i386.deb


I'm running on a 64-bit AMD processor.



Whenever I do anything that involves apt-get, updating, synaptic or what what what, I get this error:



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package mfc6490cwlpr:i386 needs to be reinstalled, but I can't find an archive for it.


The updater recommended a dist-upgrade, which didn't work.



Does anyone have any ideas to remove the corrupt .deb? I can reinstall it later when I have more time to look into hooking up the printer. But for now, I'm more concerned about getting it off off my computer.



Worth mentioning: I am NOT adept at the command line, though I try hard. I'm fairly dangerous with it, actually.


More From » 64-bit

 Answers
2

(posted in question by OP)



----FIX----:



Fixed it already. The following link helped: http://blog.bodhizazen.com/linux/apt-get-how-to-fix-very-broken-packages/



Here's what it says: Go into the /var/lib/dpkg/info directory using the terminal. Do:



ls [PART OF NAME OF PACKAGE]*


Mind that the asterisk (*) is important. If all's right you get five results, of which 3 are green. At least, that was the case in my case. If you get more, write the name of the package almost in full and try the above command again.



Then do:



sudo rm [PART OF NAME OF PACKAGE]*


And follow with:



sudo dpkg --remove --force-remove-reinstreq [NAME OF PACKAGE]


Don't follow this advice if you haven't tried anything else yet. I fear it's highly destructive, lol, but I survived the aftermath and apt-get is working again.


[#40728] Saturday, August 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
icielight

Total Points: 158
Total Questions: 92
Total Answers: 93

Location: San Marino
Member since Thu, Jun 30, 2022
2 Years ago
icielight questions
;