Apk upgrade ruined system

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).

1 Like

Why - did you run opkg upgrade on version 23?

1 Like

Please use asu owut luci-app-attendedsysupgrade for generational upgrades keeping psckages and settings

2 Likes

@lleachii, @brada4 did you even read my post or just noticed familiar words in there?

I'm not asking for unrelated noob howtos. I'm just sharing my experience about badly designed new package manager.

1 Like

Oh OK, thanks for clarifying. That wasn't obvious [from your initial post] on an all-volunteer project forum.

1 Like

ubox/ubus libraries need to be updated in sync with the rest of userland, no thanks for weasel words and bye.
dont use alpine linux, it is their design.