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.