Results 1 to 8 of 8

Thread: problem with installing optware packages

  1. #1
    Join Date
    Nov 2007
    Location
    Slovakia
    Posts
    4

    problem with installing optware packages

    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/

    Code:
    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
    Code:
    #
    # 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 ?

  2. #2
    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

  3. #3
    Join Date
    Nov 2007
    Location
    Slovakia
    Posts
    4
    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

    Code:
    # 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.
    #

  4. #4
    Join Date
    Nov 2007
    Location
    Bratislava, Slovakia
    Posts
    4
    i've got the same problem

  5. #5
    Join Date
    Jun 2007
    Location
    Sweden
    Posts
    33

    I think its the problem I had earlier...

    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.

  6. #6
    Join Date
    Nov 2007
    Location
    Bratislava, Slovakia
    Posts
    4
    thanks for tip rejan, i found that thread and did it yesterday, and also today but i still get the same error

  7. #7
    Join Date
    Jun 2007
    Location
    Sweden
    Posts
    33
    Quote Originally Posted by sorame View Post
    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

  8. #8
    Join Date
    Nov 2007
    Location
    Bratislava, Slovakia
    Posts
    4
    so i did something and it works

Similar Threads

  1. problem to installed packages
    By hercule18 in forum WL-500g Q&A
    Replies: 2
    Last Post: 02-04-2008, 00:41
  2. Oleg's 1.9.2.7-7f - problem with installing nano, screen, mc
    By Julian in forum WL-500gP Firmware Discussion
    Replies: 2
    Last Post: 22-08-2007, 05:32
  3. /etc/TZ with custom firmware and optware packages
    By whotopia in forum WL-700g Firmware Discussion
    Replies: 1
    Last Post: 16-07-2007, 03:00
  4. WL-500gP and Asus support experience
    By Blezi in forum WL-500gP Q&A
    Replies: 6
    Last Post: 03-12-2006, 12:59
  5. installing Samba, FAT32 write problem
    By Toomas in forum WL-500g Q&A
    Replies: 7
    Last Post: 21-08-2006, 21:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •