2

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.

1
  • Stack Overflow is only for questions about writing code. Running programs other people wrote is out-of-scope. Commented Aug 23, 2023 at 0:11

2 Answers 2

2

[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
  • The link is dead.
    – Thomas
    Commented Jan 26 at 18:06
1

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.

1
  • 1
    In How to Answer, note the section Answer Well-Asked Questions, and the bullet point therein linking back to stackoverflow.com/help/on-topic. System administration and troubleshooting (of tools that aren't exclusively for development purposes) is generally better suited to Unix & Linux rather than here. Commented Aug 23, 2023 at 1:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.