[Bug 1886608] Re: 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

Angel Duran 1886608 at bugs.launchpad.net
Fri Oct 2 08:58:37 UTC 2020


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.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1886608

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

Status in grub2 package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1886608/+subscriptions



More information about the foundations-bugs mailing list