package linux-headers-6.5.0-27-generic 6.5.0-27.28 failed to install/upgrade: installed linux-headers-6.5.0-27-generic package post-installation script subprocess returned error exit status 1

Bug #2060989 reported by Nela Petrželková
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
In Progress
Undecided
En-Wei Wu

Bug Description

-

ProblemType: Package
DistroRelease: Ubuntu 23.10
Package: linux-headers-6.5.0-27-generic 6.5.0-27.28
ProcVersionSignature: Ubuntu 6.5.0-26.26-generic 6.5.13
Uname: Linux 6.5.0-26-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: nela 2694 F.... wireplumber
 /dev/snd/controlC1: nela 2694 F.... wireplumber
 /dev/snd/seq: nela 2674 F.... pipewire
CRDA: N/A
CasperMD5CheckResult: pass
Date: Thu Apr 11 10:13:36 2024
ErrorMessage: installed linux-headers-6.5.0-27-generic package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2024-03-30 (12 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-26-generic root=UUID=e960f11c-d239-429e-97af-9073de7f3b3a ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.11, Python 3.11.6, python3-minimal, 3.11.4-5
PythonDetails: N/A
RelatedPackageVersions: grub-pc N/A
SourcePackage: linux
Title: package linux-headers-6.5.0-27-generic 6.5.0-27.28 failed to install/upgrade: installed linux-headers-6.5.0-27-generic package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/02/2021
dmi.bios.release: 1.27
dmi.bios.vendor: LENOVO
dmi.bios.version: HACN27WW
dmi.board.asset.tag: No Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: NO DPK
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Legion S7 15ACH6
dmi.ec.firmware.release: 1.27
dmi.modalias: dmi:bvnLENOVO:bvrHACN27WW:bd08/02/2021:br1.27:efr1.27:svnLENOVO:pn82K8:pvrLegionS715ACH6:rvnLENOVO:rnLNVNB161216:rvrNODPK:cvnLENOVO:ct10:cvrLegionS715ACH6:skuLENOVO_MT_82K8_BU_idea_FM_LegionS715ACH6:
dmi.product.family: Legion S7 15ACH6
dmi.product.name: 82K8
dmi.product.sku: LENOVO_MT_82K8_BU_idea_FM_Legion S7 15ACH6
dmi.product.version: Legion S7 15ACH6
dmi.sys.vendor: LENOVO

Revision history for this message
Nela Petrželková (petrznel) wrote :
Changed in linux (Ubuntu):
assignee: nobody → Anthony Wong (anthonywong)
Changed in linux (Ubuntu):
assignee: Anthony Wong (anthonywong) → En-Wei Wu (rickywu)
En-Wei Wu (rickywu)
Changed in linux (Ubuntu):
status: New → In Progress
Revision history for this message
En-Wei Wu (rickywu) wrote :

Could you provide the build log of dkms (run by the apt post script)? Probably in /var/lib/dkms/gds-nvidia-fs/2.19.6/6.5.0-27-generic/x86_64/log/make.log.

Revision history for this message
Nela Petrželková (petrznel) wrote : Re: [Bug 2060989] Re: package linux-headers-6.5.0-27-generic 6.5.0-27.28 failed to install/upgrade: installed linux-headers-6.5.0-27-generic package post-installation script subprocess returned error exit status 1
Download full text (4.1 KiB)

Hello, below you can find the log:

/DKMS make.log for nvidia-fs-2.19.6 for kernel 6.5.0-26-generic (x86_64)
Mon Apr  1 07:45:59 PM CEST 2024
Picking NVIDIA driver sources from
NVIDIA_SRC_DIR=/usr/src/nvidia-535.161.07/nvidia. If that does not meet
your expectation, you might have a stale driver still around and that
might cause problems.
Getting symbol versions from
/lib/modules/6.5.0-26-generic/kernel/nvidia-535/nvidia.ko ...
Created: /var/lib/dkms/nvidia-fs/2.19.6/build/nv.symvers
checking if uaccess.h access_ok has 3 parameters... no
checking if uaccess.h access_ok has 2 parameters... yes
Checking if blkdev.h has blk_rq_payload_bytes... yes
Checking if fs.h has call_read_iter and call_write_iter... yes
Checking if fs.h has filemap_range_has_page... yes
Checking if kiocb structue has ki_complete field... yes
Checking if vm_fault_t exist in mm_types.h... yes
Checking if enum PCIE_SPEED_32_0GT exists in pci.h... yes
Checking if atomic64_t counter is of type long... no
Checking if RQF_COPY_USER is present or not... no
Checking if dma_drain_size and dma_drain_needed are present in struct
request_queue... no
Checking if struct proc_ops is present or not ... yes
Checking if split is present in vm_operations_struct or not ... no
Checking if mremap in vm_operations_struct has one parameter... yes
Checking if mremap in vm_operations_struct has two parameters... no
Checking if symbol module_mutex is present... no
Checking if blk-integrity.h is present... yes
Checking if KI_COMPLETE has 3 parameters ... no
Checking if pin_user_pages_fast symbol is present in kernel or not ... yes
Checking if prandom_u32 symbol is present in kernel or not ... no
Checking if devnode in class has doesn't have const device or not ... no
Checking if class_create has two parameters or not ... no
Checking if vma_flags are modifiable directly ... no
make[1]: warning: -j4 forced in submake: resetting jobserver mode.
make[1]: Entering directory '/usr/src/linux-headers-6.5.0-26-generic'
warning: the compiler differs from the one used to build the kernel
   The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu
13.2.0-4ubuntu3) 13.2.0
   You are using:           gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
   CC [M]  /var/lib/dkms/nvidia-fs/2.19.6/build/nvfs-core.o
   CC [M]  /var/lib/dkms/nvidia-fs/2.19.6/build/nvfs-dma.o
   CC [M]  /var/lib/dkms/nvidia-fs/2.19.6/build/nvfs-mmap.o
   CC [M]  /var/lib/dkms/nvidia-fs/2.19.6/build/nvfs-pci.o
   CC [M]  /var/lib/dkms/nvidia-fs/2.19.6/build/nvfs-proc.o
   CC [M]  /var/lib/dkms/nvidia-fs/2.19.6/build/nvfs-mod.o
   CC [M] /var/lib/dkms/nvidia-fs/2.19.6/build/nvfs-kernel-interface.o
   CC [M]  /var/lib/dkms/nvidia-fs/2.19.6/build/nvfs-stat.o
   CC [M]  /var/lib/dkms/nvidia-fs/2.19.6/build/nvfs-rdma.o
   CC [M]  /var/lib/dkms/nvidia-fs/2.19.6/build/nvfs-batch.o
   LD [M]  /var/lib/dkms/nvidia-fs/2.19.6/build/nvidia-fs.o
   MODPOST /var/lib/dkms/nvidia-fs/2.19.6/build/Module.symvers
