Problem with apk manager

Hello,

After installing successfully the 25.12.4 branch on my AVM FRITZ!Box 4040 from 24.10.6, i want as usual to install dnsmasq-full so i can get encrypted dns and dnssec checks with stubby.

Though the apk package manager doesn't seem to behave appropriately to install the dnsmasq-full package.

Usually i was using this command:

opkg install dnsmasq-full --download-only && opkg remove dnsmasq && opkg install dnsmasq-full --cache . && rm *.ipk

that i replaced with this based on the docs for the apk manager:

apk fetch dnsmasq-full && apk del dnsmasq && apk add --cache-dir . dnsmasq-full && rm *.apk

posting my results:

root@modem:~# apk fetch dnsmasq-full && apk del dnsmasq && apk add --cache-dir . dnsmasq-full && rm *.apk
Downloading dnsmasq-full-2.91-r3
(1/1) Purging dnsmasq (2.91-r3)
Executing dnsmasq-2.91-r3.pre-deinstall
OK: 13.9 MiB in 157 packages
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
WARNING: updating and opening https://downloads.openwrt.org/releases/25.12.4/targets/ipq40xx/generic/packages/packages.adb: unexpected end of file
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
WARNING: updating and opening https://downloads.openwrt.org/releases/25.12.4/packages/arm_cortex-a7_neon-vfpv4/base/packages.adb: unexpected end of file
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
WARNING: updating and opening https://downloads.openwrt.org/releases/25.12.4/targets/ipq40xx/generic/kmods/6.12.87-1-6ef4365b7fa1742a9f16fa6d0144ec5f/packages.adb: unexpected end of file
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
WARNING: updating and opening https://downloads.openwrt.org/releases/25.12.4/packages/arm_cortex-a7_neon-vfpv4/luci/packages.adb: unexpected end of file
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
WARNING: updating and opening https://downloads.openwrt.org/releases/25.12.4/packages/arm_cortex-a7_neon-vfpv4/packages/packages.adb: unexpected end of file
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
WARNING: updating and opening https://downloads.openwrt.org/releases/25.12.4/packages/arm_cortex-a7_neon-vfpv4/routing/packages.adb: unexpected end of file
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
WARNING: updating and opening https://downloads.openwrt.org/releases/25.12.4/packages/arm_cortex-a7_neon-vfpv4/telephony/packages.adb: unexpected end of file
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
WARNING: updating and opening https://downloads.openwrt.org/releases/25.12.4/packages/arm_cortex-a7_neon-vfpv4/video/packages.adb: unexpected end of file
ERROR: unable to select packages:
dnsmasq-full (no such package):
required by: world[dnsmasq-full]

root@modem:~# ls
dnsmasq-full-2.91-r3.apk
root@modem:~# apk add dnsmasq-full-2.91-r3.apk
ERROR: dnsmasq-full-2.91-r3.apk: UNTRUSTED signature

root@modem:~# apk add dnsmasq-full
(1/6) Installing kmod-nf-conntrack-netlink (6.12.87-r1)
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
ERROR: kmod-nf-conntrack-netlink-6.12.87-r1: unexpected end of file
(2/6) Installing libnfnetlink0 (1.0.2-r1)
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
ERROR: libnfnetlink0-1.0.2-r1: unexpected end of file
(3/6) Installing libnetfilter-conntrack3 (1.1.0-r1)
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
ERROR: libnetfilter-conntrack3-1.1.0-r1: unexpected end of file
(4/6) Installing libgmp10 (6.3.0-r2)
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
ERROR: libgmp10-6.3.0-r2: unexpected end of file
(5/6) Installing libnettle8 (3.10.2-r1)
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
ERROR: libnettle8-3.10.2-r1: unexpected end of file
(6/6) Installing dnsmasq-full (2.91-r3)
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
ERROR: dnsmasq-full-2.91-r3: unexpected end of file
6 errors; 13.9 MiB in 157 packages

Is it still trying to download and failing because no dnsmasq while it fails to process the local .apk?

Any help would be greatly appreciated, thank you

since you removed dnsmasq, there's no DNS serving the router, add namserver 8.8.8.8 to /etc/resolv.conf.

or use the allow-untrusted option in apk to force the install of the package you already DLed, but the dependencies will still be missing.

We’ve seen this happen when tge default wget has been replaced.

Removing the DNS server, then trying to do DNS operations is always going to fail. The easy way to do this is to just upgrade with the packages swapped:

$ owut upgrade --remove dnsmasq --add dnsmasq-full
...

or equivalent in LuCI Attended Sysupgrade...