Errors were encountered while processing: grub-pc

Asked by ricxzone

root@ricxzone-laptop:/home/ricxzone# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up grub-pc (1.98-1ubuntu13) ...
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ricxzone-laptop:/home/ricxzone#

################################################

Anyone knows to remove this error?

I already tried some command line, like :

sudo apt-get purge grub-pc
sudo apt-get install grub-pc --reinstall

But there's nothing improvement

Any help will be appreciate
Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Have you tried running the command as your user using sudo?

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#2

Hi ,

Agreed with @actionparsnip .

It need sudo

sudo apt-get install -f

Thanks

Revision history for this message
ricxzone (ricxzone) said :
#3

It's the same guys

root@ricxzone-laptop:/home/ricxzone# sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up grub-pc (1.98-1ubuntu13) ...
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ricxzone-laptop:/home/ricxzone#

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Try:

sudo mv /var/lib/dpkg/info/grub-pc.postinst /var/lib/dpkg/info/grub-pc.postinst-bad
sudo apt-get -f install

HTH

Revision history for this message
Åka Sikrom (akrosikam-deactivatedaccount) said :
#5

I had this problem as well, running Ubuntu 10.04 on a VPS. It is allegedly a common error on new VPS'es where your hosting company has modified the Ubuntu image to fit into the XEN virtualisation platform.

actionparsnip's solution worked for me.

In my case, Grub could also be removed, since the XEN-platform boots directly into Ubuntu. However: do NOT try that without consulting your host's support agent first! I am no expert, and if you do this on the wrong type of platform it will probably break your boot process. and - consequently - Ubuntu will not be able to start.

Can you help with this problem?

Provide an answer of your own, or ask ricxzone for more information if necessary.

To post a message you must log in.