Re: libc problems
On Wed, 12 May 1999, Gergely Madarasz wrote:
> Preparing to replace libc6 2.1.1-2 (using .../libc6_2.1.1-5_sparc.deb) ...
> dpkg: error processing /var/cache/apt/archives/libc6_2.1.1-5_sparc.deb
> (--unpack):
> subprocess pre-installation script returned error exit status 1
>
> This was the case with 2.1.1-3 too.
Hmpf
I tried now to simulate the upgrade ... very strange
debella:~/libc6# DEBIAN/preinst upgrade 2.1.1-2
+ dpkg --assert-support-predepends
+ '[' upgrade = upgrade ']'
+ dpkg --compare-versions 2.1.1-2 le 2.1.1-0.1
+ '[' upgrade '!=' abort-upgrade ']'
++ uname -s
+ '[' Linux = Linux ']'
++ uname -m
+ realarch=sparc
+ '[' sparc = sparc ']'
++ egrep '^type.*:.*sun4m' /proc/cpuinfo
+ cputype=
debella:~/libc6# echo $?
1
wtf is this ?
the script says:
if [ "$1" != abort-upgrade ] && [ "`uname -s`" = Linux ]
then
# SPARC sun4m requires a recent kernel
realarch=`uname -m`
if [ "$realarch" = sparc ]
then
cputype=`egrep '^type.*:.*sun4m' /proc/cpuinfo 2> /dev/null`
kernel_ver=`uname -r`
if [ "$cputype" != "" ]
...
Why does it exit after the cputype= line ?!?
--
Madarasz Gergely gorgo@caesar.elte.hu gorgo@linux.rulez.org
It's practically impossible to look at a penguin and feel angry.
Egy pingvinre gyakorlatilag lehetetlen haragosan nezni.
HuLUG: http://mlf.linux.rulez.org/
Reply to: