Entware / Entware-ng

Entware-ng
GNU General Public License v2.0
1.21k stars 152 forks source link

AC68U RUN entware-setup.sh Error #703

Closed Raytlty closed 7 years ago

Raytlty commented 7 years ago

AC68U RUN entware-setup.sh Error

OS

Linux RT-AC68U-A158 2.6.36.4brcmarm #9 SMP PREEMPT Fri Feb 10 23:59:16 CST 2017 armv7l ASUSWRT-Merlin

Disk information

admin@RT-AC68U-A158:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                26.0M     26.0M         0 100% /
devtmpfs                124.7M         0    124.7M   0% /dev
tmpfs                   124.8M    912.0K    124.0M   1% /tmp
/dev/mtdblock4           62.8M      8.9M     53.9M  14% /jffs
/dev/sda5               117.2G     32.5M    110.9G   0% /tmp/mnt/gg

/dev/sda5/ is ext4 fs

Main Problem

admin@RT-AC68U-A158:/# 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/gg
 =>  Please enter partition number or 0 to exit
[0-1]: 1
 Info:  /tmp/mnt/gg selected.

 * Warning:  Found previous installation, saving...
 Info:  Creating /tmp/mnt/gg/entware folder...
mkdir: can't create directory '/tmp/mnt/gg/entware': File exists
 * Warning:  Deleting old /tmp/opt symlink...
 Info:  Creating /tmp/opt symlink...
 Info:  Creating /jffs scripts backup...
tar: removing leading '/' from member names
 Info:  Modifying start scripts...
Info: Checking for prerequisites and creating folders...
Warning: Folder /opt exists!
mkdir: can't create directory '/opt/bin': Invalid argument
mkdir: can't create directory '/opt/etc/': Invalid argument
mkdir: can't create directory '/opt/lib/': Invalid argument
mkdir: can't create directory '/opt/sbin': Invalid argument
mkdir: can't create directory '/opt/share': Invalid argument
mkdir: can't create directory '/opt/tmp': Invalid argument
mkdir: can't create directory '/opt/usr': Invalid argument
mkdir: can't create directory '/opt/var/': Invalid argument
mkdir: can't create directory '/opt/var/': Invalid argument
mkdir: can't create directory '/opt/var/': Invalid argument
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
ln: ld-linux.so.3: File exists
ln: libc.so.6: File exists
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

Hi, AM I describe the problem clearly. My router is ASUS-AC68U.

zyxmon commented 7 years ago

My guess is - you are using obsolete entware installation script from ASUSWRT. Please contact firmware builder or ask your question on snb forum. You can also try standard install scripts from github + some manual fixes.