Help on OPKG Update : Failed to download

Dear All,

I have just bought a NetGear EX3700 and installed snapshot version of Openwrt, the flash was sucessful, but can´t install luci, makind the router useless, here I post the log of the problem:

login as: root


BusyBox v1.29.3 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r8284-212aa33
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7620/packages/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/targets/ramips/mt7620/packages/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7620/kmods/4.14.74-1-07adef10283aff998cdc411ef754b152/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/targets/ramips/mt7620/kmods/4.14.74-1-07adef10283aff998cdc411ef754b152/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.gz

Collected errors:
 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/targets/ramips/mt7620/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/targets/ramips/mt7620/kmods/4.14.74-1-07adef10283aff998cdc411ef754b152/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.


I'm using a Windows 8,1 machine and my internet connection is being made by WIFI, btw as soon as I connect Ethernet cable my internet connection dies, what am I doing wrong?

Is it possible to revert to stock firmware using putty?

Thanks in advance

1 Like

https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset

I don't recall, but I suspect that setting a root password may "magically" resolve your issues.

Looks like you don't have an "upstream" connection of any type. Knowing your ISP and connectivity and what you've configured past "defaults" would be helpful.

1 Like

Please define a root password... if you first login with your terminal, it should pop up and ask you to set a root pw....then....you can edit other relevant settings and fix the problem....

Look your protocoll please, it says:

There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.

After setting root pw, you gain full access

if your going to install luci anyway and don't have a specific reason to use snapshots, then consider installing an official release

Firmware OpenWrt Install URL:
http://downloads.openwrt.org/releases/18.06.1/targets/ramips/mt7620/openwrt-18.06.1-ramips-mt7620-ex3700-ex3800-squashfs-factory.chk

or

Firmware OpenWrt Upgrade URL:
http://downloads.openwrt.org/releases/18.06.1/targets/ramips/mt7620/openwrt-18.06.1-ramips-mt7620-ex3700-ex3800-squashfs-sysupgrade.bin

1 Like

That wget error message pretty much tells the essential. You have somehow wrong network configuration and the router itself has no internet connectivity.

Password setting will not help, quite unrelated.

2 Likes

Alright, thanks for all your help, really happy that this community is quite alive and helpful.

Really I should had flashed official release instead of a snapshot, now is a utterly mess.

However I have searched OEM website, and there's a way to flash a firmware over these cases as per:

https://kb.netgear.com/000059633/How-to-upload-firmware-to-a-NETGEAR-router-using-TFTP-client

I'm guessing bootloader isn't locked, instead of flashing oem stock firmware, gonna try it with official 18.06.01.

Is there a way to flash this firmware through petty?

Download a release image to your computer, scp it to /tmp on the router, and flash using command line: https://openwrt.org/docs/guide-user/installation/sysupgrade.cli

I think the scp command is included with putty, and if not there's Winscp.

1 Like

Use this if your going to sysupgrade

Thanks, I think I got it, but how to transfer the bin file from the desktop or a specific folder to the router's /tmp folder.

Also I have found the flashing command from the OpenWRT website

root@lede:/# sysupgrade -v /tmp/*.bin

You use scp on your computer to copy it to the router. You'll probably figure it out faster if you install Winscp.

$ scp openwrt-sysupgrade.bin root@192.168.1.1:\/tmp\/

mbo2o, I reckon you must be a linux expert or close to that.

I should rename the bin file for my router to "openwrt-sysupgrade.bin", and let's suppose the bin file is stored on my "C:\Bin" folder on my hard disk as an example, how does putty identifies the path of the file to copy it to internal memory of the router?

Thanks

If your using Putty on windows you also have scp command, you need to open a windows command prompt (cmd.exe) and run the scp commnd in the previous post from C:\Bin for example.

pscp -scp openwrt.bin root@192.168.1.1:/tmp/

Sorry ( the screenshot below is from openSSH ) which I didn't realise was part of windows 10 until just now.

Capture

Thanks mbo2o

Now I understood, many thanks for your help and all of you.

Hopefully by night time I will have a working router repeater.

1 Like

OPKG Update : Failed to download

this is normal if your box does not access the internet -> configure your network

test with by exemple : ping google.com

I don't know what has happened for not downloading anything, but one thing I notice, as soon as I plug my ethernet cable to my laptop internet just dies, but it doesn't always happens, tried to bridge Ethernet with Wifi, also the same doesn't do nothing.

I guess best solution is to upgrade offline to a firmware with luci embedded.

Failed to download …
This “famous” wget 4 error in opkg is just a general error from wget that says that your network settings are wrong, see wget manual. It has almost nothing to do with opkg itself.

Solution: Check your network settings and get your internet access up and running, then it should work.

ssh 192.168.1.1 root root
edit etc/config/network similar to this

config interface 'lan'
option type 'bridge'
option ifname 'eth0 eth0.1 eth0.2'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option gateway '192.168.1.1' > my router is 192.168.1.1
option dns '192.168.1.1 8.8.8.8
option ipaddr '192.168.2.251' > for me i have changed with this

or test:with uci command
uci set network.lan.dns=8.8.8.8
uci commit network
reboot

after opkg update
opkg iinstall luci

if i have a little time i can compile for you a firmware with LUCI

2 Likes

alright tried to copy upgrade.bin to tmp got this error, btw renamed the long name to something simple like 1.bin

scp: /root/tmp/1.bin: No space left on device

/root/tmp/1.bin is not /tmp/, the former would be on your flash, which is obviously too small to hold both the running and the new firmware, the later is in RAM (tmpfs), which should be big enough.

1 Like

test with this ( 8M ) :
https://share.orange.fr/#5xavBUzI4S19d931864e

LUCI and some kmods: NTFS3G , FAT32 , Relayd ...