package grub-pc 2.02~beta2-9ubuntu1.7 failed to install/upgrade: subprocess installed post-installation script returned error exit status 127
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| grub2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
.
ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: grub-pc 2.02~beta2-
ProcVersionSign
Uname: Linux 3.13.0-74-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
Date: Wed Jan 6 00:53:31 2016
DuplicateSignature: package:
ErrorMessage: subprocess installed post-installation script returned error exit status 127
InstallationDate: Installed on 2015-12-08 (28 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
InvalidGrubScript: /etc/default/grub
ProcCmdLine: BOOT_IMAGE=
RelatedPackageV
dpkg 1.17.5ubuntu5.5
apt 1.0.1ubuntu2.10
SourcePackage: grub2
Title: package grub-pc 2.02~beta2-
UpgradeStatus: No upgrade log present (probably fresh install)

You have removed the ending backtick from /etc/default/grub on the line:
GRUB_DISTRIBUTO R=`lsb_ release -i -s 2> /dev/null || echo Debian
You need to put it back.