The opkg update command failed with code 6 - I am stuck
I have been running OpenWRT for years and more or less the same setup, very standard and the only stand out is that I am running a Wireguard client on the router itself. Been zero issues. However, I tried to update the software the otherday and got error "The opkg update command failed with code 6
." Went in via SSH and similar issue when running opkg update:root@OpenWrt:~# opkg update
Downloading
https://downloads.openwrt.org/releases/23.05.0/targets/mvebu/cortexa9/packages/Packages.gz
*** Failed to download the package list from
https://downloads.openwrt.org/releases/23.05.0/targets/mvebu/cortexa9/packages/Packages.gz
Downloading
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz
*** Failed to download the package list from
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz
Downloading
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz
*** Failed to download the package list from
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz
Downloading
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz
*** Failed to download the package list from
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz
Downloading
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz
*** Failed to download the package list from
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz
Downloading
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz
*** Failed to download the package list from
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz
Collected errors:
* opkg_download: Failed to download
https://downloads.openwrt.org/releases/23.05.0/targets/mvebu/cortexa9/packages/Packages.gz
, wget returned 1.
* opkg_download: Failed to download
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz
, wget returned 1.
* opkg_download: Failed to download
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz
, wget returned 1.
* opkg_download: Failed to download
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz
, wget returned 1.
* opkg_download: Failed to download
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz
, wget returned 1.
* opkg_download: Failed to download
https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz
, wget returned 1.
I guess it's DNS related, but when I try to ping downloads.openwrt.org from SSH and the diagnostic tool within luci it all works fine. I have tried to disable ipv6 interface, add dns to dns forward and some other place I don't remember now but the same issue.
Any pointers?
Comments Section
opkg has been deprecated by the openwrt team and has been replaced by apk.
you need to update your version of openwrt to the newer version which uses apk instead of openwrt.
Sure, but that got nothing to do with the issue (now resolved).
Is the time on the device set correctly? If not maybe run ntpdate?
Yes, time and time zone is correct.
https://forum.openwrt.org/t/problem-with-update-list-in-software/162942
I'd check the date and time on the router 1st.
Yes, time and time zone is correct.
Gonna check the thread!
Comment deleted by user
wget https://downloads.openwrt.org/releases/23.05.0/targets/mvebu/cortexa9/packages/Packages.gz
https://downloads.openwrt.org/releases/23.05.0/targets/mvebu/cortexa9/packages/Packages.gz: HTTPS support not compiled in.
HTTPS issues - might be the problem then? Gonna check ca-certificates package. I need to find a way to install it "offline".