package grub-pc 1.96+20090611-1ubuntu4 failed to install/upgrade: podproces installed post-installation script zwrócił kod błędu 1

Bug #401663 reported by Artur Rona on 2009-07-20
46
This bug affects 10 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Undecided
Unassigned
hfsprogs (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: grub2

$ apt-cache policy grub-pc
grub-pc:
  Zainstalowana: 1.96+20090611-1ubuntu4
  Kandydująca: 1.96+20090611-1ubuntu4
  Tabela wersji:
 *** 1.96+20090611-1ubuntu4 0
        500 http://pl.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status
$ sudo apt-get install -f
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
2 nie w pełni zainstalowanych lub usuniętych.
Po tej operacji zostanie dodatkowo użyte 0B miejsca na dysku.
Konfigurowanie grub-pc (1.96+20090611-1ubuntu4) ...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0) /dev/sda
(hd1) /dev/sdb
Generating grub.cfg ...
No path or device is specified.
Try ``grub-probe --help'' for more information.
No path or device is specified.
Try ``grub-probe --help'' for more information.
dpkg: błąd przetwarzania grub-pc (--configure):
 podproces installed post-installation script zwrócił kod błędu 1
dpkg: problemy z zależnościami uniemożliwiają skonfigurowanie grub2:
 grub2 zależy od grub-pc; jednakże:
  Pakiet grub-pc nie jest jeszcze skonfigurowany.
dpkg: błąd przetwarzania grub2 (--configure):
 problemy z zależnościami - pozostawiony nieskonfigurowany
No apport report written because the error message indicates its a followup error from a previous failure.
                          Wystąpiły błędy podczas przetwarzania:
 grub-pc
 grub2
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
Architecture: i386
Date: Mon Jul 20 13:00:21 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: podproces installed post-installation script zwrócił kod błędu 1
NonfreeKernelModules: nvidia
Package: grub-pc 1.96+20090611-1ubuntu4
ProcVersionSignature: Ubuntu 2.6.30-10.12-generic
SourcePackage: grub2
Title: package grub-pc 1.96+20090611-1ubuntu4 failed to install/upgrade: podproces installed post-installation script zwrócił kod błędu 1
Uname: Linux 2.6.30-10-generic i686

Artur Rona (ari-tczew) wrote :
Dimitrios Symeonidis (azimout) wrote :

 Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in grub2 (Ubuntu):
status: New → Incomplete
Matteo Settenvini (tchernobog) wrote :

I've found the culprit. This bugs still occurs for me, and its not grub's fault.
On powerpc machines, the bootloader (grub2 along with yaboot) are put on a separate partition, which is HFS formatted.

I mount this partition as /boot/grub.

The problem is with hfsutils: even if they report (e.g. via the output of "mount") that this filesystem is mounted read-write, after an abrupt halting of the machine it's mounted read-only. The only real fix is to manually unmount /boot/grub, run fsck on it which clears the dirty flag, and then remounting it and running grub2 installation again.

So I believe that fixing the output of mount, or forcing a fsck when mounting a hfs volume, is the only real solution to this.

Or whenever the filesystem gets dirty, and update-grub is called, you'll get errors, potentially leaving your system unusable.

Matteo Settenvini (tchernobog) wrote :

Sorry for the confusion, the last comment is about Bug #410522, which probably is different from this (and thus incorrectly labeled as a dupe). Also the reference to hfsprogs is for that.
@Artur: on what architecture are you on?

Artur Rona (ari-tczew) wrote :

@Dimitrios: I don't now whether new version fixing this bug, because this bug was very arduous and I did workaround about this issue previously.

@Matteo: 32bit.

Changed in grub2 (Ubuntu):
status: Incomplete → New
Dimitrios Symeonidis (azimout) wrote :

@Artur: what is the workaround you implemented?
@Matteo: should we remove the duplicate?

Matteo Settenvini (tchernobog) wrote :

@Dimitrios: yes, please, remove the dupe. I will update the other bug accordingly.

Changed in hfsprogs (Ubuntu):
status: New → Invalid
Artur Rona (ari-tczew) wrote :

I did it very long ago, so I'm writing about it from my 'mind'.

1) make backup /boot
2) purge packages grub2, grub-pc and related
3) clean /boot
4) remove out-of-dated kernels
5) install latest grub2/grub-pc
6) install latest kernel
7) merge your boot-backup directory with original: if any files which no exist in /boot directory, copy from backup directory to /boot (no overwrite if exist!); including files from /boot/grub like .mod files

Artur Rona (ari-tczew) wrote :

I'm marking this bug as Invalid because I think that it's not important and very hard to reproduce.

Changed in grub2 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers