package grub-pc 2.02-2ubuntu8.2 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 10

Bug #1786766 reported by Akib ibna sunny
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

i have a information

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: grub-pc 2.02-2ubuntu8.2
ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Mon Aug 13 17:46:03 2018
DuplicateSignature:
 package:grub-pc:2.02-2ubuntu8.2
 Setting up grub-pc (2.02-2ubuntu8.2) ...
 dpkg: error processing package grub-pc (--configure):
  installed grub-pc package post-installation script subprocess returned error exit status 10
ErrorMessage: installed grub-pc package post-installation script subprocess returned error exit status 10
InstallationDate: Installed on 2018-07-13 (31 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-29-generic root=UUID=8ddf85dd-0d0c-4e66-8dcb-599566e605f5 ro quiet splash vt.handoff=1
Python3Details: /usr/bin/python3.6, Python 3.6.5, unpackaged
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.3
SourcePackage: grub2
Title: package grub-pc 2.02-2ubuntu8.2 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 10
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Akib ibna sunny (akibibnasunny) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Phillip Susi (psusi) wrote :

Please run sudo nano /var/lib/dpkg/info/grub-pc.postinst and change the line that says "set -e" to "set -ex", then sudo apt-get install -f to run it again and post the output.

Changed in grub2 (Ubuntu):
status: New → Incomplete
Revision history for this message
michelinux (mich-delbianco) wrote :

Hello, I think I got the same problem with different packages, i.e. unattended-upgrades:

Configurazione di unattended-upgrades (1.1ubuntu1.18.04.5)...
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/unattended-upgrades.postinst configure 1.1ubuntu1
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z ]
+ exec
+ [ ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ [ -d /var/log/unattended-upgrades ]
+ chown root:adm /var/log/unattended-upgrades
+ chmod 0750 /var/log/unattended-upgrades
+ [ -e /etc/pm/sleep.d/10_unatteded-upgrades-hibernate ]
+ db_get unattended-upgrades/enable_auto_updates
+ _db_cmd GET unattended-upgrades/enable_auto_updates
+ _db_internal_IFS=

+ IFS=
+ printf %s\n GET unattended-upgrades/enable_auto_updates
+ IFS=

+ IFS=
 read -r _db_internal_line
+ RET=true
+ return 0
+ CONFIG=/etc/apt/apt.conf.d/20auto-upgrades
+ [ true = true ]
+ NEWFILE=/usr/share/unattended-upgrades/20auto-upgrades
+ ucf --three-way --debconf-ok /usr/share/unattended-upgrades/20auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades
dpkg: errore nell'elaborare il pacchetto unattended-upgrades (--configure):
 installed unattended-upgrades package post-installation script subprocess returned error exit status 10
Si sono verificati degli errori nell'elaborazione:
 unattended-upgrades
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.]

Changed in grub2 (Ubuntu):
status: Incomplete → Expired
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.