title: How to install the GNU Fortran 77 compiler or g77 on Ubuntu 14.04
body: <p>I have a library which needs g77 compiler. </p>
  
  <p>I found few methods online; but each failed. Here is summary of two of my efforts:</p>
  
  <p>1) I downloaded the packages, untar it and
   $ sudo ./install.sh </p>
  
  <pre><code>Selecting previously unselected package gcc-3.4-base.
  (Reading database ... 182226 files and directories currently installed.)
  Preparing to unpack gcc-3.4-base_3.4.6-6ubuntu3_i386.deb ...
  Unpacking gcc-3.4-base (3.4.6-6ubuntu3) ...
  Selecting previously unselected package cpp-3.4.
  Preparing to unpack cpp-3.4_3.4.6-6ubuntu3_i386.deb ...
  Unpacking cpp-3.4 (3.4.6-6ubuntu3) ...
  Selecting previously unselected package gcc-3.4.
  Preparing to unpack gcc-3.4_3.4.6-6ubuntu3_i386.deb ...
  Unpacking gcc-3.4 (3.4.6-6ubuntu3) ...
  dpkg: warning: downgrading libg2c0 from 1:3.4.6-6ubuntu5 to 1:3.4.6-6ubuntu3
  Preparing to unpack libg2c0_3.4.6-6ubuntu3_i386.deb ...
  Unpacking libg2c0 (1:3.4.6-6ubuntu3) over (1:3.4.6-6ubuntu5) ...
  Selecting previously unselected package libg2c0-dev.
  Preparing to unpack libg2c0-dev_3.4.6-6ubuntu3_i386.deb ...
  Unpacking libg2c0-dev (1:3.4.6-6ubuntu3) ...
  Selecting previously unselected package g77-3.4.
  Preparing to unpack g77-3.4_3.4.6-6ubuntu3_i386.deb ...
  Unpacking g77-3.4 (3.4.6-6ubuntu3) ...
  Setting up gcc-3.4-base (3.4.6-6ubuntu3) ...
  Setting up cpp-3.4 (3.4.6-6ubuntu3) ...
  dpkg: dependency problems prevent configuration of gcc-3.4:
   gcc-3.4 depends on binutils (&gt;= 2.16.1-3).
  
  dpkg: error processing package gcc-3.4 (--install):
   dependency problems - leaving unconfigured
  Setting up libg2c0 (1:3.4.6-6ubuntu3) ...
  Setting up libg2c0-dev (1:3.4.6-6ubuntu3) ...
  dpkg: dependency problems prevent configuration of g77-3.4:
   g77-3.4 depends on gcc-3.4 (= 3.4.6-6ubuntu3); however:
    Package gcc-3.4 is not configured yet.
  
  dpkg: error processing package g77-3.4 (--install):
   dependency problems - leaving unconfigured
  Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
  Errors were encountered while processing:
   gcc-3.4
   g77-3.4
  </code></pre>
  
  <p>2) I changed sources.list file as described in (<a href="http://seanelvidge.com/2012/08/install-g77-on-ubuntu-9-04/#comment-549085" rel="nofollow">http://seanelvidge.com/2012/08/install-g77-on-ubuntu-9-04/#comment-549085</a>) and then it could not find g77 after “sudo apt-get update” ran fine.</p>
  
  <p>$ sudo apt-get install g77</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Some help would be appreciated.</p>