Opkg –no-check-certificate update doesn’t work

I have sg2002 reCamera device

Here my opkg.conf

src/gz base https://archive.openwrt.org/releases/23.05.4/packages/riscv64_riscv64/base
src/gz packages https://archive.openwrt.org/releases/23.05.4/packages/riscv64_riscv64/packages
dest root /
dest ram /tmp
lists_dir /var/opkg-lists
option overlay_root /overlay

But after

sudo opkg update

I have an error

Downloading https://archive.openwrt.org/releases/23.05.4/packages/riscv64_riscv64/base/Packages.gz.
Downloading https://archive.openwrt.org/releases/23.05.4/packages/riscv64_riscv64/packages/Packages.gz.
Collected errors:
 * opkg_conf_parse_file: /etc/opkg/opkg.conf:5: Ignoring invalid line: `lists_dir /var/opkg-lists'
 * opkg_conf_parse_file: Duplicate src declaration (base file:///var/opkg-lists/). Skipping.
 * opkg_download_backend: Failed to download https://archive.openwrt.org/releases/23.05.4/packages/riscv64_riscv64/base/Packages.gz, wget returned 5.
 * opkg_download_backend: Failed to download https://archive.openwrt.org/releases/23.05.4/packages/riscv64_riscv64/packages/Packages.gz, wget returned 5.

Any ideas how to fix it ?

the src/gz are supposed to go into the distfeeds.conf file.

while you're at it, post the output of ubus call system board.

2 Likes