Joined: 07 Jan 2020 Posts: 5 Location: Seattle, WA
Posted: Tue Jan 07, 2020 12:18 Post subject: Entware Refusing to install
Any Assistance would be greatly appreciated....
Notice the line 43 and line 47 error's:
generic.sh: line 43: /opt/bin/opkg: not found
root@dd-wrt:/opt# ls -la /opt/bin
-rwxr-xr-x 0 root root 166920 Jan 7 04:00 opkg
unset LD_LIBRARY_PATH
unset LD_PRELOAD
unset LD_PRELOAD
echo 'Info: Checking for prerequisites and creating folders...'
echo 'Info: Checking for prerequisites and creating folders...'
if [ -d /opt ]; then
echo 'Warning: Folder /opt exists!'
else
mkdir /opt
fi
'[' -d /opt ]
echo 'Warning: Folder /opt exists!'
no need to create many folders. entware-opt package creates most
for folder in bin etc lib/opkg tmp var/lock
do
if [ -d "/opt/$folder" ]; then
echo "Warning: Folder /opt/$folder exists!"
echo 'Warning: If something goes wrong please clean /opt folder and try again.'
else
mkdir -p /opt/$folder
fi
done
echo 'Info: Basic packages installation...'
/opt/bin/opkg update
/opt/bin/opkg update
generic.sh: line 43: /opt/bin/opkg: not found
if [ $TYPE = 'alternative' ]; then
/opt/bin/opkg install busybox
fi
'[' generic '=' alternative ]
/opt/bin/opkg install entware-opt
/opt/bin/opkg install entware-opt
generic.sh: line 47: /opt/bin/opkg: not found
Fix for multiuser environment
chmod 777 /opt/tmp
chmod 777 /opt/tmp
for file in passwd group shells shadow gshadow localtime; do
if [ $TYPE = 'generic' ]; then
if [ -f /etc/$file ]; then
ln -sf /etc/$file /opt/etc/$file
else
[ -f /opt/etc/$file.1 ] && cp /opt/etc/$file.1 /opt/etc/$file
fi
else
if [ -f /opt/etc/$file.1 ]; then
cp /opt/etc/$file.1 /opt/etc/$file
else
[ -f /etc/$file ] && ln -sf /etc/$file /opt/etc/$file
fi
fi
done
echo 'Info: Congratulations!'
echo 'Info: If there are no errors above then Entware was successfully initialized.'
echo 'Info: If there are no errors above then Entware was successfully initialized.'
echo 'Info: Add /opt/bin & /opt/sbin to $PATH variable'
echo 'Info: Add /opt/bin & /opt/sbin to $PATH variable'
echo 'Info: Add "/opt/etc/init.d/rc.unslung start" to startup script for Entware services to start'
echo 'Info: Add "/opt/etc/init.d/rc.unslung start" to startup script for Entware services to start'
if [ $TYPE = 'alternative' ]; then
echo 'Info: Use ssh server from Entware for better compatibility.'
fi
'[' generic '=' alternative ]
echo 'Info: Found a Bug? Please report at https://github.com/Entware/Entware/issues'
echo 'Info: Found a Bug? Please report at https://github.com/Entware/Entware/issues'
so here's some info about my system:
Iam running dd-wrt latest firmware 1/05/2020:
Router Model Linksys E1200 v2
Firmware Version DD-WRT v3.0-r41892 mega (01/05/20)
Kernel Version Linux 3.10.108-d8 #1348 Sun Jan 5 13:46:22 +04 2020 mips
first format drive to appropriate drive format...
thumb drive ext2, hdd ext3/4
than mount it to opt
than install entware...follow the guide from the link, it works ok... _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55460 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55460 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
first format drive to appropriate drive format...
thumb drive ext2, hdd ext3/4
than mount it to opt
than install entware...follow the guide from the link, it works ok...
I'm using a cifs mounted drive _________________ Router Model Linksys E1200 v2
Firmware Version DD-WRT v3.0-r41892 mega (01/05/20)
Have you actually added the unslung command to your start up and shut down and restarted or manually started entware using the command it mentions?
As your using cifs i assume that's on another drive or system? Could be if you have done the above its running the command before cifs is mounted, you could try delaying the start of entware in case.
I can't think of any other issue if you have enough space on your drive (and its formatted/allocated correctly) as you can find opkg in opt/bin
Have you formatted the drive to have two partitions?
You need at least two partitions. One may be mounted as as cifs and used for storage in general. Opt needs to be on a separate partition. _________________ Netgear R7000 on Build 55109
Asus AC-AC68U rev. C1 (AP) on Build 55109
Asus AC-68U rev. A1 on Build 54604
Asus AC-68U rev. A1 on Build 53339
Joined: 08 May 2018 Posts: 14125 Location: Texas, USA
Posted: Thu Jan 16, 2020 18:15 Post subject:
$(PATH) seems to be rattling around in my brain re-reading this thread. You shouldn't have had to export the default firmware command path for it to work, instead use the variable $(PATH), if my brain is functioning right today. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net