WARNING: modpost: "nvidia_p2p_dma_unmap_pages"
[/var/lib/dkms/nvidia-fs/2.19.6/build/nvidia-fs.ko] undefined!
WARNING: modpost: "nvidia_p2p_get_pages"
[/var/lib/dkms/nvidia-fs/2.19.6/build/nvidia-fs.ko] undefined!
WARNING: modpost: "nvidia_p2p_put_pages" ...

Read more...

Revision history for this message
En-Wei Wu (rickywu) wrote :

From the make.log above, it seems that the dkms built nvidia-fs-2.19.6 on 6.5.0-26-generic kernel header. Could you try dkms build the nvidia-fs-2.19.6 on 6.5.0-27-generic kernel header on your own? (add the -k 6.5.0-27-generic on dkms build)

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

 * dkms: running auto installation service for kernel 6.5.0-27-generic
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/nvidia-fs/2.19.6/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/nvidia-fs/2.19.6/source/dkms.conf)
nvidia-fs/2.19.6 autoinstall failed due to missing dependencies: nvidia
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.5.0-27-generic
   ...fail!

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

nvidia-fs/2.19.6 is not an Ubuntu DKMS. How did you install it, where did you get it from? You need to install nvidia-fs-dkms from the archive.

tags: removed: need-duplicate-check
Revision history for this message
En-Wei Wu (rickywu) wrote :
Revision history for this message
En-Wei Wu (rickywu) wrote :

The problem is caused by line 51 in src/dkms.conf (nvidia-fs/2.19.6):
```
BUILD_DEPENDS[0]="nvidia"
```

The `dkms autoinstall` assume we've installed nvidia driver by dkms, but we're not.

Comment out this line works successfully. I'm wondering if we should upstream the change.

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.