For a dual-boot to work, you need to install ubuntu alongside windows. That means that you should install grub (boot loader) in front of windows.
You should first boot from a live cd/usb. After installing ubuntu you should try:
1. Boot Repair (GUI) - See this post for more info.
2. From the live cd/usb:
Open a terminal and run these commands:
sudo mkdir /mnt/boot
sudo mount /dev/sdXZ /mnt/boot # Example: sudo mount /dev/sda6 /mnt/boot
sudo mount /dev/sdXY /mnt # Example: sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt /dev/sdX # Example: sudo grub-install --root-directory=/mnt /dev/sda
If Ubuntu was installed successfully, you will be able to chroot into your real system.
Important: All instances of sdX and sdXY must be replaced with the correct drive/partition for your system. (sda, sdb, sda1, sda5, sdb5, etc). X is the drive letter. Y is the partition number. The first drive is "a" and the first partition is "1". Example: sda1
Only If You Have a Separate /boot partition.
If you have a separate /boot partition run these commands. Most users do not have a separate /boot partition and should go to the normal partition section. sdXY is the main partition. sdXZ is the boot partition.
sudo mkdir /mnt/temp /mnt/temp/boot
sudo mount /dev/sdXY /mnt/temp # Mount the main Ubuntu partition. Example: sudo mount /dev/sda5 /mnt/temp
sudo mount /dev/sdXZ /mnt/temp/boot # Mount the /boot partition. Example: sudo mount /dev/sda6 /mnt/temp/boot
Only If You Are Running WUBI (Ubuntu inside Windows)
It is possible to chroot into a Wubi install by first mounting your Windows partition, and then mounting the Windows Wubi file, root.disk. The user must determine the value of the Window partition (sda1, sda2, etc). This section only applies to users booting an Ubuntu OS installed within Windows.
sudo mkdir /mnt/windows /mnt/temp # Make the mount points
sudo mount /dev/sdXY /mnt/windows # Mount the Windows partition. Example: sudo mount /dev/sda1 /mnt/windows
sudo mount -o loop /mnt/windows/ubuntu/disks/root.disk /mnt/temp # Mount the root.disk file.
If You Have a Normal Installation. No separate /boot partition, not a Windows/Wubi installation.
sudo mkdir /mnt/temp
sudo mount /dev/sdXY /mnt/temp # Example: sudo mount /dev/sda5 /mnt/temp
And then do (in the chroot environment):
sudo apt-get update
sudo apt-get purge grub grub-pc grub-common
sudo apt-get install grub-common grub-pc
sudo update-grub
exit