package grub-pc 2.04-1ubuntu26 failed to install/upgrade: el subproceso instalado paquete grub-pc script post-installation devolvió el código de salida de error 1

Bug #1886608 reported by Jesús Jiménez
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

asd

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: grub-pc 2.04-1ubuntu26
ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30
Uname: Linux 5.4.0-26-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
Date: Mon Jul 6 20:48:29 2020
ErrorMessage: el subproceso instalado paquete grub-pc script post-installation devolvió el código de salida de error 1
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-26-generic root=UUID=72388e97-6a63-45fb-8064-1f8416e681f1 ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2
SourcePackage: grub2
Title: package grub-pc 2.04-1ubuntu26 failed to install/upgrade: el subproceso instalado paquete grub-pc script post-installation devolvió el código de salida de error 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jesús Jiménez (chusjmz) wrote :
Revision history for this message
Angel Duran (angelduran) wrote :

Hola Jesús.

He actualizado un equipo con Ubuntu 18.04 a Ubuntu 20.04 y se me ha reproducido el error.
He podido subsanarlo. Aquí te dejo lo que he hecho

Eliminamos versiones anteriores del kernel
En este ejemplo eliminamos la versión 4.15.0-118, pero podemos eliminar la que deseeemos. Podemos ejecutar

       # ls -la /boot

para saber que versiones, o restos de ellas, tenemos.

       # cd /boot
       # mkdir kk
       # mv *4.15.0-118* kk
       # update-grub
       # reboot

https://itsfoss.com/dpkg-returned-an-error-code-1/

# ls -l /var/lib/dpkg/info | grep i grub-pc
# mkdir kk
# mv /var/lib/dpkg/info/grub-pc.* kk

Para estar seguros, antes de reiniciar, podemos ejecutar una reparación

https://slimbook.es/tutoriales/linux/164-3-maneras-de-como-reinstalar-o-reparar-grub-boot-repair-archlinux-o-antergos
# add-apt-repository ppa:yannubuntu/boot-repair
# apt-get update
# apt-get install -y boot-repair
# boot-repair

Las URL es el lugar de dónde he obtenido la información.

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

Status changed to 'Confirmed' because the bug affects multiple users.

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