PDA

Bekijk de volledige versie : problem with installing optware packages



pico
23-11-2007, 22:29
hello

i install K.Furge Custom Firmware on WL 700gE [v1.0.4.6]
then i upload the rc.local
now i can telnet to the router

as next spet i have try to Installing optware packages
http://wl700g.homelinux.net/portal/content/view/20/28/


wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk
tar xvzf uclibc-opt_0.9.28-12_mipsel.ipk; tar xvzf data.tar.gz

wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox-base_1.8.1-1_mipsel.ipk
tar xvzf busybox-base_1.8.1-1_mipsel.ipk; tar xvzf data.tar.gz

wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox-links_1.8.1-1_mipsel.ipk
tar xvzf busybox-links_1.8.1-1_mipsel.ipk; tar xvzf data.tar.gz

wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox_1.8.1-1_mipsel.ipk
tar xvzf busybox_1.8.1-1_mipsel.ipk; tar xvzf data.tar.gz

wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/wget_1.10.2-4_mipsel.ipk
tar xvzf wget_1.10.2-4_mipsel.ipk; tar xvzf data.tar.gz

wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk
tar xvzf ipkg-opt_0.99.163-9_mipsel.ipk; tar xvzf data.tar.gz

rm -f *.ipk data.tar.gz debian-binary control.tar.gz

export PATH=/opt/bin:/opt/sbin:${PATH}
export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}

but i get a error, and i dont now whats wrong

#
# rm -f *.ipk data.tar.gz debian-binary control.tar.gz
#
# export PATH=/opt/bin:${PATH}
#
# export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}
#
# ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
#
# ipkg install uclibc-opt busybox ipkg-opt wget
Installing uclibc-opt (0.9.28-12) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk
package uclibc-opt suggests installing ipkg-opt
Installing busybox (1.8.1-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox_1.8.1-1_mipsel.ipk
Installing busybox-base (1.8.1-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox-base_1.8.1-1_mipsel.ipk
Installing busybox-links (1.8.1-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox-links_1.8.1-1_mipsel.ipk
Installing ipkg-opt (0.99.163-9) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk
Installing wget (1.10.2-4) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/wget_1.10.2-4_mipsel.ipk
Configuring busybox
Configuring busybox-base
Configuring busybox-links
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
syntax error
postinst script returned status 255
ERROR: busybox-links.postinst returned 255
Configuring ipkg-opt
Configuring uclibc-opt
Updating /opt/etc/ld.so.cache
Configuring wget
Successfully terminated.

can somebody help ?

xmeister
24-11-2007, 04:12
When a package is done installing it may run a postinstall shell script, in the case of your busybox-links it's busybox-links.postinst. These are usually stored in /opt/lib/ipkg/info/.

The issues I've encountered are when the script can't be run using the default shell (bin/sh). This just needs the first line of the script changed from #!/bin/sh to #!/opt/bin/bash (I got this during mt-daapd and adduser packages install). This does require bash shell being installed.

In your case however it looks like the script is executed and a syntax error is being generated. In this case there's a command in the script not executing correctly (no kidding). I've encountered this during a few packages such as coreutils. In this case it's trying to execute /opt/bin/update-alternatives, which itself is a complex shell script. I found changing the first line of /opt/bin/update-alternatives from #!/bin/sh to #!/opt/bin/bash fixed the problem.

My version of busybox-links looks slightly older and doesn't have the postinst file so can't check.

Hope this helps.

X

pico
24-11-2007, 11:58
i changed the first line of the script from #!/bin/sh to #!/opt/bin/bash
(busybox-links.postinst,/opt/bin/update-alternatives)
now i get a new error :(


# ipkg install sudo bash
Package sudo (1.6.9p8-1) installed in /opt/ is up to date.
Package bash (3.2.17-1) installed in /opt/ is up to date.
Configuring busybox-links
head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
update-alternatives: Error: cannot register alternative [ to /opt/bin/[ since it is already registered to
head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
update-alternatives: Error: cannot register alternative [[ to /opt/bin/[[ since it is already registered to
...
head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
update-alternatives: Error: cannot register alternative chattr to /opt/bin/chattr since it is already registered to
postinst script returned status 255
ERROR: busybox-links.postinst returned 255
Configuring e2fsprogs
head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
update-alternatives: Error: cannot register alternative chattr to /opt/bin/chattr since it is already registered to
head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
update-alternatives: Error: cannot register alternative lsattr to /opt/bin/lsattr since it is already registered to
head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
update-alternatives: Error: cannot register alternative fsck to /opt/sbin/fsck since it is already registered to
postinst script returned status 1
ERROR: e2fsprogs.postinst returned 1
Configuring ncurses
head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
update-alternatives: Error: cannot register alternative clear to /opt/bin/clear since it is already registered to
postinst script returned status 1
ERROR: ncurses.postinst returned 1
Nothing to be done
Successfully terminated.
#

sorame
01-12-2007, 13:45
i've got the same problem :(

Rejan
01-12-2007, 22:05
See: http://wl500g.info/showthread.php?t=11398 for discussion or look at the solution below...

The update-alternatives defaults the "head" command to old busybox from /apps/bin hence the error:

head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference update-alternatives: Error: cannot register alternative [ to /opt/bin/[ since it is already registered to

Workaround:

Edit row in /opt/bin/update-alternatives from:

local olink=`head -n 1 $ad/$name`

to:

local olink=`$IPKG_OFFLINE_ROOT/opt/bin/busybox head -n 1 $ad/$name`


And then run:

/opt/lib/ipkg/info/busybox-links.postinst


Rejan.

sorame
02-12-2007, 09:08
thanks for tip rejan, i found that thread and did it yesterday, and also today but i still get the same error

Rejan
02-12-2007, 09:21
thanks for tip rejan, i found that thread and did it yesterday, and also today but i still get the same error

Did you try Sollie's advice before, might be that my trials combined with Sollies advise solved it. I tried for a number of days before I found out what worked for me. What error message do you get now and what packages do you have installed on your ASUS?

/Rejan

sorame
02-12-2007, 09:37
so i did something and it works ;)