try reinstalling gfortran


sudo apt-get install gfortran