"opkg update" and "opkg install luci-ssl" commands mostly failing due to no internet connection

Hi guys, i'm a noobie.

I am looking to flash LEDE on my Linksys E1700 wireless-N gigabit router (which uses the MediaTek MT7620A). I followed the flashing guide and the quickstart guide.

I am running windows 10 x64 and using PuTTY. I am wanting to use the linksys router to connect to my isp's talktalk huawei HG633 modem/router and just use my isp's modem/router as a modem.

Here is a log of the problem that i am having with "opkg update": http://pastebin.com/2KXk96Vt

After hundreds of attempts i was able to download all the files and successfully install them, usually none downloaded or only the first ~70% of files. I am now having the same problem with the "opkg install luci-ssl" command too, here is my log: http://pastebin.com/JQVweU84

My isp's modem/router uses stock settings, the only thing that i have changed in windows 10 is that i set an ip address of 192.168.1.33, all other settings on my windows installation are stock in regards to networking. Am i doing something wrong, do i need to change a setting in windows or in my isp router, something like dhcp? It is a shame that the downloading of these updates and pinging 8.8.8.8 and www. google .com (without the spaces, this forum only lets me paste 2 links as i'm a new user) usually don't work or only work for a few seconds, usually not enough to download all these updates.

Wget error 4 means network failure. Try installing the packages one more while you open a second SSH session and do logread -f there, see I'd you get any network errors.

what command do i need to type in a 2nd ssh putty window, i tried typing "logread -f" but i just get a blank new line, nothing appears on the screen and no .txt file appears on my desktop with a log. I tried "logread" without the " -f" and i get this: http://pastebin.com/2JguwrKC

after many hundreds of attempts i was able to successfully enter the "opkg update" and "opkg install luci-ssl" commands. When i go to https://192.168.1.1 i get an "unable to connect" error screen in firefox. When i go to http://192.168.1.1 i get the following error message:

Unable to launch the requested CGI program:
/www/cgi-bin/luci: No such file or directory

Based on your symptoms and the log items, you have a subnet config problem. Problem is not related to opkg at all.

Your LEDE router sees 192.168.1.X subnet both on its WAN side (from your modem) and on its LAN side. So, all DNS/DHCP services and routing logic get confused.

   WAN:
   daemon.notice netifd: wan (819): udhcpc: sending select for 192.168.1.4
   daemon.notice netifd: wan (819): udhcpc: lease of 192.168.1.4 obtained, lease time 86400
   ...
   LAN:
   daemon.info dnsmasq-dhcp[954]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h

