package grub-pc 2.02~beta2-9 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1

Bug #1311543 reported by Rui Andrada
94
This bug affects 21 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

In the end of installation grub can't install the package and into boot sector.
Grub shows me this message:

grub-install: error: failed to get canonical path of `none'

I'll trying to fix my installation alone before reboot, but I think it's good try to report this bug before.

lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04

# lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04

# apt-cache policy grub
grub:
  Installed: (none)
  Candidate: 0.97-29ubuntu66
  Version table:
     0.97-29ubuntu66 0
        500 http://br.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

# apt-cache policy grub-pc
grub-pc:
  Installed: 2.02~beta2-9
  Candidate: 2.02~beta2-9
  Version table:
 *** 2.02~beta2-9 0
        500 http://br.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: grub-pc 2.02~beta2-9
ProcVersionSignature: Ubuntu 3.2.0-60.91-generic 3.2.55
Uname: Linux 3.2.0-60-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
Date: Wed Apr 23 05:49:44 2014
DuplicateSignature: package:grub-pc:2.02~beta2-9:ErrorMessage: subprocess installed post-installation script returned error exit status 1
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2011-12-03 (872 days ago)
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
SourcePackage: grub2
Title: package grub-pc 2.02~beta2-9 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to trusty on 2014-04-23 (0 days ago)

Revision history for this message
Rui Andrada (shingonoide) wrote :
Revision history for this message
Rui Andrada (shingonoide) wrote :

Trying to execute "dpkg --configure -a" return this.

# dpkg --configure -a
Setting up grub-pc (2.02~beta2-9) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/sbin/grub-probe: error: failed to get canonical path of `none'.
dpkg: error processing package grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 grub-pc

Revision history for this message
Rui Andrada (shingonoide) wrote :

I think I do something wrong.
I've tried to use the "sandbox mode" of do-release-upgrade witch shows me error, but seems the "sandbox mode" still active and grub can't install into boot sector.
I do reboot and try to install again and everything works now.

Changed in grub2 (Ubuntu):
status: New → Invalid
Revision history for this message
Phil Salkie (phil-asylumhouse) wrote :

So, we've changed a bug from New to Invalid without any comments as to why. That's why people run screaming from Ubuntu...

Revision history for this message
Rui Andrada (shingonoide) wrote :

Sorry, I don't understand.
I guess the bug was invalid because was my fault not a bug in grub2.
I guess was helping, sorry.

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.