Upstream OpenWRT packages installation not working

Hi guys,

I tried to install OpenWRT packages on NethSecurity 8.8.0 as explained in the developer documentation but it failed.

The issue is that the content of /etc/openwrt_version is v25.12.5.
The distfeed-setup script sets that value for the variable openwrt_version, see nethsecurity/packages/ns-plug/files/distfeed-setup at 711c5a890e4c6dc423218a96afb791e9918c3627 · NethServer/nethsecurity · GitHub

root@NethSec:~# apk update
ERROR: wget: exited with error 8
WARNING: updating and opening https://downloads.openwrt.org/releases/v25.12.5/targets/x86/64/packages/packages.adb: unexpected end of file

The packages are reachable at https://downloads.openwrt.org/releases/25.12.5/targets/x86/64/packages/ without the “v”.

After changing openwrt_version to 25.12.5 instead of v25.12.5, apk update is working correctly.

Here I thought that was a good place to fetch the OpenWRT official version from :roll_eyes:

You can freely change the file 99-defaults.list, remember it will get overwritten on image flash. Probably a simple truncate of the initial “v” will do the trick, thanks @mrmarkuz !

Is there a package you need that you’re using the openwrt repos?

1 Like

Great, thanks, changing the file 99-defaults.list works.

Sometimes I prefer nano over the preinstalled vi.

Could be reasonable to add it to the installable packages, why not.

1 Like