3

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,416
  • 26
  • 64
  • 103
Bhuvan
  • 31
  • 1
  • 5
  • 3
    Possible duplicate of [How do I find the package that provides a file?](https://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file) – Fabby Apr 27 '19 at 07:21
  • @Bhuvan Actually, this *is* because the single file is a file *included in* a package - find the package that provides the file and install that package, should "Just Work" – Thomas Ward Dec 23 '19 at 16:34

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,217
  • 3
  • 50
  • 80