apt-get or GUI tools to install the
grub-efi package should cause the package system to replace
grub-pc (the BIOS/legacy GRUB) with the EFI-mode GRUB. Beyond that, it's not clear to me what you mean by several comments in your question:
- "When i install it i dont get any errors" (what do you mean by "it"? The
- "It still wont boot though" (what won't boot, GRUB, Linux, OS X, or something else? What sort of error conditions do you get -- a blank screen, an error message, a boot logo that never disappears, etc.?)
- "The boot file may be the problem" (to what "boot file" are you referring?)
Stepping back a bit, the most popular dual-boot configuration for Ubuntu and OS X uses rEFIt as a boot manager to select which OS to boot along with the BIOS version of GRUB to launch Linux. Substituting the EFI version of GRUB is desirable, IMHO. Even better, at least with 3.3.0 and later kernels (included in Ubuntu 12.10), is to use the kernel's own EFI stub loader. This can be facilitated by use of rEFInd as a boot manager. rEFInd is a fork of rEFIt (which hasn't been updated in over two years); rEFInd fixes bugs and adds new features, particularly related to booting Linux. The rEFInd Web page includes detailed documentation on using it to boot Linux. You can use it much like rEFIt (to chainload either the BIOS-mode or EFI-mode GRUB) or you can use it to launch a Linux kernel with EFI stub loader support, thus bypassing GRUB.