I had Ubuntu 13.10 installed on my laptop. After I upgraded windows, I tried to get grub back through Boot Repair via these commands mentioned here:

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

But when I run first command I get this error:

Cannot add PPA: 'ppa:yannubuntu/boot-repair'.
Please check that the PPA name or format is correct.

what's the problem?

  • askubuntu.com/a/1050824/158369 and in BIOS only UEFI option for boot-repair – 42n4 Feb 13 '19 at 17:14
  • Note: It seems obvious, but make sure internet is connected. I've forgotten this several times when using the live disk – Redwolf Programs May 2 '20 at 16:44

I would suggest you to do in terminal:

sudo add-apt-repository ppa:yannubuntu/boot-repair

and then do:

 sudo apt-get update

if it doesn't work I would suggest you to add it manually in apt-get

nano /etc/apt/source.list.d/yannubuntu-boot-repair-saucy.list

and write this:

deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu saucy main

then save it and update:

sudo apt-get update
  • do you mean ... etc/apt/sources.list.d/.... (note the S at the end of the word sources)? – zipzit Feb 5 '15 at 21:09
  • 1
    In 18.10 BIOS have to be only UEFI and [trusted=yes] after deb: deb [trusted=yes] ppa.launchpad.net/yannubuntu/boot-repair/ubuntu cosmic main – 42n4 Feb 13 '19 at 17:13

This specific issue occurs when you live boot and try to do add the ppa before being connected to the internet.

Simply connect to the internet first and then try to add the ppa again just like before.

  • 1
    LOL yes you're right, I have no internet :facepalm: – Blundell Oct 6 '19 at 17:33
  • I can also add that you may need to reopen terminal if after connecting to internet it still gives same error. – Kirill G. Aug 6 '20 at 2:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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