grub-pc update-error on Windows Linux Subsystem





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







6















After sudo apt upgrade following error constantly appears:



$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up grub-pc (2.02~beta2-9ubuntu1.11) ...
grub-probe: error: failed to get canonical path of `rootfs'.
grub-probe: error: failed to get canonical path of `rootfs'.
grub-probe: error: failed to get canonical path of `rootfs'.
/usr/sbin/grub-probe: error: failed to get canonical path of `rootfs'.
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)


Is there a way to fix it?



Windows 10 build 14393










share|improve this question





























    6















    After sudo apt upgrade following error constantly appears:



    $ sudo apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n]
    Setting up grub-pc (2.02~beta2-9ubuntu1.11) ...
    grub-probe: error: failed to get canonical path of `rootfs'.
    grub-probe: error: failed to get canonical path of `rootfs'.
    grub-probe: error: failed to get canonical path of `rootfs'.
    /usr/sbin/grub-probe: error: failed to get canonical path of `rootfs'.
    dpkg: error processing package grub-pc (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    grub-pc
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    Is there a way to fix it?



    Windows 10 build 14393










    share|improve this question

























      6












      6








      6


      3






      After sudo apt upgrade following error constantly appears:



      $ sudo apt-get upgrade
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Calculating upgrade... Done
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      1 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Do you want to continue? [Y/n]
      Setting up grub-pc (2.02~beta2-9ubuntu1.11) ...
      grub-probe: error: failed to get canonical path of `rootfs'.
      grub-probe: error: failed to get canonical path of `rootfs'.
      grub-probe: error: failed to get canonical path of `rootfs'.
      /usr/sbin/grub-probe: error: failed to get canonical path of `rootfs'.
      dpkg: error processing package grub-pc (--configure):
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      grub-pc
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      Is there a way to fix it?



      Windows 10 build 14393










      share|improve this question














      After sudo apt upgrade following error constantly appears:



      $ sudo apt-get upgrade
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Calculating upgrade... Done
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      1 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Do you want to continue? [Y/n]
      Setting up grub-pc (2.02~beta2-9ubuntu1.11) ...
      grub-probe: error: failed to get canonical path of `rootfs'.
      grub-probe: error: failed to get canonical path of `rootfs'.
      grub-probe: error: failed to get canonical path of `rootfs'.
      /usr/sbin/grub-probe: error: failed to get canonical path of `rootfs'.
      dpkg: error processing package grub-pc (--configure):
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      grub-pc
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      Is there a way to fix it?



      Windows 10 build 14393







      grub windows-subsystem-for-linux






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 28 '16 at 13:23









      vladonvladon

      2231310




      2231310






















          2 Answers
          2






          active

          oldest

          votes


















          1














          Check out this github comment and the one directly below it (for copy pasteable script) for some solution that worked for me.



          For ease of anyone visiting, here's the comment's important text (though you should thumbs up the guy on the github comment if you're able):



          (I had to do it after running sudo -s or prefixing each line with sudo)



          cat > /usr/sbin/policy-rc.d <<EOF
          #!/bin/sh
          exit 101
          EOF
          chmod +x /usr/sbin/policy-rc.d
          dpkg-divert --local --rename --add /sbin/initctl
          ln -s /bin/true /sbin/initctl





          share|improve this answer
























          • this error occurs when i attempt: sudo apt-get install libssl-dev followed the instructions but problem persists

            – Reinsbrain
            Oct 9 '17 at 19:18











          • Not working for me, any workaround? On Ubuntu 16.04 for Windows

            – Lorenzo Peña
            Nov 13 '17 at 14:30











          • @LorenzoPeña Haven't had this issue for a while now. Maybe check that github issue for any updates?

            – Dave Lugg
            Nov 15 '17 at 15:48











          • Unfortunately, I had to wipe my WLS install and start from scratch. Thanks for the reply. Won't try to install docker in WLS again ;)

            – Lorenzo Peña
            Nov 15 '17 at 16:05



















          0














          This fixed it for me:



          sudo apt -f remove grub-pc


          From https://github.com/Microsoft/WSL/issues/1965#issuecomment-340132015:






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f1106097%2fgrub-pc-update-error-on-windows-linux-subsystem%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Check out this github comment and the one directly below it (for copy pasteable script) for some solution that worked for me.



            For ease of anyone visiting, here's the comment's important text (though you should thumbs up the guy on the github comment if you're able):



            (I had to do it after running sudo -s or prefixing each line with sudo)



            cat > /usr/sbin/policy-rc.d <<EOF
            #!/bin/sh
            exit 101
            EOF
            chmod +x /usr/sbin/policy-rc.d
            dpkg-divert --local --rename --add /sbin/initctl
            ln -s /bin/true /sbin/initctl





            share|improve this answer
























            • this error occurs when i attempt: sudo apt-get install libssl-dev followed the instructions but problem persists

              – Reinsbrain
              Oct 9 '17 at 19:18











            • Not working for me, any workaround? On Ubuntu 16.04 for Windows

              – Lorenzo Peña
              Nov 13 '17 at 14:30











            • @LorenzoPeña Haven't had this issue for a while now. Maybe check that github issue for any updates?

              – Dave Lugg
              Nov 15 '17 at 15:48











            • Unfortunately, I had to wipe my WLS install and start from scratch. Thanks for the reply. Won't try to install docker in WLS again ;)

              – Lorenzo Peña
              Nov 15 '17 at 16:05
















            1














            Check out this github comment and the one directly below it (for copy pasteable script) for some solution that worked for me.



            For ease of anyone visiting, here's the comment's important text (though you should thumbs up the guy on the github comment if you're able):



            (I had to do it after running sudo -s or prefixing each line with sudo)



            cat > /usr/sbin/policy-rc.d <<EOF
            #!/bin/sh
            exit 101
            EOF
            chmod +x /usr/sbin/policy-rc.d
            dpkg-divert --local --rename --add /sbin/initctl
            ln -s /bin/true /sbin/initctl





            share|improve this answer
























            • this error occurs when i attempt: sudo apt-get install libssl-dev followed the instructions but problem persists

              – Reinsbrain
              Oct 9 '17 at 19:18











            • Not working for me, any workaround? On Ubuntu 16.04 for Windows

              – Lorenzo Peña
              Nov 13 '17 at 14:30











            • @LorenzoPeña Haven't had this issue for a while now. Maybe check that github issue for any updates?

              – Dave Lugg
              Nov 15 '17 at 15:48











            • Unfortunately, I had to wipe my WLS install and start from scratch. Thanks for the reply. Won't try to install docker in WLS again ;)

              – Lorenzo Peña
              Nov 15 '17 at 16:05














            1












            1








            1







            Check out this github comment and the one directly below it (for copy pasteable script) for some solution that worked for me.



            For ease of anyone visiting, here's the comment's important text (though you should thumbs up the guy on the github comment if you're able):



            (I had to do it after running sudo -s or prefixing each line with sudo)



            cat > /usr/sbin/policy-rc.d <<EOF
            #!/bin/sh
            exit 101
            EOF
            chmod +x /usr/sbin/policy-rc.d
            dpkg-divert --local --rename --add /sbin/initctl
            ln -s /bin/true /sbin/initctl





            share|improve this answer













            Check out this github comment and the one directly below it (for copy pasteable script) for some solution that worked for me.



            For ease of anyone visiting, here's the comment's important text (though you should thumbs up the guy on the github comment if you're able):



            (I had to do it after running sudo -s or prefixing each line with sudo)



            cat > /usr/sbin/policy-rc.d <<EOF
            #!/bin/sh
            exit 101
            EOF
            chmod +x /usr/sbin/policy-rc.d
            dpkg-divert --local --rename --add /sbin/initctl
            ln -s /bin/true /sbin/initctl






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 6 '16 at 19:45









            Dave LuggDave Lugg

            1113




            1113













            • this error occurs when i attempt: sudo apt-get install libssl-dev followed the instructions but problem persists

              – Reinsbrain
              Oct 9 '17 at 19:18











            • Not working for me, any workaround? On Ubuntu 16.04 for Windows

              – Lorenzo Peña
              Nov 13 '17 at 14:30











            • @LorenzoPeña Haven't had this issue for a while now. Maybe check that github issue for any updates?

              – Dave Lugg
              Nov 15 '17 at 15:48











            • Unfortunately, I had to wipe my WLS install and start from scratch. Thanks for the reply. Won't try to install docker in WLS again ;)

              – Lorenzo Peña
              Nov 15 '17 at 16:05



















            • this error occurs when i attempt: sudo apt-get install libssl-dev followed the instructions but problem persists

              – Reinsbrain
              Oct 9 '17 at 19:18











            • Not working for me, any workaround? On Ubuntu 16.04 for Windows

              – Lorenzo Peña
              Nov 13 '17 at 14:30











            • @LorenzoPeña Haven't had this issue for a while now. Maybe check that github issue for any updates?

              – Dave Lugg
              Nov 15 '17 at 15:48











            • Unfortunately, I had to wipe my WLS install and start from scratch. Thanks for the reply. Won't try to install docker in WLS again ;)

              – Lorenzo Peña
              Nov 15 '17 at 16:05

















            this error occurs when i attempt: sudo apt-get install libssl-dev followed the instructions but problem persists

            – Reinsbrain
            Oct 9 '17 at 19:18





            this error occurs when i attempt: sudo apt-get install libssl-dev followed the instructions but problem persists

            – Reinsbrain
            Oct 9 '17 at 19:18













            Not working for me, any workaround? On Ubuntu 16.04 for Windows

            – Lorenzo Peña
            Nov 13 '17 at 14:30





            Not working for me, any workaround? On Ubuntu 16.04 for Windows

            – Lorenzo Peña
            Nov 13 '17 at 14:30













            @LorenzoPeña Haven't had this issue for a while now. Maybe check that github issue for any updates?

            – Dave Lugg
            Nov 15 '17 at 15:48





            @LorenzoPeña Haven't had this issue for a while now. Maybe check that github issue for any updates?

            – Dave Lugg
            Nov 15 '17 at 15:48













            Unfortunately, I had to wipe my WLS install and start from scratch. Thanks for the reply. Won't try to install docker in WLS again ;)

            – Lorenzo Peña
            Nov 15 '17 at 16:05





            Unfortunately, I had to wipe my WLS install and start from scratch. Thanks for the reply. Won't try to install docker in WLS again ;)

            – Lorenzo Peña
            Nov 15 '17 at 16:05













            0














            This fixed it for me:



            sudo apt -f remove grub-pc


            From https://github.com/Microsoft/WSL/issues/1965#issuecomment-340132015:






            share|improve this answer




























              0














              This fixed it for me:



              sudo apt -f remove grub-pc


              From https://github.com/Microsoft/WSL/issues/1965#issuecomment-340132015:






              share|improve this answer


























                0












                0








                0







                This fixed it for me:



                sudo apt -f remove grub-pc


                From https://github.com/Microsoft/WSL/issues/1965#issuecomment-340132015:






                share|improve this answer













                This fixed it for me:



                sudo apt -f remove grub-pc


                From https://github.com/Microsoft/WSL/issues/1965#issuecomment-340132015:







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 7 at 19:11









                ZagsZags

                24127




                24127






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1106097%2fgrub-pc-update-error-on-windows-linux-subsystem%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

                    Terni

                    A new problem with tex4ht and tikz

                    Sun Ra