Unable to fix GRUB for dual-boot after BIOS update (using boot-repair)












3















After my latest update of BIOS (while using Windows) my grub menu went missing.
Previously, I was able to repair GRUB menu this way:




  • Booting into Windows

  • Going to Advanced Startup options

  • Selecting my Ubuntu partition there

  • Getting advanced restart -> Seeing my GRUB menu.


Then, I was able to select Ubuntu OS, log in, run boot-repair and get my GRUB menu back.



However, this time when I try to run this command:



sudo apt-get purge -y --force-yes grub* shim-signed linux-signed*


(as boot-repair recommends me), I get an error:



E: Unable to locate package grub-reinstall_programs


So, I can't purge my GRUB and repair its menu... I have no idea how to fix this error and not to mess up with it even more. Please, help!



Additional info:
I have Ubuntu 14.04 and a pre-installed Windows 8.1 on my PC.










share|improve this question

























  • askubuntu.com/questions/88384/…

    – Ulad Kasach
    Jun 9 '16 at 3:39
















3















After my latest update of BIOS (while using Windows) my grub menu went missing.
Previously, I was able to repair GRUB menu this way:




  • Booting into Windows

  • Going to Advanced Startup options

  • Selecting my Ubuntu partition there

  • Getting advanced restart -> Seeing my GRUB menu.


Then, I was able to select Ubuntu OS, log in, run boot-repair and get my GRUB menu back.



However, this time when I try to run this command:



sudo apt-get purge -y --force-yes grub* shim-signed linux-signed*


(as boot-repair recommends me), I get an error:



E: Unable to locate package grub-reinstall_programs


So, I can't purge my GRUB and repair its menu... I have no idea how to fix this error and not to mess up with it even more. Please, help!



Additional info:
I have Ubuntu 14.04 and a pre-installed Windows 8.1 on my PC.










share|improve this question

























  • askubuntu.com/questions/88384/…

    – Ulad Kasach
    Jun 9 '16 at 3:39














3












3








3


2






After my latest update of BIOS (while using Windows) my grub menu went missing.
Previously, I was able to repair GRUB menu this way:




  • Booting into Windows

  • Going to Advanced Startup options

  • Selecting my Ubuntu partition there

  • Getting advanced restart -> Seeing my GRUB menu.


Then, I was able to select Ubuntu OS, log in, run boot-repair and get my GRUB menu back.



However, this time when I try to run this command:



sudo apt-get purge -y --force-yes grub* shim-signed linux-signed*


(as boot-repair recommends me), I get an error:



E: Unable to locate package grub-reinstall_programs


So, I can't purge my GRUB and repair its menu... I have no idea how to fix this error and not to mess up with it even more. Please, help!



Additional info:
I have Ubuntu 14.04 and a pre-installed Windows 8.1 on my PC.










share|improve this question
















After my latest update of BIOS (while using Windows) my grub menu went missing.
Previously, I was able to repair GRUB menu this way:




  • Booting into Windows

  • Going to Advanced Startup options

  • Selecting my Ubuntu partition there

  • Getting advanced restart -> Seeing my GRUB menu.


Then, I was able to select Ubuntu OS, log in, run boot-repair and get my GRUB menu back.



However, this time when I try to run this command:



sudo apt-get purge -y --force-yes grub* shim-signed linux-signed*


(as boot-repair recommends me), I get an error:



E: Unable to locate package grub-reinstall_programs


So, I can't purge my GRUB and repair its menu... I have no idea how to fix this error and not to mess up with it even more. Please, help!



Additional info:
I have Ubuntu 14.04 and a pre-installed Windows 8.1 on my PC.







dual-boot grub2 bios boot-repair






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 7 '14 at 18:18







0lesya

















asked Nov 7 '14 at 17:24









0lesya0lesya

6029




6029













  • askubuntu.com/questions/88384/…

    – Ulad Kasach
    Jun 9 '16 at 3:39



















  • askubuntu.com/questions/88384/…

    – Ulad Kasach
    Jun 9 '16 at 3:39

















askubuntu.com/questions/88384/…

– Ulad Kasach
Jun 9 '16 at 3:39





askubuntu.com/questions/88384/…

– Ulad Kasach
Jun 9 '16 at 3:39










