grub-pc 2.02~beta2-9ubuntu1.1 failed to install/upgrade

Bug #1455383 reported by LucMorizur
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Was updating Ubuntu studio normally as usual with Update Manager at system startup. Message is: "package grub-pc 2.02~beta2-9ubuntu1.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1"

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: grub-pc 2.02~beta2-9ubuntu1.1
ProcVersionSignature: Ubuntu 3.16.0-37.51~14.04.1-generic 3.16.7-ckt9
Uname: Linux 3.16.0-37-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: amd64
Date: Fri May 15 10:07:03 2015
DuplicateSignature: package:grub-pc:2.02~beta2-9ubuntu1.1:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2015-04-12 (32 days ago)
InstallationMedia: Ubuntu-Studio 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
ProcCmdLine: BOOT_IMAGE=/vmlinuz-3.16.0-37-generic root=UUID=cc6a03fa-bfe1-4493-9e1d-1aeb753e7d5d ro quiet splash vt.handoff=7
SourcePackage: grub2
Title: package grub-pc 2.02~beta2-9ubuntu1.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
LucMorizur (lucmorizur) wrote :
Revision history for this message
LucMorizur (lucmorizur) wrote :

After having reported this bug, I ran a "sudo apt-get update" and "sudo apt-get upgrade". The upgrade returned:

Paramétrage de grub-pc (2.02~beta2-9ubuntu1.1) ...
mkdir: impossible de créer le répertoire «/boot/grub»: Aucun espace disponible sur le périphérique
dpkg: error processing package grub-pc (--configure):
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
[...]
Des erreurs ont été rencontrées pendant l'exécution :
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)

"mkdir: impossible de créer le répertoire «/boot/grub»: Aucun espace disponible sur le périphérique" means that there is no space available on the media, allowing to create directory "grub" in directory "/boot/". I'm very surprised with that, as "/boot/grub/" normally already exists, and as space on the media where "/boot/" is, should normally not be an issue at al...

Anyway actually this bug looks deeply like coming from my hardware rather than from the update process. I'll try to fix that and let another comment.

tags: removed: need-duplicate-check
Revision history for this message
LucMorizur (lucmorizur) wrote :

OK; in fact my /boot/ directory is placed on a USB key which I moved from a USB port to another one before updating, and without having restarted, so the USB key was unmounted and thus /boot/ directory was not existing any more. Stupid me. I'll try to close the issue.

Revision history for this message
LucMorizur (lucmorizur) wrote :

My /boot/ directory is placed on a USB key which I moved from a USB port to another one before updating, and without having restarted, so the USB key was unmounted and thus /boot/ directory was not existing any more.

Changed in grub2 (Ubuntu):
status: New → Invalid
Revision history for this message
Greggth (greggth) wrote :

I was sent to this bug by the system software (crash reporter, I guess). I think I'm having a different issue. I don't have /boot on USB. My /boot is full (which I'm actively trying to clean up), but I'm guessing these are similar problems of "couldn't write to /boot".

Changed in grub2 (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Phillip Susi (psusi) wrote :

Please file your own bug report with your own logs attached.

Changed in grub2 (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
刘成功 (mr-ace) wrote :

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-headers-generic linux-signed-generic linux-signed-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up grub-pc (2.02~beta2-9ubuntu1.1) ...
insmod: ERROR: could not load module part_gpt: No such file or directory
dpkg: error processing package grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of grub2:
 grub2 depends on grub-pc (= 2.02~beta2-9ubuntu1.1); however:
  Package grub-pc is not configured yet.

dpkg: error processing package grub2 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 grub-pc
 grub2
E: Sub-process /usr/bin/dpkg returned an error code (1)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.