Public bug reported:

Attempting to update the kernel from linux-image-5.3.0-29-generic to
5.3.0-40-generic on a 19.10 system with default ZFS root and boot keeps
failing. The latter has installed (for some value of install) but the
former can't be removed and the system is left running that older
kernel. Possibly due to some issue with setting up the next boot image
under ZFS?

root@foo:~# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED
  linux-image-5.3.0-29-generic
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 11.4 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 228252 files and directories currently installed.)
Removing linux-image-5.3.0-29-generic (5.3.0-29.31) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.3.0-29-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: vmlinuz-5.3.0-18-generic in rpool/ROOT/ubuntu_hgbr1h
Found initrd image: initrd.img-5.3.0-18-generic in rpool/ROOT/ubuntu_hgbr1h
Found linux image: vmlinuz-5.3.0-26-generic in rpool/ROOT/ubuntu_hgbr1h
Found initrd image: initrd.img-5.3.0-26-generic in rpool/ROOT/ubuntu_hgbr1h
Found linux image: vmlinuz-5.3.0-40-generic in rpool/ROOT/ubuntu_hgbr1h
Found initrd image: initrd.img-5.3.0-40-generic in rpool/ROOT/ubuntu_hgbr1h
Found memtest86+ image: /BOOT/ubuntu_hgbr1h@/memtest86+.elf
Found memtest86+ image: /BOOT/ubuntu_hgbr1h@/memtest86+.bin
device-mapper: reload ioctl on osprober-linux-sda7  failed: Device or resource 
busy
Command failed.
device-mapper: reload ioctl on osprober-linux-sdb7  failed: Device or resource 
busy
Command failed.
Found Debian GNU/Linux 10 (buster) on /dev/sdc2
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 178
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.3.0-29-generic (--remove):
 installed linux-image-5.3.0-29-generic package post-removal script subprocess 
returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-5.3.0-29-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@foo:~# lsb_release -rd
Description:    Ubuntu 19.10
Release:        19.10
root@foo:~# apt-cache policy linux-image-5.3.0-29-generic
linux-image-5.3.0-29-generic:
  Installed: 5.3.0-29.31
  Candidate: 5.3.0-29.31
  Version table:
 *** 5.3.0-29.31 500
        500 http://gb.archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu eoan-security/main amd64 Packages
        100 /var/lib/dpkg/status
root@foo:~# apt-cache policy linux-image-5.3.0-40-generic
linux-image-5.3.0-40-generic:
  Installed: 5.3.0-40.32
  Candidate: 5.3.0-40.32
  Version table:
 *** 5.3.0-40.32 500
        500 http://gb.archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu eoan-security/main amd64 Packages
        100 /var/lib/dpkg/status
root@foo:~# uname -a
Linux foo 5.3.0-26-generic #28-Ubuntu SMP Wed Dec 18 05:37:46 UTC 2019 x86_64 
x86_64 x86_64 GNU/Linux

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: linux-image-5.3.0-29-generic 5.3.0-29.31
ProcVersionSignature: Ubuntu 5.3.0-26.28-generic 5.3.13
Uname: Linux 5.3.0-26-generic x86_64
NonfreeKernelModules: nvidia zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu8.4
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/controlC0', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D2c', 
'/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/seq', '/dev/snd/timer'] 
failed with exit code 1:
Date: Tue Feb 18 12:06:33 2020
InstallationDate: Installed on 2020-01-16 (32 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
IwConfig:
 enp0s25   no wireless extensions.
 
 lo        no wireless extensions.
Lsusb:
 Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Hewlett-Packard HP Z200 Workstation
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm-color
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/BOOT/ubuntu_hgbr1h@/vmlinuz-5.3.0-26-generic 
root=ZFS=rpool/ROOT/ubuntu_hgbr1h ro quiet splash vt.handoff=1
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.3.0-26-generic N/A
 linux-backports-modules-5.3.0-26-generic  N/A
 linux-firmware                            1.183.4
RfKill:
 
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 02/11/2016
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 786H3 v01.22
dmi.board.asset.tag: CZC108CB4Z
dmi.board.name: 0B40h
dmi.board.vendor: Hewlett-Packard
dmi.chassis.asset.tag: CZC108CB4Z
dmi.chassis.type: 6
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: 
dmi:bvnHewlett-Packard:bvr786H3v01.22:bd02/11/2016:svnHewlett-Packard:pnHPZ200Workstation:pvr:rvnHewlett-Packard:rn0B40h:rvr:cvnHewlett-Packard:ct6:cvr:
dmi.product.family: 103C_53335X
dmi.product.name: HP Z200 Workstation
dmi.product.sku: VA206AV
dmi.sys.vendor: Hewlett-Packard

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: amd64 apport-bug eoan

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

Title:
  Removal of linux-image-5.3.0-29-generic fails

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to