Hi everyone!
My today experience with apk
package manager.
I run OpenWRT snapshot with overlay filesystem on USB drive.
Today I executed apk update/apk upgrade
and it did the following:
# apk upgrade
( 1/62) Purging libjson-script20240329 (2024.03.29~eb9bcb64-r1)
libjson-script20240329-2024.03.29~eb9bcb64-r1.pre-deinstall: Executing script...
( 2/62) Purging libblobmsg-json20240329 (2024.03.29~eb9bcb64-r1)
libblobmsg-json20240329-2024.03.29~eb9bcb64-r1.pre-deinstall: Executing script...
( 3/62) Purging libubox20240329 (2024.03.29~eb9bcb64-r1)
libubox20240329-2024.03.29~eb9bcb64-r1.pre-deinstall: Executing script...
( 4/62) Installing libubox20241219 (2024.12.19~3868f47c-r1)
wget: Error loading shared library libubox.so.20240329: No such file or directory (needed by /usr/bin/wget)
wget: Error loading shared library libubox.so.20240329: No such file or directory (needed by /usr/lib/libuclient.so)
...
ERROR: wget: exited with error 127
ERROR: libubox20241219-2024.12.19~3868f47c-r1: remote server returned error (try 'apk update')
...
Nice job apk! Starting with purging system libraries required by everything.
I restored files immideately by deleting masking files from overlay, but apk still reports packages missing:
# apk upgrade
ERROR: unable to select packages:
libubox20240329 (no such package):
required by: ... long list here ...
libblobmsg-json20240329 (no such package):
required by: ...
libjson-script20240329 (no such package):
required by: ...
Would be glad to any advice what to fix manually. Otherwise I'm starting to think about rolling back to OpenWRT 23 (24 was a broken disaster).