package linux-image-5.15.0-39-generic 5.15.0-39.42 failed to install/upgrade: installed linux-image-5.15.0-39-generic package post-removal script subprocess returned error exit status 1

Bug #1980776 reported by ebsf
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Multiboot Linux system, chiefly Ubuntu 22.04 Desktop.

The failure occurs on an attempted kernel update via `# apt update && apt upgrade` following transition to systemd-boot from GRUB.

The cause seems to be that systemd-boot (perhaps in conjunction with systemd-boot64.efi) does not implement the Boot Loader Specification, in particular that it cannot execute kernel files on other partitions, including the partition to be booted.

Here, linux-update-symlinks fails because it cannot create the symlink `vmlinuz` referencing the current kernel version. The ESP is mounted to /boot, where ordinarily the symlink and its referent would be, but its VFAT filesystem does not permit symlinks. This exposes not only (a) the lack of conformance with the Boot Loader Specification but also (b) the failure of systemd-boot and kernel-install to amend the kernel installation/update routines consistent with the transfer of kernels to the ESP necessitated by its inability to execute them _in situ_.

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: linux-image-5.15.0-39-generic 5.15.0-39.42
ProcVersionSignature: Ubuntu 5.15.0-37.39-generic 5.15.35
Uname: Linux 5.15.0-37-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
AptOrdering:
 linux-modules-extra-5.15.0-39-generic:amd64: Remove
 linux-modules-5.15.0-39-generic:amd64: Remove
 linux-image-5.15.0-39-generic:amd64: Remove
 NULL: ConfigurePending
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: eric 2202 F.... pulseaudio
 /dev/snd/controlC1: eric 2202 F.... pulseaudio
CRDA: N/A
CasperMD5CheckResult: pass
Date: Tue Jul 5 11:43:42 2022
DpkgTerminalLog:
 Removing linux-modules-extra-5.15.0-39-generic (5.15.0-39.42) ...
 Removing linux-image-5.15.0-39-generic (5.15.0-39.42) ...
 Failed to create symlink to vmlinuz-5.15.0-40-generic: Operation not permitted at /usr/bin/linux-update-symlinks line 64.
 dpkg: error processing package linux-image-5.15.0-39-generic (--remove):
  installed linux-image-5.15.0-39-generic package post-removal script subprocess returned error exit status 1
DuplicateSignature:
 package:linux-image-5.15.0-39-generic:5.15.0-39.42
 Removing linux-image-5.15.0-39-generic (5.15.0-39.42) ...
 Failed to create symlink to vmlinuz-5.15.0-40-generic: Operation not permitted at /usr/bin/linux-update-symlinks line 64.
 dpkg: error processing package linux-image-5.15.0-39-generic (--remove):
  installed linux-image-5.15.0-39-generic package post-removal script subprocess returned error exit status 1
ErrorMessage: installed linux-image-5.15.0-39-generic package post-removal script subprocess returned error exit status 1
InstallationDate: Installed on 2022-05-01 (65 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
IwConfig:
 lo no wireless extensions.

 lan0 no wireless extensions.

 wlan0 no wireless extensions.
MachineType: System manufacturer System Product Name
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: initrd=\f34fe2db39e5459ea0a4cda6086598ef\5.15.0-37-generic\initrd root=/dev/sda7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions: grub-pc N/A
RfKill:

SourcePackage: linux
Title: package linux-image-5.15.0-39-generic 5.15.0-39.42 failed to install/upgrade: installed linux-image-5.15.0-39-generic package post-removal script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/08/2015
dmi.bios.release: 4.6
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1704
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: P9X79-E WS
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1704:bd05/08/2015:br4.6:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnP9X79-EWS:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:skuSKU:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.sku: SKU
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
ebsf (eb-9) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (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.