Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Yesterday I installed Ubuntu Gnome 14.04 on my computer. The installation program wouldn't recognize my Windows 8.1 installation, but it could see the NTFS-partitions. I figured that I could make the necessary partitions for Ubuntu manually, and then later make both systems boot-able with boot-repair.

Now my computer boots into Ubuntu Gnome, and I followed this guide to install boot-repair with the following commands

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

(Notice the trusty/saucy-line, this is because boot-repair ain't on launchpad for 14.04 yet)

It all went well until boot-repair asks me to insert the following command in a terminal

sudo apt-get install -y --force-yes grub-pc linux

After this the terminal says

E: Unable to locate package linux

Can anybody tell my why I get this error, and how I should proceed?

share|improve this question
Thanks, worked not typing "linux"! – Ignacio Jul 17 '14 at 16:53
up vote 4 down vote accepted

It's not

sudo apt-get install -y --force-yes grub-pc linux


sudo apt-get install -y --force-yes grub-pc 

There is no such package named linux.

share|improve this answer
Okay, this seems to be the solution. The strange thing is that the boot-repair script specifically ask for that command. It must be a bug in boot-repair. Thanks for the quick answer! – reav Apr 23 '14 at 8:05
who told you to run that command? – Avinash Raj Apr 23 '14 at 8:08
The boot-repair application itself. When I went through the different steps, it told my two times to run a command in the terminal, by showing a little window where I could copy the text from. The second time it showed my the exact command I posted here. sudo apt-get install -y --force-yes grub-pc linux – reav Apr 23 '14 at 11:18

Yes... boot-repair does specifically request that one enter

sudo apt-get install -y --force-yes grub-pc linux

I agree that it does not work unless you remove the linux from the end of the line, so I assume that it's a typo. Hopefully, it still fixes the problem correctly.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.