I have this error message when trying to launch xspec on the virtual machine with ubuntu os.
I found its location via
locate libXSPlot.so
/home/studente/heasoft-6.28/Xspec/BLD/x86_64-pc-linux-gnu-libc2.27/lib/libXSPlot.so
/home/studente/heasoft-6.28/Xspec/src/XSPlot/libXSPlot.so
/home/studente/heasoft-6.28/Xspec/x86_64-pc-linux-gnu-libc2.27/lib/libXSPlot.so
/home/studente/heasoft-6.28/x86_64-pc-linux-gnu-libc2.27/lib/libXSPlot.so
I have tried
sudo ln -s /home/studente/heasoft-6.28/Xspec/BLD/x86_64-pc-linux-gnu-libc2.27/lib/libXSPlot.so
and got
ln: failed to create symbolic link './libXSPlot.so': File exists
Another try was
sudo apt install apt-file libXSPlot.so
Here is what I got
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libXSPlot.so
E: Couldn't find any package by glob 'libXSPlot.so'
E: Couldn't find any package by regex 'libXSPlot.so'
Please, help me to link these libraries