OpenWrt Forum Archive

Topic: What is the best way to recover a failed installation

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

I tried to install OpenWRT on a TL-WDR3600 router, I do not know what happened in the process that when connecting via ssh only the BusyBox v1.27.2 () built-in shell (ash) interface appears and the LuCi installation does not exist.

I tried to install LuCi manually and then install another stable version but when running opkg update the system returns the following errors. I do not know if they are due to problems in the repository or in the connection to the internet.

Anyway, what I want is to install a stable version and unanswered questions torment me ...

Can a new update of OpenWRT be installed directly from BusyBox?
What would be the least risky solution?
By changing the URL of the repository, the installation of LuCi is solved?

root@OpenWrt:~# opkg update
Downloading ...downloads.lede-project.org/snapshots/targets/ar71xx/generic/packages/Packages.gz
Failed to allocate uclient context
*** Failed to download the package list from ... downloads.lede-project.org/snapshots/targets/ar71xx/generic/packages/Packages.gz

Downloading ...downloads.lede-project.org/snapshots/packages/mips_24kc/base/Packages.gz
Failed to allocate uclient context
*** Failed to download the package list from ... downloads.lede-project.org/snapshots/packages/mips_24kc/base/Packages.gz

Downloading ...downloads.lede-project.org/snapshots/packages/mips_24kc/luci/Packages.gz
Failed to allocate uclient context
*** Failed to download the package list from ... downloads.lede-project.org/snapshots/packages/mips_24kc/luci/Packages.gz

Downloading ...downloads.lede-project.org/snapshots/packages/mips_24kc/packages/Packages.gz
Failed to allocate uclient context
*** Failed to download the package list from ... downloads.lede-project.org/snapshots/packages/mips_24kc/packages/Packages.gz

Downloading ...downloads.lede-project.org/snapshots/packages/mips_24kc/routing/Packages.gz
Failed to allocate uclient context
*** Failed to download the package list from ... downloads.lede-project.org/snapshots/packages/mips_24kc/routing/Packages.gz

Downloading ...downloads.lede-project.org/snapshots/packages/mips_24kc/telephony/Packages.gz
Failed to allocate uclient context
*** Failed to download the package list from ... downloads.lede-project.org/snapshots/packages/mips_24kc/telephony/Packages.gz

Collected errors:
 * opkg_download: Failed to download ... downloads.lede-project.org/snapshots/targets/ar71xx/generic/packages/Packages.gz, wget returned 1.
 * opkg_download: Failed to download ... downloads.lede-project.org/snapshots/packages/mips_24kc/base/Packages.gz, wget returned 1.
 * opkg_download: Failed to download ... downloads.lede-project.org/snapshots/packages/mips_24kc/luci/Packages.gz, wget returned 1.
 * opkg_download: Failed to download ... downloads.lede-project.org/snapshots/packages/mips_24kc/packages/Packages.gz, wget returned 1.
 * opkg_download: Failed to download ... downloads.lede-project.org/snapshots/packages/mips_24kc/routing/Packages.gz, wget returned 1.
 * opkg_download: Failed to download ...downloads.lede-project.org/snapshots/packages/mips_24kc/telephony/Packages.gz, wget returned 1.

Use this firmware.  LEDE is OpenWrt under a different name.
https://downloads.lede-project.org/rele … pgrade.bin

If router is connected to the Internet you can wget (cd /tmp && wget <url>) it directly to the /tmp directory.  Change the https to http since the default wget does not support https.  If router is not connected to the Internet, scp the bin file to /tmp using a ssh / scp client on your PC.

Then run sysupgrade -n /tmp/lede-17.01.4-ar71xx-generic-tl-wdr3600-v1-squashfs-sysupgrade.bin to flash it.  The -n option will erase all settings and give you a clean start.  You should then have a web interface and opkg will work.

It works!!!! Thank you very much!

The discussion might have continued from here.