4

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.

Kulfy
  • 17,696
Bhuvan
  • 41

1 Answers1

4

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
/usr/lib/x86_64-linux-gnu/libXft.so.2
/usr/lib/x86_64-linux-gnu/libXft.so.2.3.2
Liso
  • 15,377
  • 3
  • 51
  • 80