Problem downloading OpenWrt release to router using wget

I want to download a sysupgrade image onto my router, but the download is failing. Download of a generic http page works fine (see below). The same download command on an several year old OpenWrt router works fine.

The router is running 19.07.1. Anyone else see this problem?

root@wrt:/tmp# wget
Downloading ''
Connecting to
Failed to redirect to /releases/19.07.2/targets/ramips/mt76x8/openwrt-19.07.2-ramips-mt76x8-tl-wr841n-v13-squashfs-sysupgrade.bin on

root@wrt:/tmp# wget
Downloading ''
Connecting to
Writing to 'index.html'
index.html 100% |*******************************| 200k 0:00:00 ETA
Download completed (205250 bytes)

My suggestion is that the download page are redirecting all http requests to https since some time.
Some months ago a download through plain http was possible.
You need at least something like libustream-xxx installed as package. Xxx is your crypto library flavor like openssl or mbedtls.
Then you need also the ca-cartificates package or do:

wget --no-check-certificate https://...

Wow. That makes it difficult for most people to upgrade their OpenWRT from the command line. Quite a few wiki pages use a wget of the http URL.

You can download the file to your computer, then send it to the router using SCP or similar.


I have the same problem. Really want to upgrade firmware from command line, but can't. Each step with big effort. Have you found solution? I just don't want use scp approach because I see straight way bit have a glass wall.

What does that mean exactly?

1 Like

(And I remember when users in the past were concerend that the firmware was over HTTP instead of times change...)

@yarbash83, welcome to the community!

You can simply install the needed CA and TLS libraries...seems a bit much when your're about to immediately flash it though.

1 Like

or upload u files manualy or upload it in another server ?

That means that I just want to use wget right now without any other issues but can't, because in the very beginning of process I have a problem that can't solve in one minute.

Yeah, thanks. Will spent a little time to understand the situation. Merely when you want to quickly upgrade your device at 01:00 am and meet the the unclear problem it's a bit frustrating moment. )))

1 Like

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