WR840N fails to download package

ok sure
but where I enter this codes?
I am confused !!

in putty?

Yes, use PuTTY to connect over ssh.

It would help to post both your input and output as I did, as things like this can be very subtle.
image <== use this </> button

1 Like

...yes.

You are connected to your OpenWrt via that PuTTy connection... attempting to troubleshoot your software downloads, correct???

We are all attempting to help you troubleshoot this.

Please remain clam and let us assist you in troubleshooting. Those commands:

  • will test connection to Goolge
  • will test connection to the OpenWrt downloads site

entered all codes :

root@OpenWrt:~# cd /tmp/
root@OpenWrt:/tmp#wget http://www.google.com/
Downloading 'wget'
Failed to establish connection
root@OpenWrt:/tmp# wget http://downloads.openwrt.org/releases/18.06.2/targets/ra
mips/mt76x8/packages/Packages.gz
Downloading 'http://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt76x8/packages/Packages.gz'
Failed to establish connection
root@OpenWrt:/tmp# rm index.html
rm: can't remove 'index.html': No such file or directory
root@OpenWrt:/tmp# rm Packages.gz
rm: can't remove 'Packages.gz': No such file or directory
root@OpenWrt:/tmp#

You cheated -- "wget wget" is what you entered!

Please paste exactly what was on the screen without editing it to "look good"

1 Like

wget wget get this error

Failed to allocate uclient context

--

iam not cheating , iam just trying to fix this :frowning:

Really, we need to see exactly what was entered and exactly what the errors and responses were.

1 Like

just copy the screen text, don't explain or translate

1 Like
root@OpenWrt:~# cd /tmp/
root@OpenWrt:/tmp# wget wget http://www.google.com/
Downloading 'wget'
Failed to allocate uclient context
root@OpenWrt:/tmp# wget http://downloads.openwrt.org/releases/18.06.2/targets/ra
mips/mt76x8/packages/Packages.gz
Downloading 'http://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt76x8/packages/Packages.gz'
Failed to establish connection
root@OpenWrt:/tmp# rm index.html
rm: can't remove 'index.html': No such file or directory
root@OpenWrt:/tmp# rm Packages.gz
rm: can't remove 'Packages.gz': No such file or directory
root@OpenWrt:/tmp#

Please see my edit above, please remove the extra wget I added, thanks.

@jeff, nonetheless, the OP cannot reach the downloads site.

I think we need to know if @pooya has edited his LAN or WAN connections.

Please paste the LAN and WAN sections of /etc/config/network

so this way get :

root@OpenWrt:~# cd /tmp/
root@OpenWrt:/tmp# wget http://www.google.com/
Downloading 'wget'
Failed to establish connection
root@OpenWrt:/tmp# wget http://downloads.openwrt.org/releases/18.06.2/targets/ra
mips/mt76x8/packages/Packages.gz
Downloading 'http://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt76x8/packages/Packages.gz'
Failed to establish connection
root@OpenWrt:/tmp# rm index.html
rm: can't remove 'index.html': No such file or directory
root@OpenWrt:/tmp# rm Packages.gz
rm: can't remove 'Packages.gz': No such file or directory
root@OpenWrt:/tmp#

yes i cant reach destanation ! but whyyyy ???

where can i find it ?

The OP is cheating...and we can tell.

:man_facepalming:

This isn't hard:

cd /tmp/
wget http://www.google.com/
wget http://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt76x8/packages/Packages.gz
rm index.html 
rm Packages.gz

You do not apparently have Internet connectivity. To figure this out, seeing how your router decides to send packets is important. The output of

ip route

can help us with understanding that.

1 Like

Have you configured the WR840N as a router or dumb AP.

If router you should be connected to WAN port.

If dumb AP you need to define the gateway correctly

1 Like

i dont know what ! Please some one connect to my pc with anydesk !

iam confused :frowning:

I would connect the Cable from the modem to the WR840N WAN port

1 Like

you mean i must do that ?

Connect your device to your WAN port.