Skip to main content The opkg update command failed with code 6 - I am stuck : r/openwrt

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?

Uninstall wget-nossl I believe! Let me know how it goes. 

}

having the same problem and found my way to this thread... unfortunately i don't have wget-nossl installed so I guess it's not that

}
More replies