Fix for the /opt/bin/update-alternatives problem!!!
0a: ipkg-opt install uclibc-opt
0b: ipkg-opt install busybox-links
1: change first line (/opt/bin/update-alternatives):
- nano /opt/bin/update-alternatives
- #!/bin/sh ---> #!/opt/bin/bash
2: ln -s /opt/bin/busybox sort /opt/bin/sort
3: ln -s /opt/bin/busybox dirname /opt/bin/dirname
4: /opt/lib/ipkg/info/busybox-links.postinst
When you get this error:
Quote:
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
Do this: nano /opt/bin/update-alternatives and change tho folowing line:
local olink=`head -n 1 $ad/$name` ---> local olink=`$IPKG_OFFLINE_ROOT/opt/bin/busybox head -n 1 $ad/$name`
Sollie.
Solves some but gives other errors
Hi Sollie and thanx for the effort!
The second and third commands didn't work, already existed files.
The fourth gave this 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
Still doesn't work but it created the files in /opt/lib/ipkg/alternatives
Rejan.
Must be something else...
I did as you described and installed uclibc-opt
Still gets:
head: error while loading shared libraries: head: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
Seems to hang aswell... break it with ctrl-c
Rejan.
Nope tried didn't work to do ln
Hi Sollie, tried ln -s /opt/bin/busybox head /opt/bin/head but got file exist, even after rm /opt/bin/head
Editing the the file /opt/bin/update-alternatives with qualified path to head was the thing that helped.
After editing I did the /opt/lib/ipkg/info/busybox-links.postinst, checked everything and did a ipkg upgrade and all linked well and works again.
Rejan.
anyhow - linking doesnt work with ln for me
Hi Sollie, even though the file is made, the postinst-file didn't work until I did a fully qualified path in update_alternatives.
The link still defaults to the old busybox, easy way to test is to write the command: head-? and check versioninfo on Busybox. That was how I found out that it defaulted wrong version of Busybox.