Boot repair enable a repository containing grub2 packages











up vote
2
down vote

favorite
1












Got no Ubuntu 16.04 access after reinstalling Windows. I'm using Boot Repair with live USB version of Ubuntu 16.10. After clicking "Recommended repair" I got this message as shown in the below screenshot:




Please enable a repository containing the [grub2] packages in the software sources of Ubuntu 16.04.1 LTS (sdb8). Then try again




Also two other windows pops up. How do I enable the correct repository?



Screenshot of: Install software additionally or only from these sources?










share|improve this question




















  • 3




    it is looking for 16.04 repos and you are using 16.10 ???? how did you install boot repair ?
    – Panther
    Jan 3 '17 at 20:07










  • @ bodhi.zazen With these commands on Ubuntu 16.04 live: sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair
    – Bartłomiej Łukaszewski
    Jan 4 '17 at 10:47












  • What's the output of lsb_release -a and the content of /etc/apt/sources.list?
    – David Foerster
    Jan 4 '17 at 11:29










  • I suggest you use the boot repair live image - sourceforge.net/p/boot-repair-cd/home/Home
    – Panther
    Jan 4 '17 at 15:45










  • Which version of ubuntu do you have installed, and what version is the live image using? Also, are you connected to the internet (when running the boot-repiar command), and what is the output of sudo apt-get install grub2?
    – Wilf
    Jan 5 '17 at 14:42

















up vote
2
down vote

favorite
1












Got no Ubuntu 16.04 access after reinstalling Windows. I'm using Boot Repair with live USB version of Ubuntu 16.10. After clicking "Recommended repair" I got this message as shown in the below screenshot:




Please enable a repository containing the [grub2] packages in the software sources of Ubuntu 16.04.1 LTS (sdb8). Then try again




Also two other windows pops up. How do I enable the correct repository?



Screenshot of: Install software additionally or only from these sources?










share|improve this question




















  • 3




    it is looking for 16.04 repos and you are using 16.10 ???? how did you install boot repair ?
    – Panther
    Jan 3 '17 at 20:07










  • @ bodhi.zazen With these commands on Ubuntu 16.04 live: sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair
    – Bartłomiej Łukaszewski
    Jan 4 '17 at 10:47












  • What's the output of lsb_release -a and the content of /etc/apt/sources.list?
    – David Foerster
    Jan 4 '17 at 11:29










  • I suggest you use the boot repair live image - sourceforge.net/p/boot-repair-cd/home/Home
    – Panther
    Jan 4 '17 at 15:45










  • Which version of ubuntu do you have installed, and what version is the live image using? Also, are you connected to the internet (when running the boot-repiar command), and what is the output of sudo apt-get install grub2?
    – Wilf
    Jan 5 '17 at 14:42















up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





Got no Ubuntu 16.04 access after reinstalling Windows. I'm using Boot Repair with live USB version of Ubuntu 16.10. After clicking "Recommended repair" I got this message as shown in the below screenshot:




Please enable a repository containing the [grub2] packages in the software sources of Ubuntu 16.04.1 LTS (sdb8). Then try again




Also two other windows pops up. How do I enable the correct repository?



Screenshot of: Install software additionally or only from these sources?










share|improve this question















Got no Ubuntu 16.04 access after reinstalling Windows. I'm using Boot Repair with live USB version of Ubuntu 16.10. After clicking "Recommended repair" I got this message as shown in the below screenshot:




Please enable a repository containing the [grub2] packages in the software sources of Ubuntu 16.04.1 LTS (sdb8). Then try again




Also two other windows pops up. How do I enable the correct repository?



Screenshot of: Install software additionally or only from these sources?







grub2 repository boot-repair






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 8 '17 at 19:46

























asked Jan 3 '17 at 20:05









Bartłomiej Łukaszewski

2316




2316








  • 3




    it is looking for 16.04 repos and you are using 16.10 ???? how did you install boot repair ?
    – Panther
    Jan 3 '17 at 20:07










  • @ bodhi.zazen With these commands on Ubuntu 16.04 live: sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair
    – Bartłomiej Łukaszewski
    Jan 4 '17 at 10:47












  • What's the output of lsb_release -a and the content of /etc/apt/sources.list?
    – David Foerster
    Jan 4 '17 at 11:29










  • I suggest you use the boot repair live image - sourceforge.net/p/boot-repair-cd/home/Home
    – Panther
    Jan 4 '17 at 15:45










  • Which version of ubuntu do you have installed, and what version is the live image using? Also, are you connected to the internet (when running the boot-repiar command), and what is the output of sudo apt-get install grub2?
    – Wilf
    Jan 5 '17 at 14:42
















  • 3




    it is looking for 16.04 repos and you are using 16.10 ???? how did you install boot repair ?
    – Panther
    Jan 3 '17 at 20:07










  • @ bodhi.zazen With these commands on Ubuntu 16.04 live: sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair
    – Bartłomiej Łukaszewski
    Jan 4 '17 at 10:47












  • What's the output of lsb_release -a and the content of /etc/apt/sources.list?
    – David Foerster
    Jan 4 '17 at 11:29










  • I suggest you use the boot repair live image - sourceforge.net/p/boot-repair-cd/home/Home
    – Panther
    Jan 4 '17 at 15:45










  • Which version of ubuntu do you have installed, and what version is the live image using? Also, are you connected to the internet (when running the boot-repiar command), and what is the output of sudo apt-get install grub2?
    – Wilf
    Jan 5 '17 at 14:42










