OpenWrt Forum Archive

Topic: WGET lost??? (sh: wget: not found)

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I have another problem with my router (ASUS WL500p).
I have no idea what is different but command wget is.. missing? When I'm trying to use "ipkg update, install or whatever ...." I have such error:


root@OpenWrt:~# ipkg update
Downloading http://downloads.openwrt.org/kamikaze/7 … s/Packages
sh: wget: not found
Downloading http://downloads.openwrt.org/kamikaze/p … l/Packages
sh: wget: not found
Downloading http://downloads.x-wrt.org/xwrt/kamikaz … s/Packages
sh: wget: not found
An error ocurred, return value: 3.
Collected errors:
ipkg_download: ERROR: Command failed with return value 127: `wget --passive-ftp    -q -P /tmp/ipkg-yEpQXt http://downloads.openwrt.org/kamikaze/7.09/brcm-2.4/packages/Packages'
ipkg_download: ERROR: Command failed with return value 127: `wget --passive-ftp    -q -P /tmp/ipkg-yEpQXt http://downloads.openwrt.org/kamikaze/packages/mipsel/Packages'
ipkg_download: ERROR: Command failed with return value 127: `wget --passive-ftp    -q -P /tmp/ipkg-yEpQXt http://downloads.x-wrt.org/xwrt/kamikaze/7.09/brcm-2.4/packages/Packages'

I have normally BusyBox, but it's not visible somehow... Any ideas?

Does it show up when you run 'busybox | grep wget'? Did you build this image yourself?

Thanks for answer.
Yes, it is in busybox package. This is standard Kamikaze. What is most funny, it worked before. Now it's not and I have no bloody idea when it stopped....

Try this:

ln -s `which busybox` /bin/wget

and then

wget --help

Does it work?

root@OpenWrt:~# ln -s 'which busybox' /bin/wget
root@OpenWrt:~# wget --help
-ash: wget: not found

As you can see, it doesn't... sad

I have something:
Metalink was somehow incorrect (red in WinSCP). When I want create new one, it doesn't appear on list hmm

EDIT2:
I can use normally wget by:

busybox wget ....

But "wget" as single command fails.

(Last edited by sirfalo on 4 Jun 2008, 18:24)

Ok, I've handled this in other way. I've donwloaded manually wget from repository and installed.
But question still remains - what is the real reason...

sirfalo: You did not type the ln command correctly (although it was an easy mistake to make.)

agaffney said you should type: ln -s `which busybox` /bin/wget
(with backticks)

You typed: ln -s 'which busybox' /bin/wget
(with apostrophes)

Instead of the backticks, which are easily mistaken for apostrophes, the following command should have worked:

ln -s $(which busybox) /bin/wget

Basically, what agaffney is implying is that something removed the /bin/wget symlink and his command would have put it back.

The wget package that you installed is not the same as the busybox wget.  It is larger and supports more options, etc., but since it is working for you there is no need to change it now.

Thank you smile
I've deleted this WGET.
Now with this corrected backticks it's working again smile

(Damn, this linux is compicated;) )

The discussion might have continued from here.