3 Answers
3






active

oldest

votes


















1














in the command, replace grub* by grub-common. The error should disappear.






share|improve this answer































    1














    insert an Ubuntu Live DVD or CD



    Choose the Option Try Ubuntu



    Allow it to start up. now lets Start



    This solution is suitable after a bios update or after repartitioning your hard disk or both. if after one of these actions you get the grub error 17 message kindly follow the steps below. Some situations might not required all the steps, but others might need it. however following these steps will do no harm even if you don't need it.



    open a terminal "ctrl + alt + T" then type the following commands within the quotation signs followed by enter




    1. "sudo fdisk -l"

    2. "sudo fdisk /dev/hda" OR "sudo fdisk /dev/sda"
      Use sda or hda depending on what the output of command line 1. says

    3. "x"

    4. "f"

    5. "w"


    close the terminal.



    open a new terminal "ctrl + alt + T" then type the following command within the quotation signs followed by enter




    1. "sudo fdisk -l"


    Identify the partition with "linux" at the end, not the one with "linux swap/Solaris"



    write down the sdaX or hdaX code where "X" is a number



    e.g. hda2 is (hd0,1) in grub and



     sda2 is (hd0,1) in grub


    simillarly sda5 or hda5 is (hd0,4) in grub



    it is the grub code you'll need.



    your grub code should be in the form (hd0,W) where W is a number



    close the terminal



    Connect to the internet



    open a new terminal "ctrl + alt + T" then type the following commands within the quotation signs followed by enter




    1. "sudo apt-get install grub"

    2. "Y"

    3. "sudo grub"

    4. "root (hd0,W)"

    5. "setup (hd0)"

    6. "quit"


    close the terminal
    - You might need to run startup repair with your windows installation dvd
    - Grub Should be reinstalled and working properly






    share|improve this answer

































      0














      I don't know if I understood the problem correctly but I lost my grub menu after bios update.There was no grub menu and it directly booted my windows.
      (I had dual-booted Ubuntu 18.04 and windows 10). I accessed the advanced startup options after booting into windows(as given above). From the options I accessed the U.E.F.I settings, there I found both my software installed so I changed the priority by making Ubuntu the first one to be booted and when I saved the changes I could see my grub menu after restart.
      (I just thought to check out what will happen if I changed this setting.)
      I have no clue about boot-repair and don't know if I used it or not.






      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',
        autoActivateHeartbeat: false,
        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%2f546890%2funable-to-fix-grub-for-dual-boot-after-bios-update-using-boot-repair%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1














        in the command, replace grub* by grub-common. The error should disappear.






        share|improve this answer




























          1














          in the command, replace grub* by grub-common. The error should disappear.






          share|improve this answer


























            1












            1








            1







            in the command, replace grub* by grub-common. The error should disappear.






            share|improve this answer













            in the command, replace grub* by grub-common. The error should disappear.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 7 '14 at 21:07









            LovinBuntuLovinBuntu

            2,86521519




            2,86521519

























                1














                insert an Ubuntu Live DVD or CD



                Choose the Option Try Ubuntu



                Allow it to start up. now lets Start



                This solution is suitable after a bios update or after repartitioning your hard disk or both. if after one of these actions you get the grub error 17 message kindly follow the steps below. Some situations might not required all the steps, but others might need it. however following these steps will do no harm even if you don't need it.



                open a terminal "ctrl + alt + T" then type the following commands within the quotation signs followed by enter




                1. "sudo fdisk -l"

                2. "sudo fdisk /dev/hda" OR "sudo fdisk /dev/sda"
                  Use sda or hda depending on what the output of command line 1. says

                3. "x"

                4. "f"

                5. "w"


                close the terminal.



                open a new terminal "ctrl + alt + T" then type the following command within the quotation signs followed by enter




                1. "sudo fdisk -l"


                Identify the partition with "linux" at the end, not the one with "linux swap/Solaris"



                write down the sdaX or hdaX code where "X" is a number



                e.g. hda2 is (hd0,1) in grub and



                 sda2 is (hd0,1) in grub


                simillarly sda5 or hda5 is (hd0,4) in grub



                it is the grub code you'll need.



                your grub code should be in the form (hd0,W) where W is a number



                close the terminal



                Connect to the internet



                open a new terminal "ctrl + alt + T" then type the following commands within the quotation signs followed by enter




                1. "sudo apt-get install grub"

                2. "Y"

                3. "sudo grub"

                4. "root (hd0,W)"

                5. "setup (hd0)"

                6. "quit"


                close the terminal
                - You might need to run startup repair with your windows installation dvd
                - Grub Should be reinstalled and working properly






                share|improve this answer






























                  1














                  insert an Ubuntu Live DVD or CD



                  Choose the Option Try Ubuntu



                  Allow it to start up. now lets Start



                  This solution is suitable after a bios update or after repartitioning your hard disk or both. if after one of these actions you get the grub error 17 message kindly follow the steps below. Some situations might not required all the steps, but others might need it. however following these steps will do no harm even if you don't need it.



                  open a terminal "ctrl + alt + T" then type the following commands within the quotation signs followed by enter




                  1. "sudo fdisk -l"

                  2. "sudo fdisk /dev/hda" OR "sudo fdisk /dev/sda"
                    Use sda or hda depending on what the output of command line 1. says

                  3. "x"

                  4. "f"

                  5. "w"


                  close the terminal.



                  open a new terminal "ctrl + alt + T" then type the following command within the quotation signs followed by enter




                  1. "sudo fdisk -l"


                  Identify the partition with "linux" at the end, not the one with "linux swap/Solaris"



                  write down the sdaX or hdaX code where "X" is a number



                  e.g. hda2 is (hd0,1) in grub and



                   sda2 is (hd0,1) in grub


                  simillarly sda5 or hda5 is (hd0,4) in grub



                  it is the grub code you'll need.



                  your grub code should be in the form (hd0,W) where W is a number



                  close the terminal



                  Connect to the internet



                  open a new terminal "ctrl + alt + T" then type the following commands within the quotation signs followed by enter




                  1. "sudo apt-get install grub"

                  2. "Y"

                  3. "sudo grub"

                  4. "root (hd0,W)"

                  5. "setup (hd0)"

                  6. "quit"


                  close the terminal
                  - You might need to run startup repair with your windows installation dvd
                  - Grub Should be reinstalled and working properly






                  share|improve this answer




























                    1












                    1








                    1







                    insert an Ubuntu Live DVD or CD



                    Choose the Option Try Ubuntu



                    Allow it to start up. now lets Start



                    This solution is suitable after a bios update or after repartitioning your hard disk or both. if after one of these actions you get the grub error 17 message kindly follow the steps below. Some situations might not required all the steps, but others might need it. however following these steps will do no harm even if you don't need it.



                    open a terminal "ctrl + alt + T" then type the following commands within the quotation signs followed by enter




                    1. "sudo fdisk -l"

                    2. "sudo fdisk /dev/hda" OR "sudo fdisk /dev/sda"
                      Use sda or hda depending on what the output of command line 1. says

                    3. "x"

                    4. "f"

                    5. "w"


                    close the terminal.



                    open a new terminal "ctrl + alt + T" then type the following command within the quotation signs followed by enter




                    1. "sudo fdisk -l"


                    Identify the partition with "linux" at the end, not the one with "linux swap/Solaris"



                    write down the sdaX or hdaX code where "X" is a number



                    e.g. hda2 is (hd0,1) in grub and



                     sda2 is (hd0,1) in grub


                    simillarly sda5 or hda5 is (hd0,4) in grub



                    it is the grub code you'll need.



                    your grub code should be in the form (hd0,W) where W is a number



                    close the terminal



                    Connect to the internet



                    open a new terminal "ctrl + alt + T" then type the following commands within the quotation signs followed by enter




                    1. "sudo apt-get install grub"

                    2. "Y"

                    3. "sudo grub"

                    4. "root (hd0,W)"

                    5. "setup (hd0)"

                    6. "quit"


                    close the terminal
                    - You might need to run startup repair with your windows installation dvd
                    - Grub Should be reinstalled and working properly






                    share|improve this answer















                    insert an Ubuntu Live DVD or CD



                    Choose the Option Try Ubuntu



                    Allow it to start up. now lets Start



                    This solution is suitable after a bios update or after repartitioning your hard disk or both. if after one of these actions you get the grub error 17 message kindly follow the steps below. Some situations might not required all the steps, but others might need it. however following these steps will do no harm even if you don't need it.



                    open a terminal "ctrl + alt + T" then type the following commands within the quotation signs followed by enter




                    1. "sudo fdisk -l"

                    2. "sudo fdisk /dev/hda" OR "sudo fdisk /dev/sda"
                      Use sda or hda depending on what the output of command line 1. says

                    3. "x"

                    4. "f"

                    5. "w"


                    close the terminal.



                    open a new terminal "ctrl + alt + T" then type the following command within the quotation signs followed by enter




                    1. "sudo fdisk -l"


                    Identify the partition with "linux" at the end, not the one with "linux swap/Solaris"



                    write down the sdaX or hdaX code where "X" is a number



                    e.g. hda2 is (hd0,1) in grub and



                     sda2 is (hd0,1) in grub


                    simillarly sda5 or hda5 is (hd0,4) in grub



                    it is the grub code you'll need.



                    your grub code should be in the form (hd0,W) where W is a number



                    close the terminal



                    Connect to the internet



                    open a new terminal "ctrl + alt + T" then type the following commands within the quotation signs followed by enter




                    1. "sudo apt-get install grub"

                    2. "Y"

                    3. "sudo grub"

                    4. "root (hd0,W)"

                    5. "setup (hd0)"

                    6. "quit"


                    close the terminal
                    - You might need to run startup repair with your windows installation dvd
                    - Grub Should be reinstalled and working properly







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Aug 4 '15 at 13:18

























                    answered Aug 4 '15 at 13:12









                    Emmanuel OfomanaEmmanuel Ofomana

                    112




                    112























                        0














                        I don't know if I understood the problem correctly but I lost my grub menu after bios update.There was no grub menu and it directly booted my windows.
                        (I had dual-booted Ubuntu 18.04 and windows 10). I accessed the advanced startup options after booting into windows(as given above). From the options I accessed the U.E.F.I settings, there I found both my software installed so I changed the priority by making Ubuntu the first one to be booted and when I saved the changes I could see my grub menu after restart.
                        (I just thought to check out what will happen if I changed this setting.)
                        I have no clue about boot-repair and don't know if I used it or not.






                        share|improve this answer




























                          0














                          I don't know if I understood the problem correctly but I lost my grub menu after bios update.There was no grub menu and it directly booted my windows.
                          (I had dual-booted Ubuntu 18.04 and windows 10). I accessed the advanced startup options after booting into windows(as given above). From the options I accessed the U.E.F.I settings, there I found both my software installed so I changed the priority by making Ubuntu the first one to be booted and when I saved the changes I could see my grub menu after restart.
                          (I just thought to check out what will happen if I changed this setting.)
                          I have no clue about boot-repair and don't know if I used it or not.






                          share|improve this answer


























                            0












                            0








                            0







                            I don't know if I understood the problem correctly but I lost my grub menu after bios update.There was no grub menu and it directly booted my windows.
                            (I had dual-booted Ubuntu 18.04 and windows 10). I accessed the advanced startup options after booting into windows(as given above). From the options I accessed the U.E.F.I settings, there I found both my software installed so I changed the priority by making Ubuntu the first one to be booted and when I saved the changes I could see my grub menu after restart.
                            (I just thought to check out what will happen if I changed this setting.)
                            I have no clue about boot-repair and don't know if I used it or not.






                            share|improve this answer













                            I don't know if I understood the problem correctly but I lost my grub menu after bios update.There was no grub menu and it directly booted my windows.
                            (I had dual-booted Ubuntu 18.04 and windows 10). I accessed the advanced startup options after booting into windows(as given above). From the options I accessed the U.E.F.I settings, there I found both my software installed so I changed the priority by making Ubuntu the first one to be booted and when I saved the changes I could see my grub menu after restart.
                            (I just thought to check out what will happen if I changed this setting.)
                            I have no clue about boot-repair and don't know if I used it or not.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 11 at 5:53









                            Shakti RatanShakti Ratan

                            1




                            1






























                                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.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f546890%2funable-to-fix-grub-for-dual-boot-after-bios-update-using-boot-repair%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

                                How to send String Array data to Server using php in android

                                Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                                Is anime1.com a legal site for watching anime?