/usr/lib/x86_64-linux-gnu/root5.34/libFoam.so is in libroot-math-foam5.34 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/x86_64-linux-gnu/root5.34/libFoam.so.5
/usr/lib/x86_64-linux-gnu/root5.34/libFoam.so.5