LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2011, 06:44 PM   #1
rtruswell
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Rep: Reputation: Disabled
Can't get rid of error message in dpkg or apt-get


Hi,

I was trying to install a printer driver yesterday, and I failed. Worse, the failure seems to have upset dpkg and apt-get, and now regular package management tasks frequently aren't working.

Here are all the details I can remember:

The package which failed to install is dcp7065dnlpr, a Brother printer driver downloaded off their website.

The error message generated when I tried to install it with dpkg was (I think):

start: Unknown job: lpd

I tried dpkg -r, dpkg -P, and dpkg --remove-reinstreq (i.e. all the options which seemed relevant on the dpkg man page), to remove the broken package, but they all generated variants on the same theme:

dpkg: error processing dcp7065dnlpr (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
dcp7065dnlpr

But trying to reinstall it didn't get anywhere. (I believe that the first time I tried this, there were some different error messages, along the lines of "start: Unknown job: lpd", and mentioning the prerm and postrm scripts, but I can't generate those again).

If I try dpkg -l | grep dcp7065dnlpr, I get:

rHR dcp7065dnlpr 2.1.0-1 Brother DCP-7065DN LPR driver

(or iHR, or PHR, on the first line, depending on whether I last used the -i/-r/-P option).

Similarly, if I try to do pretty much anything with apt-get, I now get error messages based around this package. e.g. apt-get install alarm-clock generates:

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

Again, the promising-sounding options from the apt-get man page (-f, -m, --ignore-hold - didn't know what that meant but ignoring things sounded potentially helpful) don't help.

One last detail: there was a CUPS driver for the same printer installed at the same time. That one has been installed with no problems - just mentioning it in case it's relevant:

ii cupswrapperdcp7065dn 2.0.4-2 Brother DCP7065DN CUPS wrapper driver

Of course, in the long run, I want to get this printer working (and I might post about that in the relevant forum if I get stuck again), but in the short term, I'd just like to get this package cleaned up, and get everything working smoothly again. I get the feeling I'm missing something very basic, but googling/reading man pages hasn't helped me. If any of you can straighten me out, it'd be much appreciated.
 
Old 08-23-2011, 10:01 PM   #2
peonuser
Member
 
Registered: Mar 2008
Location: Where ever I am.
Distribution: Various
Posts: 177
Blog Entries: 163

Rep: Reputation: 21
Did you try:

$ sudo apt-get -f upgrade
 
Old 08-24-2011, 01:05 AM   #3
rtruswell
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi Peonuser, that produces:

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

Presumably because dcp7065dnlpr didn't come from a repository but direct from the Brother website.
 
Old 08-25-2011, 08:05 PM   #4
rtruswell
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Anyone? Pretty please?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get dpkg error 5%dpkg akhund_bilal Debian 15 02-10-2010 07:13 AM
dpkg error during any apt command vockleya Linux - Software 2 08-03-2009 10:49 AM
apt-get error dpkg: ... not found on PATH linuxfia Ubuntu 7 12-02-2008 03:41 PM
apt-get / dpkg error caused by aspell amon Debian 1 04-14-2005 04:09 PM
How can I get rid of dpkg apt-get errors? jon_k Linux - Software 2 03-25-2005 02:25 PM


All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration