[Hampshire] Re: removing a broken pakage.

Top Page

Reply to this message
Author: Mike Burrows
Date:  
To: Hampshire LUG Discussion List
Subject: [Hampshire] Re: removing a broken pakage.
my posts dont seem to be getting through so trying again.

Mike Burrows wrote:
> Hello Folks.
>
> As part of troubleshooting my usb printer problem, I thought I would
> reinstall the lpr driver and cups wrapper that Brother provides on
> their site. I'm not sure the sequence of events but the result is
> that the printer is no longer displayed in CUPS and this is what I get
> when I try and install the two drivers:
>
> marvin:/home/testermike/brother# dpkg -i mfc240clpr-1.0.0-9.i386.deb
> Selecting previously deselected package mfc240clpr.
> (Reading database ... 95213 files and directories currently installed.)
> Unpacking mfc240clpr (from mfc240clpr-1.0.0-9.i386.deb) ...
> Setting up mfc240clpr (1.0.0-9) ...
> mkdir: cannot create directory `/var/spool/lpd/mfc240c': No such file
> or directory
> chown: cannot access `/var/spool/lpd/mfc240c': No such file or directory
> chgrp: cannot access `/var/spool/lpd/mfc240c': No such file or directory
> chmod: cannot access `/var/spool/lpd/mfc240c': No such file or directory
>
>
> marvin:/home/testermike/brother# dpkg -i --force-all
> mfc240ccupswrapper-1.0.0-9.i386.deb
> (Reading database ... 95228 files and directories currently installed.)
> Preparing to replace mfc240ccupswrapper 1.0.0-9 (using
> mfc240ccupswrapper-1.0.0-9.i386.deb) ...
> /var/lib/dpkg/info/mfc240ccupswrapper.prerm: line 3:
> /usr/local/Brother/Printer/mfc240c/cupswrapper/cupswrappermfc240c: No
> such file or directory
> dpkg: warning - old pre-removal script returned error exit status 127
> dpkg - trying script from the new package instead ...
> /var/lib/dpkg/tmp.ci/prerm: line 3:
> /usr/local/Brother/Printer/mfc240c/cupswrapper/cupswrappermfc240c: No
> such fileor directory
> dpkg: error processing mfc240ccupswrapper-1.0.0-9.i386.deb (--install):
> subprocess new pre-removal script returned error exit status 127
> /var/lib/dpkg/info/mfc240ccupswrapper.postinst: line 3:
> /usr/local/Brother/Printer/mfc240c/cupswrapper/cupswrappermfc240c: No
> such file or directory
> dpkg: error while cleaning up:
> subprocess post-installation script returned error exit status 127
> Errors were encountered while processing:
> mfc240ccupswrapper-1.0.0-9.i386.deb
> marvin:/home/testermike/brother#
> brother advise that the lpr driver be installed before the wrapper.
>
> I think what I should do is remove all files of the two packages but
> do not know where to start.
>
> TIA
> Mike
>