I am trying to install Windows 7 on Ubuntu. I created NTFS partition for Windows 7 but I deleted a 5GB partition so I got a error message when I reboot Ubuntu.
grub rescue error
To solve this error, I tried installing boot-repair software. Here are the steps I followed:
- Boot to LiveCD
- Connect to Internet
- Open terminal
- Give command
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
- Then give command
sudo apt-get install -y boot-repair && boot-repair
Now I get this error message:
Reading package lists... Done Building dependency tree Reading state information... Done
E: Unable to locate package boot-repair
Best Answer
If your are using an older version of the ubuntu live cd, you might need to change the package source. (I had this problem with the Natty (11.04) live cd.)
Start Synaptic, and in the menu go to Settings -> Repositories. Go to the "Other Software" tab, and select the line http://ppa.launchpad.net/yannubuntu/boot-repair/u... main and then click on the Edit button down below.
In the new window that pops up change the distribution: field to "quantal" (without quotes).
Repeat steps 1 and 2, except this time select http://ppa.launchpad.net/yannubuntu/boot-repair/u... (Source Code) , and then close the window.
Now, either click the reload button in synaptic, or enter into the terminal
That's it! Boot Repair is now installed.