I wish to run a scientific GUI on WSL, which requires libXft.so.2 package. Used sudo apt-get command, bash returned.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libXft.so.2 

This is not about finding a file from package, it's installing a package, on WSL.


I suspect it is not a package, rather it's a file—precisely file provided by some package.

Looking up libxFt.so.2 in packages.ubuntu.com yield libxft2 package, so install it as follow.

sudo apt-get install libxft2

You can then check the file availability through locate.

:~$ locate libXft.so.2
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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