Ubuntu – Unable to install boot-repair

bootboot failureboot-repair

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:

  1. Boot to LiveCD
  2. Connect to Internet
  3. Open terminal
  4. Give command sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
  5. 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.)

  1. 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.

  2. In the new window that pops up change the distribution: field to "quantal" (without quotes).

  3. Repeat steps 1 and 2, except this time select http://ppa.launchpad.net/yannubuntu/boot-repair/u... (Source Code) , and then close the window.

  4. Now, either click the reload button in synaptic, or enter into the terminal

    sudo apt-get update

    sudo apt-get install boot-repair

That's it! Boot Repair is now installed.

Related Question