/usr/lib/debian-med/bin/gstacks is in stacks 2.0Beta8c+dfsg-1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/debian-med/bin/../../stacks/bin/gstacks
/usr/lib/debian-med/bin/../../stacks/bin/gstacks