There are two versions of the .deb file - one for working with CUPS and one for doing LPD. I used the one for CUPS, seeing as I usually deal with CUPS when working with printers. I believe the LPD version would be for systems that do not have CUPS. Is it possible to try the other version? I'll send you the exact files I used via an off-list message.

The dpkg bit should be cleaned up before continuing... I'm not an expert in that department though...

On 11-11-19 08:46 PM, Ralph Boland wrote:
I have this same printer running flawlessly in our Ubuntu only network
(ok, there are some windows VMs too, but that doesn't matter for this
discussion...)
...

Encouraged by Shawn's success with my printer model and Ubunutu I tried again.
I failed again.
Worse, I seem to have entered dpkg hell.
Installing the package fails and yet I cannot remove it.
I am instructed you re-install the package but that of course fails.

Furthermore, from my current state, I cannot update packages or
upgrade to Ubuntu 11.10

Examples:

If I run:

   dpkg -i -force-all dcp7065dnlpr-2.1.0-1.i386.deb

I get:

...
Unpacking replacement dcp7065dnlpr-2.1.0-1.i386 ...
start: Unknown job: lpd
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
start: Unknown job: lpd
dpkg: error processing dcp7065dnlpr-2.1.0-1.i386.deb (--install):
  subprocess new post-removal script returned error exit status 1
start: Unknown job: lpd
dpkg: error while cleaning up:
  subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
  dcp7065dnlpr-2.1.0-1.i386.deb


If I try:
     sudo dpkg -P dcp7065dnlpr-2.1.0-1.i386

I get:
dpkg: warning: there's no installed package matching dcp7065dnlpr-2.1.0-1.i386



If I try:
       sudo apt-get install -f

I get:

...
Preparing to replace dcp7065dnlpr 2.1.0-1 (using
.../dcp7065dnlpr-2.1.0-1.i386.deb) ...
Unpacking replacement dcp7065dnlpr ...
start: Unknown job: lpd
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
start: Unknown job: lpd
dpkg: error processing
/home/rocky/MyDebs/./OLD/dcp7065dnlpr-2.1.0-1.i386.deb (--unpack):
  subprocess new post-removal script returned error exit status 1
start: Unknown job: lpd
dpkg: error while cleaning up:
  subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
  /home/rocky/MyDebs/./OLD/dcp7065dnlpr-2.1.0-1.i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


If I start up  Synaptic Package Manager and select Brother and then package:
       dcp7065dnlpr
       (installed version: 2.1.0-1)
       (latest version 2.1.0-1)
       (Description Brother DCP-7065DN LPR driver)

and then try:

     remove package  or remove package completely

I get:
E: dcp7065dnlpr: Package is in a very bad inconsistent state - you
should  reinstall it before attempting a removal.


But if I try:

      reinstall package

I get:
E: /home/rocky/MyDebs/./OLD/dcp7070dwlpr-2.1.0-1.i386.deb: subprocess
new post-removal script returned error exit status 1

==================================

I have run out of ideas.
How do I remove my package?


Thanks from dpkg hell

Ralph (Rocky) Boland

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to