How to install a .tar.gz (or .tar.bz2) file?
I had already tried many things but none of them worked.
tar xzf file.tar.gz(replacing file by the package name).
I'm using 12.04.1 precise pangolin.
Untar the file using command
If there is a .deb(Precompiled binaries) file in the extracted package. You can install it using command
If its a source file then you need to compile it using the following commands.
For more information read this Ubuntu help page