What's new

Entware-ng installation error

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Marko Polo

Senior Member
I decided to install Entware after my unsuccessful experience with Optware, but have problems here too.
I followed the manual and here is my script output:

Code:
#:/tmp/mnt/DOWNLOADS# entware-setup.sh
 Info:  This script will guide you through the Entware installation.
 Info:  Script modifies "entware" folder only on the chosen drive,
 Info:  no other data will be changed. Existing installation will be
 Info:  replaced with this one. Also some start scripts will be installed,
 Info:  the old ones will be saved on Entware partition with name
 Info:  like /tmp/mnt/sda1/jffs_scripts_backup.tgz
 Info:  Looking for available partitions...
[1] --> /tmp/mnt/CLOUDS
[2] --> /tmp/mnt/DOWNLOADS
 =>  Please enter partition number or 0 to exit
[0-2]: 2
 Info:  /tmp/mnt/DOWNLOADS selected.
 Info:  Creating /tmp/mnt/DOWNLOADS/entware folder...
 Info:  Creating /tmp/opt symlink...
ln: /tmp/opt: File exists
 Info:  Creating /jffs scripts backup...
tar: /jffs/scripts/*: No such file or directory
tar: error exit delayed from previous errors
 Info:  Modifying start scripts...
Info: Checking for prerequisites and creating folders...
mkdir: can't create directory '/opt': File exists
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
Info: Opkg package manager deployment...
/opt/bin/opkg: No such file or directory
chmod: /opt/bin/opkg: No such file or directory
/opt/etc/opkg.conf: No such file or directory
/opt/lib/ld-2.23.so: No such file or directory
/opt/lib/libc-2.23.so: No such file or directory
/opt/lib/libgcc_s.so.1: No such file or directory
sh: cd: line 31: can't cd to /opt/lib
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
/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

What should I do?
It says mkdir: can't create directory '/opt': File exists but it does NOT exist. Neither it's added to PATH, nor to target partition. Here is listing from partition I am installing Entware to:

Code:
drwxrwxrwx   11 polo root          4096 Jul 19 21:26 Downloads
drwxrwxrwx    2 polo root          4096 Jul 20 09:46 entware
-rw-rw-rw-    1 polo root           363 Jul 20 09:46 jffs_scripts_backup_2017-07-20_09-46.tgz
 
Your /jffs/ partition seems nonexistent or corrupted. Consider setting the reformatting tick in Administration/System and reboot router to do so.
Make backups of files in there first.

Also, remnants of the Optware install appear to be present:
Code:
rm -f /tmp/opt
rm -f /opt
If you had Download Master installed at one time, there's more:
Code:
nvram set apps_mounted_path=
nvram set apps_dev=
nvram set apps_state_autorun=
nvram set apps_state_enable=
nvram set apps_state_install=
nvram set apps_state_switch=
nvram commit
 
Thanks, router reboot helped, and Entware was installed. Could you please clarify this thing I asked in the other thread:
And how to re-fetch new PATH value from profile.add without reboot?
Is it possible at all?
Also, it's interesting do I need paths like:
Code:
/mmc/bin
/mmc/sbin
/mmc/usr/bin
/mmc/usr/sbin
in my $PATH? These dirs are non-existent on my device.
 
And how to re-fetch new PATH value from profile.add without reboot?
Is it possible at all?
By running $HOME/profile.add if that's where the file is.
You need to log out and back in with your SSH client for this to take effect.
Also, it's interesting do I need paths like:
/mmc/*
I have no idea what this is used for, mine is empty.
I suppose if Download manager or Optware is installed this is added to the $PATH when needed.
 
Thanks, router reboot helped, and Entware was installed. Could you please clarify this thing I asked in the other thread:

Is it possible at all?
Also, it's interesting do I need paths like:
Code:
/mmc/bin
/mmc/sbin
/mmc/usr/bin
/mmc/usr/sbin
in my $PATH? These dirs are non-existent on my device.
I've have the /mmc directory on the routers I have with DD-WRT firmware. But not the subdirectories. The /mmc directories and subdirectories are also part of the default $PATH variable.
Code:
/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

Looking at the DD-WRT wiki, it appears the /mmc directories is an SD Card replacement alternative for /jffs that is an option for Optware.

http://www.dd-wrt.com/wiki/index.php/Optware
http://www.dd-wrt.com/wiki/index.php/Optware,_the_Right_Way

Probably okay to remove those directories and files.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top