No wget-nossl and wget-ssl

Hello,

hope you dont ask why, but I uninstalled both packages.
so, now I am unable to install it again or do anything with the software section.
If I to for example "Update list"

Executing package manager

opkg update

Errors

/usr/libexec/package-manager-call: line 91: opkg: not found
The opkg update command failed with code 127.

{
"kernel": "6.12.87",
"hostname": "apmdcs001.mdcsystems.internal",
"system": "MediaTek MT7621 ver:1 eco:3",
"model": "Netgear WAC104",
"board_name": "netgear,wac104",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "25.12.4",
"firmware_url": "https://downloads.openwrt.org/",
"revision": "r32933-4ccb782af7",
"target": "ramips/mt7621",
"description": "OpenWrt 25.12.4 r32933-4ccb782af7",
"builddate": "1778712129"
}
}

The world has moved on while you were hiding under your rock!

Try
apk update

opkg/ apk use the /usr/bin/wget binary underneath, but this is merely a symlink provided by the actual provider of this functionality (uclient-fetch by default). If you install the (one of) real wget (variants), this symlink is overwritten and may not be restored after removing those alternativesm you may have to fix the symlink yourself to continue.

If you need a hint:

ln -s /bin/uclient-fetch /usr/bin/wget

ok, nothing changed after changeing the symlink.

really new: apk update gives me "-ash: apk: not found".
I found it there: /rom/usr/bin/apk
What is going on ?

Sounds like apk also got deleted.
Check:

ll /usr/bin/apk
ll /overlay/upper/usr/bin/apk

You might be able to “restore” it with:

rm /overlay/upper/usr/bin/apk

But post the first outputs before doing it.

-rwxr-xr-x 1 root root 201975 May 14 00:42 /usr/bin/apk*

ls: /overlay/upper/usr/bin/apk: No such file or directory

If you run:

/usr/bin/apk update

?

I think some important directory got deleted when removing wget packages, so I would recommend to backup your config, reset to factory default, and restore your config.

Or check if the /usr/libexec directory is still present.

as i wrote: I found it only there: /rom/usr/bin/apk

But you show it here. I think a reset is needed.

and apk update works and apk add wget-ssl works too, but luci do not work

you are right. I do a find / -name apk before and /usr/bin/apk was not listed.

the directory /usr/libexec exists

Maybe we can see if anything important was deleted.

cd /overlay/upper
find . -type c -exec ls -ld {} +

c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/50-migrate-rpcd-ubus-sock.sh
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/14_network-generate-duid
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/50-dnsmasq-migrate-ipset.sh
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/12_network-generate-ula
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/30_uboot-envtools
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/10_migrate-shadow
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/05_fix-compat-version
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/00_uhttpd_ubus
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/51-attendedsysupgrade-owut
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/14_migrate-dhcp-release
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/04_led_migration
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/50-attendedsysupgrade
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/95-luci-app-attendedsysupgrade-housekeeping
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/30_luci-theme-bootstrap
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/15_migrate-time-zonename
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/50-dnsmasq-migrate-resolv-conf-auto.sh
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/15_odhcpd
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/50_luci-mod-admin-full
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/50-root-passwd
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/11_network-migrate-bridges
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/uci-defaults/ubihealthd
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/rc.d/K85odhcpd
c--------- 24 root root 0, 0 Jan 1 1970 ./etc/rc.d/S35odhcpd

Ok, that looks mostly normal. You probably disabled the odhcpd service to explain the last 2 entries.

I’m out of ideas except to reboot and factory reset. Someone else might have better suggestions.

Its configured as an access point (and this is the only simple configuration with no additional packages) So I am surprised that the remove of wget* gets worst in this way.

I don't think it looks normal at all, because there are no config files, no apk management files, not luci certs - much less than what should be there. I do recommend the reset approach (and there doesn't appear to be anything to back up either).