Re: Package insall/uninstall weird behaviour
On Mon, 2005-07-04 at 14:25 -0400, David Clymer wrote:
> On Sat, 2005-07-02 at 16:30 -0400, adijr . wrote:
> >
> > Removing hl5140lpr ...
> > /var/lib/dpkg/info/hl5140lpr.postrm: line 3: /etc/init.d/lpd: No such file
> > or directory
> > dpkg: error processing hl5140lpr (--remove):
> > subprocess post-removal script returned error exit status 127
> > Errors were encountered while processing:
> > hl5140lpr
> > E: Sub-process /usr/bin/dpkg returned an error code (1)
> > RESULT=100
> >
> > Any ideas how to get rid of the old pacake so i can install the new one..?
> > or how to reinstall the new one Over the old?
> >
>
> Well, one way to do it would be to
> edit /var/lib/dpkg/info/hl5140lpr.postrm.
>
> you could just stick:
>
> exit 0
>
> at the top of the script, or you could be a bit more surgical and
> comment out the offending line or block of code that requires the
> existance of /etc/init.d/lpd.
>
> Alternatively, you could create a the file it is looking for:
>
> # touch /etc/init.d/lpd
>
> None of these are real beautiful solutions, but they should get the
> package uninstalled for you.
>
> hope that helps.
IIRC there was also discussion of this (and which drivers to use for
this printer) on the linuxprinting website (and prob archives of D-U
too)
--
Michael Bane
Atmospheric Physics Group
University of Manchester
Reply to: