wget stops working when installing libretls-dev (but it's fixed by installing wget)
Here's a very strange behavior, experienced in a docker image launched with
docker run --rm -it alpine:3.14 sh
When installing libretls-dev
, wget
stops working, but if we explicitly install wget
it come back to normal behavior:
/ # wget -qO /dev/null https://www.google.com && echo ok
ok
/ # apk add libretls-dev
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
(1/4) Upgrading libretls (3.3.3-r0 -> 3.3.3-r2)
(2/4) Installing pkgconf (1.7.4-r0)
(3/4) Installing openssl-dev (1.1.1k-r0)
(4/4) Installing libretls-dev (3.3.3-r2)
Executing busybox-1.33.1-r2.trigger
OK: 7 MiB in 17 packages
/ # wget -qO /dev/null https://www.google.com && echo ok
Error loading shared library libtls.so.20: No such file or directory (needed by /usr/bin/ssl_client)
Error relocating /usr/bin/ssl_client: tls_configure: symbol not found
Error relocating /usr/bin/ssl_client: tls_close: symbol not found
Error relocating /usr/bin/ssl_client: tls_config_insecure_noverifytime: symbol not found
Error relocating /usr/bin/ssl_client: tls_config_free: symbol not found
Error relocating /usr/bin/ssl_client: tls_error: symbol not found
Error relocating /usr/bin/ssl_client: tls_config_new: symbol not found
Error relocating /usr/bin/ssl_client: tls_connect_fds: symbol not found
Error relocating /usr/bin/ssl_client: tls_handshake: symbol not found
Error relocating /usr/bin/ssl_client: tls_read: symbol not found
Error relocating /usr/bin/ssl_client: tls_client: symbol not found
Error relocating /usr/bin/ssl_client: tls_write: symbol not found
Error relocating /usr/bin/ssl_client: tls_init: symbol not found
Error relocating /usr/bin/ssl_client: tls_config_insecure_noverifyname: symbol not found
Error relocating /usr/bin/ssl_client: tls_config_insecure_noverifycert: symbol not found
wget: error getting response: Connection reset by peer
/ # apk add wget
(1/3) Installing libunistring (0.9.10-r1)
(2/3) Installing libidn2 (2.3.1-r0)
(3/3) Installing wget (1.21.1-r1)
Executing busybox-1.33.1-r2.trigger
OK: 10 MiB in 20 packages
/ # wget -qO /dev/null https://www.google.com && echo ok
ok