Running Synaptic I get the following error message:
E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.
Upon accepting the message, Synaptic quits.
Running Synaptic I get the following error message:
E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.
Upon accepting the message, Synaptic quits.
Well we may need a few steps to fix this.
Start with:
sudo dpkg --remove --force-all hl1440lpr
If that fails:
sudo rm -i /var/lib/dpkg/info/hl1440lpr.*
sudo dpkg --remove --force-remove-reinstreq hl1440lpr
Confirm Apt is fixed. The following command should return no errors:
sudo apt-get update
It turns out, this wouldn't repair using the regular commands because I had disabled the multiverse repository in the software and updates window, after installing the package.
I read to do this in a post somewhere else, and it wasn't until another post I read that had me double check to make sure it was ENABLED, then I realized I never should have disabled that in the first place.
Enabling the multiverse repository again enabled me to reinstall the package.
So, generally if this sorts of errors happen, make sure you haven't disabled the software source from which this package comes.
Just open /var/lib/dpkg/status file as root and remove the corresponding entry from it.
dpkg --remove --force-remove-reinstreq broken---stuff
(plus file erasing)
works like a charm. synaptic should offer this function instead of dying and leaving people with a huge mess. synaptic is not user friendly.
The package error can be because of abruptly closing the ongoing upgrade of packages. For this , you can use this linux command.
sudo apt-get --fix-broken install
I used this step:
sudo rm -i /var/lib/dpkg/info/package.*
sudo dpkg --remove --force-remove-reinstreq package
and after that residual config was reamining after using
sudo dpkg --purge package_name
everything got fixed.
Run the following commands on the terminal:
sudo cp /var/lib/dpkg/status status.bkpsudo gedit /var/lib/dpkg/statusflectra which was in
purge reinstreq half-installed state. After you have located the
culprit package, delete the section of information related to that
package and save the file.flectra
inside the rectangle and saved the file.
Close gedit when done.Finally try to install the package you want to install and now there should be no error :)