After trying so many things by installing Windows and other versions of ubuntu . Everytime i installed ubuntu the error remained the same . Gaurav told me to use boot-repair software while booting ubuntu through Live CD or Bootable Pendrive . I followed the instructions given on taranjeet blog and YES finally the ubuntu was installed and it booted up normally 😀 . So i was now setting up my ubuntu and installed some essential softwares for working.