Difference between revisions of "OPKG Update Error"

Wiki.TerraBase.info
Jump to navigation Jump to search
(Created page with "...here's a frustrating one.")
 
m
Line 1: Line 1:
...here's a frustrating one.
...here's a frustrating one;
 
==== The Error ====
<syntaxhighlight lang="text">
root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/mvebu/cortexa9/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/targets/mvebu/cortexa9/packages/Packages.gz
 
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz
 
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz
 
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz
 
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz
 
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz
 
Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/targets/mvebu/cortexa9/packages/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz, wget returned 5.
</syntaxhighlight>
 
==== The Issue (AKA Problem) ====
What now?  Well, the issue isn't with OPKG, it's with WGET (see the error at the end of the last couple of lines).  Specifically the version of WGET built into BusyBox is the issue.  Some mention that it might be a password issue, time issue, being behind a firewall issue, etc.  The problem noted here deals with the WGET issue.
 
==== The Solution ====
Download these five items (this article is about the Linksys WRT AC Series of routers, so the proper packages are noted here, if your SoC / CPU architecture is different, download the appropriately compiled packages, start here: https://downloads.openwrt.org/releases/21.02.0/packages/ (21.02.0 is the current version as of the writing of this article)) from here: https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/packages/<nowiki/>with a web browser or another router with OpenWRT (opkg download WhatEverPackageName)
 
* wget
* zlib
* librt
* libopenssl
* libpcre
 
Now the trick is getting them on the router that needs the "fix".  Below are some suggestions;
 
* A USB Flash Drive.  This can be an issue if one has a USB Flash Drive already plugged in and using the OpenWRT /overlay functionality.  But wait, remember, that eSATA port also facilitates USB 2.0.  Both of these solutions requires that the proper drivers be loaded to recognize a USB Flash drive.  That's a whole new issue not addressed here.
*
 
<br />

Revision as of 11:16, 30 September 2021

...here's a frustrating one;

The Error

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/mvebu/cortexa9/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/targets/mvebu/cortexa9/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz

Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/targets/mvebu/cortexa9/packages/Packages.gz, wget returned 5.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz, wget returned 5.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz, wget returned 5.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz, wget returned 5.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz, wget returned 5.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz, wget returned 5.

The Issue (AKA Problem)

What now? Well, the issue isn't with OPKG, it's with WGET (see the error at the end of the last couple of lines). Specifically the version of WGET built into BusyBox is the issue. Some mention that it might be a password issue, time issue, being behind a firewall issue, etc. The problem noted here deals with the WGET issue.

The Solution

Download these five items (this article is about the Linksys WRT AC Series of routers, so the proper packages are noted here, if your SoC / CPU architecture is different, download the appropriately compiled packages, start here: https://downloads.openwrt.org/releases/21.02.0/packages/ (21.02.0 is the current version as of the writing of this article)) from here: https://downloads.openwrt.org/releases/21.02.0/packages/arm_cortex-a9_vfpv3-d16/packages/with a web browser or another router with OpenWRT (opkg download WhatEverPackageName)

  • wget
  • zlib
  • librt
  • libopenssl
  • libpcre

Now the trick is getting them on the router that needs the "fix". Below are some suggestions;

  • A USB Flash Drive. This can be an issue if one has a USB Flash Drive already plugged in and using the OpenWRT /overlay functionality. But wait, remember, that eSATA port also facilitates USB 2.0. Both of these solutions requires that the proper drivers be loaded to recognize a USB Flash drive. That's a whole new issue not addressed here.