curlwindows-subsystem-for-linuxarchpacman-package-manager

pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout


I'm facing this issue in my wsl 2.0 Arch. After I update curl via pacman this error shows up.

pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout

Something similar was showing when try to use curl but i manage remove curl but error stayed.


Solution

  • [TESTED SOLUTION]

    I got the same problem and fixed it as the previous answer but i will explain it more:

    1.Download the libssh2 from here: https://archlinuxarm.org/packages/aarch64/libssh2

    BE SURE TO CHANGE aarch64 IN THE ABOVE URL TO YOUR CPU ARCH

    2.unzip the zip you got from it and go to lib directory where you extracted the zip and move the libssh2.so.1.0.1 to /usr/lib with root permissions

    3.Test it and it will work!