3




3




it is looking for 16.04 repos and you are using 16.10 ???? how did you install boot repair ?
– Panther
Jan 3 '17 at 20:07




it is looking for 16.04 repos and you are using 16.10 ???? how did you install boot repair ?
– Panther
Jan 3 '17 at 20:07












@ bodhi.zazen With these commands on Ubuntu 16.04 live: sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair
– Bartłomiej Łukaszewski
Jan 4 '17 at 10:47






@ bodhi.zazen With these commands on Ubuntu 16.04 live: sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair
– Bartłomiej Łukaszewski
Jan 4 '17 at 10:47














What's the output of lsb_release -a and the content of /etc/apt/sources.list?
– David Foerster
Jan 4 '17 at 11:29




What's the output of lsb_release -a and the content of /etc/apt/sources.list?
– David Foerster
Jan 4 '17 at 11:29












I suggest you use the boot repair live image - sourceforge.net/p/boot-repair-cd/home/Home
– Panther
Jan 4 '17 at 15:45




I suggest you use the boot repair live image - sourceforge.net/p/boot-repair-cd/home/Home
– Panther
Jan 4 '17 at 15:45












Which version of ubuntu do you have installed, and what version is the live image using? Also, are you connected to the internet (when running the boot-repiar command), and what is the output of sudo apt-get install grub2?
– Wilf
Jan 5 '17 at 14:42






Which version of ubuntu do you have installed, and what version is the live image using? Also, are you connected to the internet (when running the boot-repiar command), and what is the output of sudo apt-get install grub2?
– Wilf
Jan 5 '17 at 14:42












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Boot Repair didn't work work me. After a lot of searching and trying I finally managed to regain access to my Ubuntu with following set of commands:



sudo mount /dev/sdb8 /mnt
sudo mount --bind /dev /mnt/dev/
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sdb
grub-install --recheck /dev/sdb
update-grub
exit
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/dev/pts


(All commands were executed in LiveUSB)






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f867621%2fboot-repair-enable-a-repository-containing-grub2-packages%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Boot Repair didn't work work me. After a lot of searching and trying I finally managed to regain access to my Ubuntu with following set of commands:



    sudo mount /dev/sdb8 /mnt
    sudo mount --bind /dev /mnt/dev/
    sudo mount --bind /dev/pts /mnt/dev/pts
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /sys /mnt/sys
    sudo chroot /mnt
    grub-install /dev/sdb
    grub-install --recheck /dev/sdb
    update-grub
    exit
    sudo umount /mnt/sys
    sudo umount /mnt/proc
    sudo umount /mnt/dev/pts


    (All commands were executed in LiveUSB)






    share|improve this answer



























      up vote
      0
      down vote













      Boot Repair didn't work work me. After a lot of searching and trying I finally managed to regain access to my Ubuntu with following set of commands:



      sudo mount /dev/sdb8 /mnt
      sudo mount --bind /dev /mnt/dev/
      sudo mount --bind /dev/pts /mnt/dev/pts
      sudo mount --bind /proc /mnt/proc
      sudo mount --bind /sys /mnt/sys
      sudo chroot /mnt
      grub-install /dev/sdb
      grub-install --recheck /dev/sdb
      update-grub
      exit
      sudo umount /mnt/sys
      sudo umount /mnt/proc
      sudo umount /mnt/dev/pts


      (All commands were executed in LiveUSB)






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        Boot Repair didn't work work me. After a lot of searching and trying I finally managed to regain access to my Ubuntu with following set of commands:



        sudo mount /dev/sdb8 /mnt
        sudo mount --bind /dev /mnt/dev/
        sudo mount --bind /dev/pts /mnt/dev/pts
        sudo mount --bind /proc /mnt/proc
        sudo mount --bind /sys /mnt/sys
        sudo chroot /mnt
        grub-install /dev/sdb
        grub-install --recheck /dev/sdb
        update-grub
        exit
        sudo umount /mnt/sys
        sudo umount /mnt/proc
        sudo umount /mnt/dev/pts


        (All commands were executed in LiveUSB)






        share|improve this answer














        Boot Repair didn't work work me. After a lot of searching and trying I finally managed to regain access to my Ubuntu with following set of commands:



        sudo mount /dev/sdb8 /mnt
        sudo mount --bind /dev /mnt/dev/
        sudo mount --bind /dev/pts /mnt/dev/pts
        sudo mount --bind /proc /mnt/proc
        sudo mount --bind /sys /mnt/sys
        sudo chroot /mnt
        grub-install /dev/sdb
        grub-install --recheck /dev/sdb
        update-grub
        exit
        sudo umount /mnt/sys
        sudo umount /mnt/proc
        sudo umount /mnt/dev/pts


        (All commands were executed in LiveUSB)







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 22 at 2:35









        Kulfy

        2,51631034




        2,51631034










        answered Jul 16 '17 at 22:36









        Bartłomiej Łukaszewski

        2316




        2316






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f867621%2fboot-repair-enable-a-repository-containing-grub2-packages%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei