12

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?

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

2 Answers 2

26

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.

2
  • 2
    LOL yes you're right, I have no internet :facepalm:
    – Blundell
    Oct 6, 2019 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, 2020 at 2:21
10

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
2
  • 1
    do you mean ... etc/apt/sources.list.d/.... (note the S at the end of the word sources)?
    – zipzit
    Feb 5, 2015 at 21:09
  • 2
    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, 2019 at 17:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .