Joined: 16 Dec 2009 Posts: 83 Location: Florence (ITALY)
Posted: Sun Jul 09, 2017 22:38 Post subject: Entware Optware-NG and build 32597 on WRT1900ACS v1 [SOLVED]
Hi to all,
how it's possible to install one of the package manager listed into the subject of this topic ?
I have switched from kong build to the brainslayer build in March,and i have noticed a bug with busybox and entware install script.
Today i have updated my WRT1900ACS v1 to build 32597, hoping in an update of busybox version... but nope..
IS IT AVAIBLE A WORKAROUND? or a step by step guide, for an install from zero of entware on my new usb drive connected to the router?
Have a nice day
This is the output error of the installation
******************************
root@WRT1900ACS:~# wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | sh
Connecting to pkg.entware.net (81.4.123.217:80)
Info: Checking for prerequisites and creating folders...
Warning: Folder /opt exists!
Info: Opkg package manager deployment...
Connecting to pkg.entware.net (81.4.123.217:80)
Connecting to pkg.entware.net (81.4.123.217:80)
wget: error getting response: Invalid argument
Connecting to pkg.entware.net (81.4.123.217:80)
wget: error getting response: Invalid argument
Connecting to pkg.entware.net (81.4.123.217:80)
wget: error getting response: Invalid argument
Connecting to pkg.entware.net (81.4.123.217:80)
wget: error getting response: Invalid argument
chmod: ld-2.23.so: No such file or directory
Info: Basic packages installation...
sh: /opt/bin/opkg: not found
sh: /opt/bin/opkg: not found
Connecting to pkg.entware.net (81.4.123.217:80)
wget: can't open '/opt/usr/lib/locale/locale-archive': No such file or directory
Info: Congratulations!
Info: If there are no errors above then Entware-ng was successfully initialized.
Info: Add /opt/bin & /opt/sbin to your PATH variable
Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-ng services to start
Info: Found a Bug? Please report at https://github.com/Entware-ng/Entware-ng/issues
********************************
Last edited by pizzulicchio on Mon Jul 17, 2017 8:55; edited 2 times in total
But if you're looking for a work-around, here's what I did. When it comes to Linux I'm very much just a novice, so you may find a more preferred and better way to do this. I would have replied sooner, but I had problems trying to register to the forum. Basically, these instructions will let you install a different, working wget to then get the installation and setup working.
If you do a:
which wget
You're going to get:
/usr/bin/wget
Based on your console output, you already have an /opt folder. Download a compiled BusyBox binary and place it in your /opt folder (that's on your USB drive you've got plugged into your router that you're using for Entware). I downloaded this version here: https://busybox.net/downloads/binaries/1.21.1/busybox-armv7l
SSH into your router and make sure the BusyBox binary is executable, and create a symbolic link as wget using the following:
cd /opt
chmod +x busybox-armv7l
ln -s busybox-armv7l wget
Next, you'll need to modify your $PATH variable so that you pre-append your /opt folder at the front of it. To see what's currently set, you can:
echo $PATH
You should see something like:
/bin:/usr/bin:/sbin:/usr/sbin:/jffs/sbin:/jffs/bin:/jffs/usr/sbin:/jffs/usr/bin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin
To update the variable:
export PATH=/opt:$PATH
Now when you perform which wget, you should see /opt/wget
My recommendation (and what I did) was install wget from Entware using:
opkg install wget
This now gives the full version of wget in /opt/bin. You should now update your $PATH variable to have /opt/bin at the start of it, not just /opt.
Also, once you logout of our SSH session, the $PATH variable resets to what it was originally. If you want the change to be permanent, you can add /opt/etc/profile as a start-up command to Administration --> Command in the DD-WRT web interface.