I'm facing this issue in my Ubuntu 20.04.2 LTS (fossa-charmander-14 X60). I've bought new DELL Latitude 5420. When I type the command "curl" this error shows up.
curl: symbol lookup error: curl: undefined symbol: curl_url_cleanup
parveen@eagle:~$ sudo apt install curl
[sudo] password for parveen:
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version (7.68.0-1ubuntu2.7).
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
It says I already have curl, but I think it's not properly linked. When I type "man curl" it shows all manual docs about curl. But it's not working, please help me guys.
I found a solution. First I used this command sudo rm -rf /usr/local/bin/curl*
to remove curl from this location. Then if I type curl it shows me the error bash: /usr/local/bin/curl: No such file or directory
. Then I used type curl
which gave me the output curl is hashed (/snap/bin/curl)
. Then I used hash -d curl
, after this my curl started working.
Comments from this answer really helped.