OpenWrt Forum Archive

Topic: Failed to download, wget returned 1 when trying to opkg update

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

Hello friend, I'm new to both Linux and OpenWRT.

I have TP-Link WR841n v11 and since it's not officially supported, I use this custom bin file from this thread :

https://forum.openwrt.org/viewtopic.php?id=63657

I cannot access LuCi after I upgrade from stock firmware to OpenWRT even though OP said it came with LuCi. So I just run

opkg update

. However it gave me this error :

root@OpenWrt:~# opkg update
Downloading http://volatilesystems.org/dl/openwrt/chaos_calmer/latest/ar71xx/packages//Packages.gz.
wget: server returned error: HTTP/1.1 404 Not Found
Downloading http://volatilesystems.org/dl/openwrt/chaos_calmer/latest/ar71xx/packages//Packages.sig.
wget: server returned error: HTTP/1.1 404 Not Found
Signature check failed.
Remove wrong Signature file.
Collected errors:
 * opkg_download: Failed to download http://volatilesystems.org/dl/openwrt/chaos_calmer/latest/ar71xx/packages//Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://volatilesystems.org/dl/openwrt/chaos_calmer/latest/ar71xx/packages//Packages.sig, wget returned 1.

And when I tried

/etc/opkg.conf

It gave me

Permission denied

error

Any idea why?

(Last edited by warheat1990 on 21 Apr 2016, 19:30)

warheat1990 wrote:
 * opkg_download: Failed to download http://volatilesystems.org/dl/openwrt/chaos_calmer/latest/ar71xx/packages//Packages.gz, wget returned 1.

That file doesn't exist.
Looking at that site you probably need to change the url to http://volatilesystems.org/dl/openwrt/1 … /packages/ in opkg.conf. (Alhough 'latest' is a volatile word. You'd probably better pick one of the supplied version numbers)

And when I tried

/etc/opkg.conf

It gave me

Permission denied

error

Any idea why?

It's a configuration file, not an executable. So you can't execute it. If you want to edit it, execute

vi /etc/opkg.conf

(And google for a manual for vi. It's a nasty editor.)

The discussion might have continued from here.