package linux-image-6.8.0-36-generic 6.8.0-36.36 failed to install/upgrade: installed linux-image-6.8.0-36-generic package pre-removal script subprocess returned error exit status 1

Bug #2072449 reported by Paul Fedorenko

This bug report will be marked for expiration in 57 days if no further activity occurs. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

I ran sudo apt upgrade and an error dialog popped up. It asked if I wanted to submit a bug report, so I did. I honestly have no idea what happened.

ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: linux-image-6.8.0-36-generic 6.8.0-36.36
ProcVersionSignature: Ubuntu 6.8.0-36.36-generic 6.8.4
Uname: Linux 6.8.0-36-generic x86_64
ApportVersion: 2.28.1-0ubuntu3
AptOrdering:
 linux-generic-hwe-24.04:amd64: Remove
 linux-image-generic-hwe-24.04:amd64: Remove
 linux-image-6.8.0-36-generic:amd64: Remove
 NULL: ConfigurePending
Architecture: amd64
CRDA: N/A
CasperMD5CheckResult: pass
Date: Sun Jul 7 20:34:49 2024
ErrorMessage: installed linux-image-6.8.0-36-generic package pre-removal script subprocess returned error exit status 1
InstallationDate: Installed on 2024-07-08 (0 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
MachineType: Gigabyte Technology Co., Ltd. X570 AORUS PRO WIFI
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.8.0-36-generic root=UUID=9a4dd767-4170-4805-8be2-5223ae4de320 ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 3.12.3-0ubuntu1
PythonDetails: N/A
RelatedPackageVersions: grub-pc N/A
SourcePackage: linux
Title: package linux-image-6.8.0-36-generic 6.8.0-36.36 failed to install/upgrade: installed linux-image-6.8.0-36-generic package pre-removal script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 02/15/2024
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends International, LLC.
dmi.bios.version: F37
dmi.board.asset.tag: Default string
dmi.board.name: X570 AORUS PRO WIFI
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: Default string
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInternational,LLC.:bvrF37:bd02/15/2024:br5.17:svnGigabyteTechnologyCo.,Ltd.:pnX570AORUSPROWIFI:pvr-CF:rvnGigabyteTechnologyCo.,Ltd.:rnX570AORUSPROWIFI:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring:skuDefaultstring:
dmi.product.family: X570 MB
dmi.product.name: X570 AORUS PRO WIFI
dmi.product.sku: Default string
dmi.product.version: -CF
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Paul Fedorenko (torontoguy) wrote :
Revision history for this message
AaronMa (mapengyu) wrote :

Installed terminal log:

Package configuration
You are running a kernel (version 6.8.0-36-generic) and attempting to remove the same version.

Looks like package conf is set wrong.

I tried to do:
$ sudo apt install linux-generic-hwe-24.04
But not reproduced.

I will get kernel team to check it.

Changed in linux (Ubuntu):
status: New → Triaged
Revision history for this message
Anthony Wong (anthonywong) wrote :

Hi Paul, from the attached DpkgHistoryLog.txt, it does not show 'apt upgrade' was run. Are you certain that it was the command you ran which led to the error in the subject?

Revision history for this message
Paul Fedorenko (torontoguy) wrote : Re: [Bug 2072449] Re: package linux-image-6.8.0-36-generic 6.8.0-36.36 failed to install/upgrade: installed linux-image-6.8.0-36-generic package pre-removal script subprocess returned error exit status 1
Download full text (3.7 KiB)

To be fair, it could be a coincidence that the error popped up while I was
running the update. That's the only thing that I was actively doing at the
time, so I just assumed the two were related.

On Sun, 7 Jul 2024 at 21:55, AaronMa <email address hidden> wrote:

> Installed terminal log:
>
> Package configuration
> You are running a kernel (version 6.8.0-36-generic) and attempting to
> remove the same version.
>
> Looks like package conf is set wrong.
>
> I tried to do:
> $ sudo apt install linux-generic-hwe-24.04
> But not reproduced.
>
> I will get kernel team to check it.
>
> ** Changed in: linux (Ubuntu)
> Status: New => Triaged
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2072449
>
> Title:
> package linux-image-6.8.0-36-generic 6.8.0-36.36 failed to
> install/upgrade: installed linux-image-6.8.0-36-generic package pre-
> removal script subprocess returned error exit status 1
>
> Status in linux package in Ubuntu:
> Triaged
>
> Bug description:
> I ran sudo apt upgrade and an error dialog popped up. It asked if I
> wanted to submit a bug report, so I did. I honestly have no idea what
> happened.
>
> ProblemType: Package
> DistroRelease: Ubuntu 24.04
> Package: linux-image-6.8.0-36-generic 6.8.0-36.36
> ProcVersionSignature: Ubuntu 6.8.0-36.36-generic 6.8.4
> Uname: Linux 6.8.0-36-generic x86_64
> ApportVersion: 2.28.1-0ubuntu3
> AptOrdering:
> linux-generic-hwe-24.04:amd64: Remove
> linux-image-generic-hwe-24.04:amd64: Remove
> linux-image-6.8.0-36-generic:amd64: Remove
> NULL: ConfigurePending
> Architecture: amd64
> CRDA: N/A
> CasperMD5CheckResult: pass
> Date: Sun Jul 7 20:34:49 2024
> ErrorMessage: installed linux-image-6.8.0-36-generic package pre-removal
> script subprocess returned error exit status 1
> InstallationDate: Installed on 2024-07-08 (0 days ago)
> InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64
> (20240424)
> MachineType: Gigabyte Technology Co., Ltd. X570 AORUS PRO WIFI
> ProcFB: 0 amdgpudrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.8.0-36-generic
> root=UUID=9a4dd767-4170-4805-8be2-5223ae4de320 ro quiet splash vt.handoff=7
> Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal,
> 3.12.3-0ubuntu1
> PythonDetails: N/A
> RelatedPackageVersions: grub-pc N/A
> SourcePackage: linux
> Title: package linux-image-6.8.0-36-generic 6.8.0-36.36 failed to
> install/upgrade: installed linux-image-6.8.0-36-generic package pre-removal
> script subprocess returned error exit status 1
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 02/15/2024
> dmi.bios.release: 5.17
> dmi.bios.vendor: American Megatrends International, LLC.
> dmi.bios.version: F37
> dmi.board.asset.tag: Default string
> dmi.board.name: X570 AORUS PRO WIFI
> dmi.board.vendor: Gigabyte Technology Co., Ltd.
> dmi.board.version: Default string
> dmi.chassis.asset.tag: Default string
> dmi.chassis.type: 3
> dmi.chassis.vendor: Default string
> dmi.chassis.version: Default string
> dmi.modalias:
> dmi:bvnA...

Read more...

Revision history for this message
Anthony Wong (anthonywong) wrote :

The error stated in the subject was caused by removing the currently running kernel package, but it's unclear why/how that happened.

Can you attach the output of `sudo apt upgrade -o Debug::pkgProblemResolver=true' to this bug?

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