/usr/lib/x86_64-linux-gnu/libgd.so.2 is in libgd2-xpm 2.0.36~rc1~dfsg-6ubuntu2.4.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/x86_64-linux-gnu/libgd.so.2.0.0
/usr/lib/x86_64-linux-gnu/libgd.so.2.0.0