Re: ldconfig responds with Illegal Instruction, cannot
On 9/10/05, Kent West <westk@acu.edu> wrote:
Chris Purves wrote:
> A recent upgrade with aptitude on testing exited halfway through with
> the following error:
>
> Preconfiguring packages ...
> Setting up libpam0g (0.76-23) ...
> /var/lib/dpkg/info/libpam0g.postinst: line 3: 31771 Illegal
> instruction ldconfig
I'd take a look at line 3 and the surrounding code of the
libpam06.postinst script and see if anything looks odd, like a
semi-colon in the wrong place, or if it's trying to overwrite a certain
file, I'd check the attributes on that file or maybe move it manually, etc.
Here are the contents of the file:
>>>
#!/bin/sh -e
case "$1" in
configure)
ldconfig
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
esac
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
<<<
Line 3 is the case statement. I
don't have much practice with shell scripting, so I don't know if
there's a problem. Also, if I run "ldconfig" at the command line,
it returns "Illegal instruction", so I don't know if the problem lies
with the postinst file.
--
Take care, eh.
Chris
Reply to: