[Newbie] impossible to run "opkg update"

I know that this question has been asked several time, but I tried all the answer and nothing worked for me :
I just got an Linksys wrt 1900ac, I want to make it a VPN router, so I just flashed OpenWrt 18.06.4, I was able to connect devices to it (I just plugged an ethernet cable from my main router to my soon to be vpn router) I enabled the wifi, and was able to connect my phone and laptop to it, but when I go to putty, in order to install shadowsocks (this is the main reason why I'm doing all this) all the tutos I found start by asking to run "opkg update" but here what I have after running this command :

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/releases/18.06.4/targets/mvebu/cortexa9/packages/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/targets/mvebu/cortexa9/packages/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06.4/targets/mvebu/cortexa9/kmods/4.14.131-1-994eede0975f460c1e52fa5947e65fc6/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/targets/mvebu/cortexa9/kmods/4.14.131-1-994eede0975f460c1e52fa5947e65fc6/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/base/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/base/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/luci/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/luci/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/packages/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/packages/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/routing/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/routing/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/telephony/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/telephony/Packages.gz

Collected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/targets/mvebu/cortexa9/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/targets/mvebu/cortexa9/kmods/4.14.131-1-994eede0975f460c1e52fa5947e65fc6/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/base/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/luci/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/routing/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/packages/arm_cortex-a9_vfpv3/telephony/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.

So after trying chaging the ip adress of the linksys, my main router, a dlink is 192.168.0.1 And my Linksys is 192.168.1.1 (I even changed it to 192.168.1.2) but nothing happened...
I decided to skip the Putty part, and I went with ftp, I was able to send and install some files, except this one : https://ibb.co/NYYSbz7 . I had that dependancy error.

When I go to network, diagnosis, I have : ping sendto network unreachable. and when I try to nslookup let's say openwrt.org I have connection timed out; no servers could be reached But yet, I was able to connect my phone to that router and I was able to use access to many websites.

So, I have a dlink, internet is there, so I'm using one Ethernet cable, from the dlink to the Linksys, and with another Ethernet cable, from the Linksys to my laptop. And I'm in China (I don't know if it's a relevant information)

I hope my summary of the situation dosn't sound stupid, I'm a real newbie in this router world, I hope you guys can help me with it.
Please and thank you

Cheers!

you are confusing / missing proper interfaces....

Either

  1. LINKSYS-ON-OWN-SUBNET: plug the wan port of the linksys into the dlink...

  2. LINKSYS-ON-SAME-NETWORK: plug your dlink into a linksys lan port and give it proper ip / dns / gateway settings.

uci -q set network.lan.ipaddr="192.168.0.2"
uci -q set network.lan.dns="192.168.0.1"
uci -q set network.lan.gateway="192.168.0.1"
uci commit network
/etc/init.d/network reload
2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.