/usr/bin/riscv64-linux-gnu-gfortran is in gfortran-riscv64-linux-gnu 4:7.3.0-3ubuntu1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/bin/riscv64-linux-gnu-gfortran-7
/usr/bin/riscv64-linux-gnu-gfortran-7