Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Trying to open Software Center from command line gives this error:

SystemError: E:The package hl1470nlpr:i386 needs to be reinstalled, but I can't find an archive for it.
2014-03-30 22:32:35,966 - softwarecenter.db.enquire - ERROR - _get_estimate_nr_apps_and_nr_pkgs failed

(There is a large call stack that goes with it.)

I have the .deb that this hl1470nlpr package was originally installed with. (It was a mistake.) When I try to use it to reinstall I get this:

sudo dpkg -i hl1470nlpr-1.1.2-1.i386.deb 
(Reading database ... 219830 files and directories currently installed.)
Preparing to replace hl1470nlpr 1.1.2-1 (using hl1470nlpr-1.1.2-1.i386.deb) ...
Unpacking replacement hl1470nlpr ...
/var/lib/dpkg/info/hl1470nlpr.postrm: 3: /var/lib/dpkg/info/hl1470nlpr.postrm:     /etc/init.d/lpd: not found
dpkg: warning: subprocess old post-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/postrm: 3: /var/lib/dpkg/tmp.ci/postrm: /etc/init.d/lpd: not  found
dpkg: error processing hl1470nlpr-1.1.2-1.i386.deb (--install):
 subprocess new post-removal script returned error exit status 127
/var/lib/dpkg/tmp.ci/postrm: 3: /var/lib/dpkg/tmp.ci/postrm: /etc/init.d/lpd: not found
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 127
Errors were encountered while processing:
 hl1470nlpr-1.1.2-1.i386.deb

Trying to remove the package gives:

sudo apt-get remove --purge hl1470nlpr
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: The package hl1470nlpr:i386 needs to be reinstalled, but I can't find an archive for it.

I can't remove the package, and can't install anything else. Any ideas?

Thanks. Steve

share|improve this question
    
Solved. This link had the same problem as mine. –  user263782 Mar 31 at 6:05
    
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.