PDA

View Full Version : Leeenux v4 - grub configuration failure causes boot failure



Agent_24
03-03-2011, 11:15 AM
I have Leeenux v4.01 installed on my Asus Eee PC. It works great but if one tries to update the kernel or grub, problems happen.

From day one, grub-pc has had problems configuring itself whenever software is upgraded\installed etc.


Setting up rsyslog (4.2.0-2ubuntu8.1) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up grub-pc (1.98-1ubuntu9) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10



Errors were encountered while processing:
rsyslog
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)


On the first installation I managed to render the OS unbootable so I reinstalled and made sure not to do anything that has a critital dependence upon the configuration of grub-pc succeeding.

How can I find what is causing this problem and fix it? I want to be able to upgrade everything without problems like this....

fred_fish
03-03-2011, 02:25 PM
Does it have aptitude?

aptitude install -f

or

dpkg --configure -a

Agent_24
03-03-2011, 03:13 PM
Thanks... With the first option I get this:


agent24@INTEL630:~$ sudo aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following partially installed packages will be configured:
rsyslog
0 packages upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Setting up rsyslog (4.2.0-2ubuntu8.1) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up grub-pc (1.98-1ubuntu9) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
rsyslog
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up grub-pc (1.98-1ubuntu9) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up rsyslog (4.2.0-2ubuntu8.1) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
grub-pc
rsyslog
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

And much the same wth the second:


agent24@INTEL630:~$ sudo dpkg --configure -a
Setting up grub-pc (1.98-1ubuntu9) ...
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up rsyslog (4.2.0-2ubuntu8.1) ...
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
grub-pc
rsyslog

fred_fish
03-03-2011, 03:42 PM
Have you tried purging them?
It may still complain if they are 'partially configured' but may work.
Then reinstall.

You are using the correct repo's for the distro?
You shouldn't normally get errors like this.

Haven't added any 3rd party or vanilla ubuntu ones?
I don't know anything about Leeenux so no idea what your sources.list should be.

Is grub-legacy available in the repo?

Agent_24
07-03-2011, 09:18 AM
I'm a bit wary of doing anything major with it in case I trash the whole thing again.

repos are default AFAIK, so shouldn't be a problem, but IIRC the grub-pc problem always existed. Don't know if it's a bug or something the Leeenux devs stuffed up themselves.

fred_fish
07-03-2011, 09:44 AM
Seems you are not alone.
http://forum.eeeuser.com/viewtopic.php?pid=751976#p751976
Something that the post-installation script is expecting to be there seems to have been removed.
You could inspect said script to figure out what, and try to work around it.