[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Package insall/uninstall weird behaviour



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.

-davidc

-- 
gpg-key: http://www.zettazebra.com/files/key.gpg

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: