Problem with update list in Software

Hello i have problem with use Upgrade packed in OpenWrt SNAPSHOT r23323-6892603efa / LuCI Master git-23.158.78004-23a246e
at Xiaomi AX3600

when i click System > Software > Update list i get this:

Executing package manager

Downloading https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/packages/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/packages/Packages.gz Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/Packages.gz Downloading https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/kmods/6.1.32-1-60f86a80e0a69b692f8cccde5fa6019e/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/kmods/6.1.32-1-60f86a80e0a69b692f8cccde5fa6019e/Packages.gz Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci/Packages.gz Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/Packages.gz Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing/Packages.gz Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony/Packages.gz

Errors

Collected errors: * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/packages/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/kmods/6.1.32-1-60f86a80e0a69b692f8cccde5fa6019e/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony/Packages.gz, wget returned 5.

The opkg update command failed with code 7.

This i have in Configure OPKG:

OPKG Configuration
Below is a listing of the various configuration files used by opkg. Use opkg.conf for global settings and customfeeds.conf for custom repository entries. The configuration in the other files may be changed but is usually not preserved by sysupgrade.

/etc/opkg.conf

dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
option check_signature

/etc/opkg/customfeeds.conf

add your custom package feeds here

src/gz example_feed_name http://www.example.com/path/to/files

/etc/opkg/distfeeds.conf

src/gz openwrt_core https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/packages
src/gz openwrt_base https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base
src/gz openwrt_kmods https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/kmods/6.1.32-1-60f86a80e0a69b692f8cccde5fa6019e
src/gz openwrt_luci https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony

can u help me with that ?

Can you ping the host?
Can you manually wget one of the Packages.gz ?

1 Like

Yes definitely try that. wget error 5 is a SSL error such as unable to verify certificate. I tried one of the links on my 22.05 installation and it works OK though.

Yes , i can ping openwrt.org

PING openwrt.org (139.59.209.225): 56 data bytes
64 bytes from 139.59.209.225: seq=0 ttl=56 time=18.806 ms
64 bytes from 139.59.209.225: seq=1 ttl=56 time=18.814 ms
64 bytes from 139.59.209.225: seq=2 ttl=56 time=18.298 ms
64 bytes from 139.59.209.225: seq=3 ttl=56 time=20.637 ms
64 bytes from 139.59.209.225: seq=4 ttl=56 time=19.982 ms
--- openwrt.org ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 18.298/19.307/20.637 ms

I didnt know how to make manual wget ? i need read about it ... and i tell

i try by putty this ... and have ssl error like write mk24

root@S252Router:~# wget https://downloads.openwrt.org/snapshots/targets/ipq807x/
generic/packages/Packages.gz
Downloading 'https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/pac kages/Packages.gz'
Connecting to 168.119.138.211:443
Connection error: Invalid SSL certificate
root@S252Router:~#

I try this command what i found in forum, after you write its ssl problem

opkg update --no-check-certificate

and i see now software list

but how repair that problem with SSL ? becuase button "update list" show error...

Likely you need install the ca-certificates package in order to get the default SSL certificates .
(but that should be installed by default, I think)

Also make sure the date is correct on the device.

ca-certifcates not installed

i cant install it via web luci interface

Executing package manager
Installing ca-certificates (20230311-1) to root... Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/ca-certificates_20230311-1_all.ipk

Errors

Collected errors: * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/ca-certificates_20230311-1_all.ipk, wget returned 5. * opkg_install_pkg: Failed to download ca-certificates. Perhaps you need to run 'opkg update'? * opkg_install_cmd: Cannot install package ca-certificates.
The opkg install command failed with code 255.

later i try find manual installation - now i go to work :confused:

EDIT: i use

opkg install ca-certificates --no-check-certificate

and now i can use "update lists" i check after work all option...

Date is correct.

is there a command to check if my openwrt in the router has everything needed for proper operation + all required certificates?

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