/usr/riscv64-linux-gnu/bin/ranlib is in binutils-riscv64-linux-gnu 2.30-15ubuntu1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/riscv64-linux-gnu/bin/../../bin/riscv64-linux-gnu-ranlib
/usr/riscv64-linux-gnu/bin/../../bin/riscv64-linux-gnu-ranlib