Can't find boot-repair package for the newest version of Ubuntu

After upgrading Ubuntu 13.10 to 14.04, grub failed to load Ubuntu and threw the error symbol 'grub_term_highlight_color' not found. I followed the solution offered in the Bug Report but this failed for me, throwing the error failed to get canonical path of /cow.

Now, I'm trying to install Boot-Repair to fix this problem on a live pen-drive, using these commands.

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

But after adding and updating the repositories, it shows ppa:yannubuntu/boot-repair 404 Not Found error.

W: Failed to fetch http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found

Is this problem solvable or is there an alternative PPA for Boot-Repair?


Solution 1:

Update: The PPA currently offers updated packages for 14.04 and above.

Workaround: install packages for an older release

It showed a 404 not found error because the PPA was not updated for the newer release (trusty). To install boot-repair in Ubuntu 14.04, run the below commands on terminal:

sudo add-apt-repository ppa:yannubuntu/boot-repair
codename="$(lsb_release -cs)"
sudo sh -c "sed -i 's/$codename/saucy/g' /etc/apt/sources.list.d/yannubuntu-boot-repair-$codename.list"
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

Now use the recommended repair option to repair your grub and restart after boot-repair finished repairing.

Solution 2:

Update: There is a bug report on lp - https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1289977

From the above bug report,

-Boot (14.04) from a pendrive -Mount my root file system (where /boot is)

sudo mount /dev/sdaX /mnt

/dev/sdaX is the location of your /boot directory

-run: "sudo grub-install --boot-directory=/mnt//boot /dev/sdX"

The exact command depends on if you have a separate boot partition

Separate /boot partition

sudo grub-install --boot-directory=/mnt /dev/sda

No separate /boot partition

grub-install --boot-directory=/mnt/boot /dev/sda

Then reboot with HDD

Three options:

  1. Wait for the maintainer of the ppa to build a package for 14.04 . This is probably the slowest and least practical.

  2. File a bug report with the against boot-repair asking for a 14.04 package. Will possibly be a bit faster.

  3. Boot an older version of Ubuntu, 13.10, and run boot-repair. You will probably be just fine with an older version.

I suppose there is a 4th option - debug grub manually, what error message are you getting and tell us about your installation.

Solution 3:

The first workaround mentioned in this bug report worked for me:

https://bugs.launchpad.net/boot-repair/+bug/1267702

Basically, you have to manually install three .deb packages: glade2script, boot-sav and then boot-repair (in this order). Use the most recent ones (the ones for saucy).