Problem installing gfortran

I have just installed Ubuntu 13.04 on my computer, then tried to install gfortran using the command:

sudo apt-get install gfortran

in a terminal and it says:

E: Unable to locate package gfortran

How to fix this?


To install gfortran, make sure that universe repository is checked, and then

enter image description here

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install gfortran

Or you can just install it from the USC or by clicking on the image below:

Install via the software center