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.

share|improve this question
3  
What set of instructions / web site were you following and what problem were you having ? – Panther Dec 17 '11 at 5:29
    

Well we may need a few steps to fix this.

Start with

sudo dpkg --remove --force-all hl1440lpr

If that fails ...

# become root
sudo -i
cd /var/lib/dpkg/info
rm -rf hl1440lpr*

dpkg --remove --force-remove-reinstreq hl1440lpr

exit

Confirm apt-get is fixed

# should return no errors
sudo apt-get update
share|improve this answer
    
I ran into this situation when I was upgrading to Ubuntu 12.10 but accidently suspended the computer midway. Upon waking the computer, the upgrade had (obviously) failed and a red icon appeared next to the battery meter which said that E:The package xterm needs to be reinstalled, but I can't find an archive for it. Once I applied the suggestion here, sudo dpkg --remove --force-all xterm everything was fixed. Thanks! ps, it would be nice if you could edit sodo to say sudo, I wouldn't nitpick but that would derail someone who didn't know anything about linux. – dylan murphy Oct 23 '12 at 21:55
1  
Thank you bodhi.zazen. Your solution worked for my faulty brother-driver; dcpj4110dwlpr. – v2r Dec 27 '14 at 20:01
    
Perfect! First solution failed and hanged the process, but second one worked. Thanks! (tried on debian server) – Shautieh Jul 31 '15 at 18:00

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.

share|improve this answer
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.

share|improve this answer
1  
you have to be careful with this command, depending on what you are removing, it could cascade into removing your entire desktop. – ravery Jul 5 '17 at 16:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.