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

1.7k views Asked by At

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.

2

There are 2 answers

1
Abdullrahman Dawaliby On BEST ANSWER

[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!

1
sadekarhu On

I think i had a corrupt file in libssh2 on my Arch setup. Check with md5sum -b /usr/lib/libssh2.so.1.0.1 and compare it to the release. I fixed it by replacing it manually.

If sudo ldd -r /usr/lib/libssh2.so.1.0.1 should give an error at the bottom of the output it's most likely the same.