I am running an extensive code that I requires g77 to compile. (yes I could probably debug for gfortran but it took me months just to get it working so I really really don't want to). I have tried http://astrokode.wordpress.com/2012/10/31/installing-g77-compiler
but I get this error when I try to install:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package g77 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'g77' has no installation candidate
I have seen on forums that people are installing the g77 for Ubuntu 8.04, but I am fairly new to Ubuntu and unclear of exactly how to do this.
This has been tested on 12.04, and 13.04. I beleive its version 3.4. To install, first you need to download either the 32bit, or 64bit g77. Once downloaded, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the location where the files where downloaded (probably the downloads folder), and run the command(s) below:
For 32bit
For 64bit
Source:sanjeev kumar