handle ps2pdf dependency errors with ghostscript
April 6th, 2009 by Lawrence David
while trying to upgrade my packages, i got caught with the following error:
Removing ghostscript …
Purging font configuration of gs…
No alternatives for ps2pdf.
dpkg: error processing ghostscript (–remove):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
ghostscript
E: Sub-process /usr/bin/dpkg returned an error code (1)
to solve it, i edited the following file:
/var/lib/dpkg/info$ sudo emacs ghostscript.prerm
by commenting out the lines referring to ps2pdf. after that, sudo apt-get install -f worked!