On 18/1/2000 Christopher S. Swingley wrote:
I've been keeping up with potato fairly regularly (two or three times a week), and occasionally I wind up with errors that look like this (this is what I got today): dpkg (subprocess): unable to execute post-installation script: Exec format error dpkg: error processing libungif3g-dev (--configure): subprocess post-installation script returned error exit status 2 Errors were encountered while processing: libungif3g-dev Sometimes I can get things to work by doing dpkg --purge, apt-get install, but in this case several things depend on the library. Is there a way around this, or should I file a bug report and wait for a repaired package? Where do these installation / configuration scripts live -- perhaps I can fix it myself?
go edit /var/lib/dpkg/info/libungif3g-dev.postinst (or something close) you will find either a missing or malformed #! /bin/sh add that and the problem will go away. there seems to be a rash of weary developers lately either forgetting or putting #/bin/sh and other such things there. i've had about half a dozen packages do this over the last 2 weeks.
Ethan