4

When I type curl -v I get this error:

curl: symbol lookup error: curl: undefined symbol: curl_url_cleanup

I removed curl and reinstalled it, but the same error appeared.

Zanna
  • 69,223
  • 56
  • 216
  • 327
  • 1
    Did you build curl yourself, from source? perhaps this is related: [How to build the latest curl from sources to allow downloading files via sftp?](https://askubuntu.com/questions/1128780/how-to-build-the-latest-curl-from-sources-to-allow-downloading-files-via-sftp) – steeldriver Nov 27 '19 at 15:03
  • 2
    Look at `ldd $(type -p curl)` – waltinator Nov 27 '19 at 15:07

2 Answers2

5

Run sudo ldconfig, it solves "curl: symbol lookup error: curl: undefined symbol: curl_url_cleanup"

From : https://mysiar.github.io/devops/2020/04/23/curl-from-src.html

Ali Kahoot
  • 151
  • 1
  • 4
0

You may try the snap version of curl:

sudo snap install curl
BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77