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;
}
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
add a comment |
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
add a comment |
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
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
grub windows-subsystem-for-linux
asked Jul 28 '16 at 13:23
vladonvladon
2231310
2231310
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
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
add a comment |
This fixed it for me:
sudo apt -f remove grub-pc
From https://github.com/Microsoft/WSL/issues/1965#issuecomment-340132015:
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
This fixed it for me:
sudo apt -f remove grub-pc
From https://github.com/Microsoft/WSL/issues/1965#issuecomment-340132015:
add a comment |
This fixed it for me:
sudo apt -f remove grub-pc
From https://github.com/Microsoft/WSL/issues/1965#issuecomment-340132015:
add a comment |
This fixed it for me:
sudo apt -f remove grub-pc
From https://github.com/Microsoft/WSL/issues/1965#issuecomment-340132015:
This fixed it for me:
sudo apt -f remove grub-pc
From https://github.com/Microsoft/WSL/issues/1965#issuecomment-340132015:
answered Feb 7 at 19:11
ZagsZags
24127
24127
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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