Skip to content

Instantly share code, notes, and snippets.

@so0k so0k/alpine-curl.md
Created Mar 1, 2018

Embed
What would you like to do?
Alpine curl issues

To fix /usr/bin/curl: curl_mime_type: symbol not found Errors when trying to run curl in a running alpine pod.

Right solution: Update base alpine image because this is a bigger issue

Quick fix: run Alpine system upgrade (or upgrade libcurl package specifically):

apk update
apk upgrade
apk add -U curl
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/1) Installing curl (7.58.0-r1)
Executing busybox-1.24.2-r13.trigger
OK: 430 MiB in 145 packages
bash-4.3# curl
Error relocating /usr/bin/curl: curl_mime_type: symbol not found
Error relocating /usr/bin/curl: curl_mime_data: symbol not found
Error relocating /usr/bin/curl: curl_mime_data_cb: symbol not found
Error relocating /usr/bin/curl: curl_mime_name: symbol not found
Error relocating /usr/bin/curl: curl_mime_encoder: symbol not found
Error relocating /usr/bin/curl: curl_mime_headers: symbol not found
Error relocating /usr/bin/curl: curl_mime_init: symbol not found
Error relocating /usr/bin/curl: curl_mime_filedata: symbol not found
Error relocating /usr/bin/curl: curl_mime_free: symbol not found
Error relocating /usr/bin/curl: curl_mime_filename: symbol not found
Error relocating /usr/bin/curl: curl_mime_subparts: symbol not found
Error relocating /usr/bin/curl: curl_mime_addpart: symbol not found
bash-4.3# apk upgrade
Upgrading critical system libraries and apk-tools:
(1/1) Upgrading apk-tools (2.6.8-r1 -> 2.6.9-r0)
Executing busybox-1.24.2-r13.trigger
Continuing the upgrade transaction with new apk-tools:
(1/29) Upgrading musl (1.1.14-r14 -> 1.1.14-r16)
(2/29) Upgrading busybox (1.24.2-r13 -> 1.24.2-r14)
Executing busybox-1.24.2-r14.post-upgrade
...
(9/29) Upgrading libcurl (7.52.1-r2 -> 7.58.0-r1)
...
OK: 427 MiB in 145 packages
bash-4.3# curl
curl: try 'curl --help' or 'curl --manual' for more information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.