Related Posts Plugin for WordPress, Blogger...

Wednesday, December 8, 2010

Installing g77 in Ubuntu intrepid (8.10), Jaunty (9.04), Karmic (9.10), Lucid (10.04), Maverick (10.10), Natty (11.04)

g77 is a part of gcc (GNU Compiler Collection) provided by GNU. But GNU stopped supporting it from gcc-4.2. Current Ubuntu versions starting from Ubuntu 8.10 (Intrepid) are using gcc-4.2 or higher. Current Ubuntu Maverick is using gcc-4.5. So to install g77 we need to install gcc-3.4. This package is included in the "universe" repositories of Ubuntu "hardy" distribution. Hence to install g77 in Ubuntu Intrepid, Jaunty, Karmic, Lucid, Maverick versions we need to add the hardy universe repository to the sources.list. Here is the procedure for it.

Press Alt+F2 and type

gksudo gedit /etc/apt/sources.list

The file will look like this.

Search for #deb and #deb-src and delete the # symbol before deb
Don't delete the # symbol before deb cdrom

The final file should look like this. You may need to remove four times # symbol.

Find out the four lines with universe and copy them.

Paste them at the end of the file. Edit the word maverick and replace with hardy as shown below. Now save the file and close.

Now open "synaptic package manager"

It will be in System --> Administration --> Synaptic Package Manafer"

Now one will see this. Click on "Close"

Now click on "Reload"

Now type g77 "Quick Search" box...

Now right click on g77 and select "Mark for installation"

Select "Mark" for additional changes if required...

Now click on "Apply"

A summary of the new changes will look like this. Click on "Apply"

Now the system will download the packages..

Then it will install..

If installation is success you will see this..

If it is success.. click on "Close"

Now one can see a tick mark before "g77" in the synaptic package manager like this..

Simplest way is:

add to /etc/apt/sources.list the ubuntu 8.04 hardy repositories as superuser:

deb hardy universe
deb-src hardy universe
deb hardy-updates universe
deb-src hardy-updates universe

then in the terminal:

sudo apt-get update
sudo apt-get install g77

For Ubuntu 8.10 you should use this after adding hardy repos

sudo aptitude update
sudo aptitude install g77


Please give your valuable comment for further improvement...


  1. Thanks, it looks very useful, but my sources.list file doesn't have the lines you mention.

    Can you please tell me how should I write it starting from what I've got?

    # Ubuntu supported packages
    deb lucid main restricted multiverse universe
    deb lucid-backports main restricted universe multiverse
    deb lucid-updates main restricted multiverse universe
    deb lucid-security main restricted universe multiverse
    deb lucid-proposed main restricted universe multiverse
    deb-src lucid main restricted multiverse universe
    deb-src lucid-backuniverseports main restricted universe multiverse
    deb-src lucid-updates main restricted multiverse universe
    deb-src lucid-security main restricted universe multiverse
    deb-src lucid-proposed main restricted universe multiverse

    #Canonical Commercial Repository
    deb lucid partner
    deb lucid-backports partner
    deb lucid-updates partner
    deb lucid-security partner
    deb lucid-proposed partner
    deb-src lucid partner
    deb-src lucid-backports partner
    deb-src lucid-updates partner
    deb-src lucid-security partner
    deb-src lucid-proposed partner

  2. Never mind. I found a better solution, installing Intel's packages :)

  3. What a shitty theme for your Linux. Dude kill yourself!

  4. That is the DEFAULT theme of Ubuntu Ultimate 2.8 version dude... That's not mine... :)

    But i guess, it is the content but not the theme which matters...

  5. You save my day !
    thanks a lot....

  6. High Definition Television - eine neue Art des Fernsehens, das einen HDTV-Tuner und ein HD-fähiges Display kombiniert. Fast alle von HDTV auf dem Markt nutzen das 16: 9 Widescreen-Seitenverhältnis. Ein HDTV-Tuner können analoge und digitale Ausstrahlung über die Luft empfangen. HDTV-kompatiblen Fernseher bietet nur die hochauflösenden Display und kann nur digitale Sendungen empfangen, wenn mit einem separaten HDTV-Tuner angeschlossen. 9-Breitbild-Verhältnis oder den Platz wie 4: HD-ready-Fernseher können die 16 haben 3-Seitenverhältnis.

  7. NATIONAL INSTITUTE OF DIGITAL EDUCATION established in 2010 with the mission of delivering training to professionals in Computer Training. We offer a wide range of quality computer training.

    All our training courses are taught by professionals in the field, allowing you the chance to learn from experts within their respected industry, which provides you with a quality computer training that will help you take your knowledge and career to new heights. We have different courses to shoot-up the requirement of the general youths of West Bengal. The duration of the courses are segregated in Six Months, One Year & 18 Months. Students are awarded by CERTIFICATE which will accept all over India.
    Email: /

    Website : , Facebook :

    Twitter : , YouTube :

    Android App :