Router gets 192.168.1.4 as its WAN address (modem's LAN network = router's WAN) and tries to provide 192.168.1.100 -- 192.168.1.249 for its own LAN clients (router's LAN). So 192.168.1.x on both sides of the router. Impossible unless you have a relay setup.

You need to config either your modem or your router to assign some other subnet (like 192.168.2.x or 10.10.10.x) for its LAN DHCP.

Note that if you configure the LEDE router to use 192.168.2.X for LAN, then the router's address will be 192.168.2.1 in future. Remember to set that in router's network LAN interface config.

EDIT:
Easy solution from SSH console. Edit /etc/config/network and the "lan" interface section (shown below). Just replace 192.168.1.1 with 192.168.2.1, save and reboot.

config interface 'lan'
        option type 'bridge'
        option ifname 'eth1'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

I assume that you have an editor (nano, joe, vi) installed.

Or do it with a "sed" command:

sed -i -e s/192.168.1.1/192.168.2.1/ /etc/config/network

That would replace 192.168.1.1 with 192.168.2.1 in the router's network config.

After rebooting, the router should be accessible in 192.168.2.1

the 'sed' command worked, i now don't have internet connectivity problems on the linksys lede router, i can ping and do opkg reliably now.

Unfortunately i still can't get the webui to display. When i go to: https://192.168.2.1 for a split second i see some info about Luci LUA configuration interface appear then are replaced by the same error as before:

Unable to launch the requested CGI program:
/www/cgi-bin/luci: No such file or directory

I made a new logread log for you: http://pastebin.com/iqyxJ8DF

Fixed quickstart guide, https://lede-project.org/docs/guide-quick-start/start
If it is unclear, please tell me.

as for the luci not appearing, maybe you didn't download all packages or something was installed wrong. Try to uninstall luci and reinstall it again.
Or you can do a soft factory reset and try again from there https://lede-project.org/docs/user-guide/failsafe_and_factory_reset#soft_factory_reset

EDIT: who is flagging the posts in this thread so that they get hidden?

the post might be hidden as it contained a link to pastebin which wouldn't let me paste that url but editing the post to add the pastebin link afterwords worked. I guess the forum software must have auto detected that link and hidden the whole post or something. I had no problem with pastebin links yesterday, maybe one of the mods decided to ban that domain since yesterday or something.

Edit: All my previous posts in this thread are now hidden now, just noticed that.

Edit2: I tried this but the webif still doesn't work:

root@lede:~# opkg remove luci-ssl
Removing package luci-ssl from root...
root@lede:~# opkg install luci-ssl
Installing luci-ssl (git-16.365.41161-ca79611-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/luci/luci-ssl_git-16.365.41161-ca79611-1_all.ipk.
Configuring luci-ssl.
root@lede:~#

for some reason installing luci-ssl only downloads and installs 1 file instead of lots.

It can be because deleting a package does not delete its dependencies, try with this instead

opkg remove luci-ssl --force-removal-of-dependent-packages

1 Like

tried with your new command, it still only installs 1 file instead of lots.

root@lede:~# opkg remove luci-ssl --force-removal-of-dependent-packages
Removing package luci-ssl from root...
root@lede:~# opkg install luci-ssl
Installing luci-ssl (git-16.365.41161-ca79611-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/luci/luci-ssl_git-16.365.41161-ca79611-1_all.ipk.
Configuring luci-ssl.
root@lede:~#

The force argument may need to be before the "remove".

But you might also do

opkg --force-reinstall install luci

The setup may also be gone somehow wrong during your troubles, so it might be better to start from scratch.

firstboot
reboot

That should clear all settings and remove packages. Router will be like just after flash. Then the sed command to set up address again. Then proper installs of all packages again.

the "opkg --force-reinstall install luci" downloaded a lot more but still didn't work.

I ran the firstboot and reboot commands then ran the sed command and updated the packages. I'm delighted to announce that i have successfully booted into the luci webui :slight_smile:

thank you very much for your help guys!!!!

you should add these instructions to your site to show people how to revert back to their stock manufacturer's firmware: https://forum.openwrt.org/viewtopic.php?id=34277

I have reverted back to stock as i have found a better router that has a built-in adsl2+/vdsl2 modem built-in (Linksys X6200) and costs just £35.99 from amazon, it also has dual band 750Mbps wireless AC and a usb port. Unfortunately there doesn't appear to be a DD-WRT, OpenWRT or LEDE firmware available for it, it was released in January 2016 with a launch price of £80.

Chipset: Realtek RTL8685
Specs: http://www.linksys.com/gb/p/P-X6200/

[quote="spaceship9876, post:13, topic:748, full:true"]you should add these instructions to your site to show people how to revert back to their stock manufacturer's firmware: https://forum.openwrt.org/viewtopic.php?id=34277[/quote]The procedure to revert to stock depends from the device, just flashing stock image brutally like that may work or may brick the device (as others have reported in that thread too, btw). In the device's page on the OpenWRT wiki (and here too eventually when they finish importing stuff) there should be info about that.

[quote]i have found a better router that has a built-in adsl2+/vdsl2 modem built-in
Chipset: Realtek RTL8685
Specs: http://www.linksys.com/gb/p/P-X6200/[/quote]AFAIK Only LEDE modem/routers are the ones with a lantiq chipset. The main issue is that the modem firmware/documentation is usually not available for other devices, so at most you get a router with a non-functional modem.
see here the full table with only lantiq devices listed, see if you find one around https://lede-project.org/toh/views/toh_extended_all?dataflt[Target_target*~]=lantiq&dataflt[CPU*~]=

I personally use(d) a ehternet modem with bridging over PPPoE, a DrayTek Vigor 120 (I got it for like 30 euros on ebay) as it seems to be the only device in the whole known universe that converts PPPoA in PPPoE automatically, so I could bridge it easily on a LEDE router even if my old ISP was using PPPoA for my internet contract (this seems to be a hot issue in United Kingdom, not just in Italy). see the product page: http://www.draytek.co.uk/products/business/vigor-120

If your ISP is using PPPoE, any decent modem that can also run in full bridge mode will do. (in bridge mode the modem is just a dumb modem doing low-level work, there is no NAT, login and password for your internet contract are in your router)