I installed the current release on a raspberry pi 4B. Yesterday I was able to update the software list from luci and the command line. Today that doesn't work. It has to do with ca-certificate. I've been reading the forum and a bug report to use --no-check-certificate option. But that gives the error below. I was trying to update so that ca-bundle was up to date. How can I get this to work?
> opkg --no-check-certificate update
> Downloading https://downloads.openwrt.org/releases/21.02.1/targets/bcm27xx/bcm2711/packages/Packages.gz
> *** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.1/targets/bcm27xx/bcm2711/packages/Packages.gz
>
> Downloading https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/base/Packages.gz
> *** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/base/Packages.gz
>
> Downloading https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/luci/Packages.gz
> *** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/luci/Packages.gz
>
> Downloading https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/packages/Packages.gz
> *** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/packages/Packages.gz
>
> Downloading https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/routing/Packages.gz
> *** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/routing/Packages.gz
>
> Downloading https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/telephony/Packages.gz
> *** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/telephony/Packages.gz
>
> Collected errors:
> * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/targets/bcm27xx/bcm2711/packages/Packages.gz, wget returned 8.
> * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/base/Packages.gz, wget returned 8.
> * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/luci/Packages.gz, wget returned 8.
> * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/packages/Packages.gz, wget returned 8.
> * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/routing/Packages.gz, wget returned 8.
> * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/telephony/Packages.gz, wget returned 8.
Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/targets/bcm27xx/bcm2711/packages/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/base/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/luci/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/packages/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/routing/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_cortex-a72/telephony/Packages.gz, wget returned 5.
PING google.fr (74.125.21.94): 56 data bytes
64 bytes from 74.125.21.94: seq=0 ttl=105 time=14.067 ms
64 bytes from 74.125.21.94: seq=1 ttl=105 time=12.915 ms
64 bytes from 74.125.21.94: seq=2 ttl=105 time=13.267 ms
64 bytes from 74.125.21.94: seq=3 ttl=105 time=14.143 ms
64 bytes from 74.125.21.94: seq=4 ttl=105 time=13.027 ms
--- google.fr ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 12.915/13.483/14.143 ms
I also checked to make sure the default route was to the pi. It also works from in front of the pi.
From the command line on the pi:
opkg -V=4 --no-check-certificate update returns wget error 8.
It seems that the ca-certificate stuff is not working. Is there a way to fix that or should I just re-install? But I have no idea why --no-check-certificate doesn't work.
Yeah, that's what I'm thinking will be the best option. I don't know why you've run into these issues.
Make a backup first, of course. Then start fresh. Test opkg and see if you can get the package lists properly. Assuming that is working (and it should), restore your backup and test again, and finally re-install your user-installed packages and test once more. If it fails at any point along the way, hopefully we can identify the true cause.