PDA

Bekijk de volledige versie : Problem with ipkg update



artur72
08-09-2008, 16:36
First, sorry for my english.

When i start ipkg update i get error:


Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
sh: wget: Permission denied
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 127: `wget -q -P /opt/ipkg-znDmt5 http://ipkg.nslu2-linux.org/feeds/


or

flashfs save && flashfs commit && flashfs enable && reboot

error is


/sbin/flashfs: /sbin/flashfs: 20: cat: Permission denied
/sbin/flashfs: /sbin/flashfs: 73: [: Permission denied
tar: Removing leading '/' from member names
tar: /tmp/local: Unknown file type
tar: Error exit delayed from previous errors
/sbin/flashfs: /sbin/flashfs: 73: ls: Permission denied

Please help me.

thejew
08-09-2008, 23:13
hmmm looks to me like a problem that wengi had some days ago and described it in the german part of this forum.
FastJack came with the solution for it, so gratz to him if this helps!

I believe you have bash installed, if so check your /opt/etc/profile and remove the following code:


PS1="[\u@\h \W]$ "
PATH=/opt/sbin:/opt/bin:/sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}

export PS1 PATH LD_LIBRARY_PATH

restart putty and it should work again hopefully

hope that helps!

artur72
10-09-2008, 07:42
I solve the problem,
Thank you all,
My profile now like this



#
# Bash initialization script
#

PS1="[\u@\h \W]$ "
PATH=/opt/sbin:/opt/bin:/sbin:/bin:/usr/sbin:/usr/bin
#LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}

export PS1 PATH LD_LIBRARY_PATH
export TERMINFO=/opt/share/terminfo
alias mc="mc -c"

peterke
22-09-2008, 10:42
Hi Friends,

i detected a similar problem, and can't understand. help please!:

Letssee contains:
#!/bin/sh
echo Success!

chmod is 755

the problem is:

login as: root
root@192.168.1.1's password:
-bash-3.2# cd /opt/etc/init.d
-bash-3.2# letssee
-bash: letssee: command not found
-bash-3.2# /opt/etc/init.d/letssee
Success!
-bash-3.2#

please HELP Dudes! :)

best regards,
peterke

peterke
22-09-2008, 11:38
PS: i allready tried to # all the lines in the profile.

peterke
22-09-2008, 12:12
Sorry, my mistake!
I forgot, that ./ is not in the PATH by default.
added, resolved.
thx!!!