It seems like my router doesn't have opkg or apk working
root@OpenWrt:~# -ash: apk: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# opkg
-ash: root@OpenWrt:~#: not found
It seems like my router doesn't have opkg or apk working
root@OpenWrt:~# -ash: apk: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# opkg
-ash: root@OpenWrt:~#: not found
Try a more recent snapshot
Flashed latest snapshot minutes ago APK working
I can't know what packages I currently have, so if I install the latest snapshot I'll lose everything...
That is why you have backup files, right?
What does it have to do with it? I can't list the complete packages at the moment.
You loosing everything when installing the latest snapshot.
I know it sounds really stupid, but is there a chance that apk was entirely broken in the last two days?
Tell me something I don't know
Doesn’t opkg keep a dirtree of package names its managing somewhere under /var? If you can wait until later today I can check one of my systems.
I haven't been able to find anything so far.
Try:
grep ^Package /usr/lib/opkg/status | cut -d' ' -f2 | sort
root@OpenWrt:~# grep ^Package /usr/lib/opkg/status | cut -d' ' -f2 | sort
grep: /usr/lib/opkg/status: No such file or directory
Are you running a vanilla version of OpenWrt? If so, which one?
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
as an alternative, 24.10 snapshots still use opkg - https://downloads.openwrt.org/releases/24.10-SNAPSHOT/
It looks like currently if you use the Firmware Selector to generate a snapshot image, the apk package is missing ie not included in the installed packages list or the "base-files".
You have to add apk
to the list.
That is the reason I answerd with just flashed it in another post here I was fiddling around with my network speed problem. When I flashed a new snapshot I got some sort off CRC errors when typing " APK add Luci" Today gave it another go and everything works.
But once can't use firmware selector to build customized versions of 24.10 snapshots, can one?
No, it can't
But It's easy to build custom fw using openwrt-imagebuilder-24.10-SNAPSHOT . X86 linux (or WSL on windows) and you good to go. You can even add your files like network configuration and you name it.