package linux-headers-6.2.0-31-generic 6.2.0-31.31~22.04.1 failed to install/upgrade: installed linux-headers-6.2.0-31-generic package post-installation script subprocess returned error exit status 1

Bug #2033421 reported by John Brandon Olsen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-hwe-6.2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Failed to install?

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: linux-headers-6.2.0-31-generic 6.2.0-31.31~22.04.1
ProcVersionSignature: Ubuntu 6.2.0-26.26~22.04.1-generic 6.2.13
Uname: Linux 6.2.0-26-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
Date: Tue Aug 29 08:00:32 2023
ErrorMessage: installed linux-headers-6.2.0-31-generic package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2023-05-03 (118 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.2
 apt 2.4.10
SourcePackage: linux-hwe-6.2
Title: package linux-headers-6.2.0-31-generic 6.2.0-31.31~22.04.1 failed to install/upgrade: installed linux-headers-6.2.0-31-generic package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
John Brandon Olsen (johnbrandonolsen) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Juerg Haefliger (juergh) wrote :

/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.2.0-31-generic
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/intel-platform-vsec-dkms/2023.20.0-21/source/dkms.conf does not exist.
   ...fail!

Revision history for this message
Juerg Haefliger (juergh) wrote :

Your installation is botched. Remove that broken/unsupported DKMS:

$ dkms remove intel-platform-vsec-dkms/2023.20.0-21 --all

Changed in linux-hwe-6.2 (Ubuntu):
status: New → Invalid
Revision history for this message
John Brandon Olsen (johnbrandonolsen) wrote : Re: [Bug 2033421] Re: package linux-headers-6.2.0-31-generic 6.2.0-31.31~22.04.1 failed to install/upgrade: installed linux-headers-6.2.0-31-generic package post-installation script subprocess returned error exit status 1
Download full text (3.2 KiB)

Thank you Juerg,

I am now struggling with failures because the dkms.conf is missing for
that package.

    /etc/kernel/header_postinst.d/dkms:
      * dkms: running auto installation service for kernel 6.2.0-32-generic
    Error! Could not locate dkms.conf file.
    File:
    /var/lib/dkms/intel-platform-vsec-dkms/2023.20.0-21/source/dkms.conf
    does not exist.
        ...fail!
    run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
    dpkg: error processing package linux-headers-6.2.0-32-generic
    (--configure):
      installed linux-headers-6.2.0-32-generic package post-installation
    script subprocess returned error exit status 1
    dpkg: dependency problems prevent configuration of
    linux-headers-generic-hwe-22.04:
      linux-headers-generic-hwe-22.04 depends on
    linux-headers-6.2.0-32-generic; however:
       Package linux-headers-6.2.0-32-generic is not configured yet.

    dpkg: error processing package linux-headers-generic-hwe-22.04
    (--configure):
      dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of
    linux-generic-hwe-22.04:
      linux-generic-hwe-22.04 depends on linux-headers-generic-hwe-22.04
    (= 6.2.0.32.32~22.04.9); however:
       Package linux-headers-generic-hwe-22.04 is not configured yet.

    dpkg: error processing package linux-generic-hwe-22.04 (--configure):
      dependency problems - leaving unconfigured
    No apport report written because the error message indicates its a
    followup error from a previous failure.
    No apport report written because the erro
    r message indicates its a followup error from a previous failure.
    Processing triggers for linux-image-6.2.0-32-generic
    (6.2.0-32.32~22.04.1) ...
    /etc/kernel/postinst.d/dkms:
      * dkms: running auto installation service for kernel 6.2.0-32-generic
    Error! Could not locate dkms.conf file.
    File:
    /var/lib/dkms/intel-platform-vsec-dkms/2023.20.0-21/source/dkms.conf
    does not exist.
        ...fail!
    run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
    dpkg: error processing package linux-image-6.2.0-32-generic
    (--configure):
      installed linux-image-6.2.0-32-generic package post-installation
    script subprocess returned error exit status 1
    No apport report written because MaxReports is reached already
    Errors were encountered while processing:
      linux-headers-6.2.0-32-generic
      linux-headers-generic-hwe-22.04
      linux-generic-hwe-22.04
      linux-image-6.2.0-32-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

On 8/30/23 02:38, Juerg Haefliger wrote:
> Your installation is botched. Remove that broken/unsupported DKMS:
>
> $ dkms remove intel-platform-vsec-dkms/2023.20.0-21 --all
>
> ** Changed in: linux-hwe-6.2 (Ubuntu)
> Status: New => Invalid
>
--

johnbrandonolsen Masthead Image <http://www.johnbrandonolsen.com>
John Brandon Olsen
(828) 490-9152
www.johnbrandonolsen.com <https://www.johnbrandonolsen.com>

  * Follow me on Twitter! <https://twitter.com/JBrandonOlsen>
  * Connected with me on LinkedIn!
    <https://www.linkedin.com/in/brandon-olsen-43686013...

Read more...

Revision history for this message
Gamunu Balagalla (gamunu) wrote :

For some unknown reason, dkms removal did not work for me. However, deleting the directory /var/lib/dkms/intel-platform-vsec-dkms did the job for me. Although I'm not certain whether this has any negative effects, this method worked for me.

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.