Apk fix throws error with libustream-openssl20201210

This is probably a really dumb thing, but apk always throws an error when installing anything, it still installs the thing, and running it with -v provides no useful information so I figured running 'apk fix' would, you know, fix it...?

apk fix

(1/1) [APK unavailable, skipped] Reinstalling libustream-openssl20201210 (2024.07.28~99bd3d2b-r1)
1 error; 290 MiB in 347 packages

okay, so remove and reinstall it? NO...
ERROR: libustream-openssl20201210-2024.07.28~99bd3d2b-r1: trying to overwrite lib/libustream-ssl.so owned by libustream-mbedtls20201210-2024.07.28~99bd3d2b-r1.

apk fix again, same (new) error

apk fix

(1/1) Reinstalling libustream-openssl20201210 (2024.07.28~99bd3d2b-r1)
ERROR: libustream-openssl20201210-2024.07.28~99bd3d2b-r1: trying to overwrite lib/libustream-ssl.so owned by libustream-mbedtls20201210-2024.07.28~99bd3d2b-r1.
1 error; 289 MiB in 344 packages

This lib conflict probably broke curl, but I have yet to try it, not like I have a lot load in anyhow, but I'd like to get the issue resolved as I hate lurking crud that always bites in some obscure way later on.

It appears that you have both the mbedtls and openssl versions installed, which is causing a conflict. Maybe do some poking areound with reverse-depends, like apk info --rdepends libustream-openssl20201210, and see what's up. You could then hack up /etc/apk/world to make things consistent and apply the changes en masse with apk fix.

1 Like

Well, the rdepends switch shows it is not required by anything currently installed, so now it's removed...at least until the unlikely event something else that does not list the dependency complains. Now I wonder if this was part of an unbound tangent I went on (backstory: was going to run a full recursive unbound w/dnssec, but the ISP blocked the ports, so I went with a DoH proxy instead, but having unbound just present but not enabled drove adblock nuts)

Thanks for the hint!

1 Like