depmod ERROR during Setting up linux-modules-5.4.0-17-generic

Bug #1866012 reported by Po-Hsu Lin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kmod (Ubuntu)
New
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Deploy Focal on a KVM ndoe, enable proposed
2. Run sudo apt dist-upgrade

The console will be flushed with:
Setting up libisc1105:amd64 (1:9.11.16+dfsg-3~build1) ...
Setting up linux-modules-5.4.0-17-generic (5.4.0-17.21) ...
depmod: ERROR: ../libkmod/libkmod.c:515 lookup_builtin_file() could not open builtin file '/lib/modules/5.4.0-17-generic/modules.builtin.bin'
depmod: ERROR: ../libkmod/libkmod.c:515 lookup_builtin_file() could not open builtin file '/lib/modules/5.4.0-17-generic/modules.builtin.bin'
depmod: ERROR: ../libkmod/libkmod.c:515 lookup_builtin_file() could not open builtin file '/lib/modules/5.4.0-17-generic/modules.builtin.bin'
depmod: ERROR: ../libkmod/libkmod.c:515 lookup_builtin_file() could not open builtin file '/lib/modules/5.4.0-17-generic/modules.builtin.bin'
depmod: ERROR: ../libkmod/libkmod.c:515 lookup_builtin_file() could not open builtin file '/lib/modules/5.4.0-17-generic/modules.builtin.bin'
....
Setting up apt-utils (1.9.12) ...
Setting up libselinux1-dev:amd64 (3.0-1build2) ...
Setting up libglib2.0-0:amd64 (2.64.0-1) ...

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.4.0-14-generic 5.4.0-14.17
ProcVersionSignature: User Name 5.4.0-14.17-generic 5.4.18
Uname: Linux 5.4.0-14-generic x86_64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Mar 4 08:29 seq
 crw-rw---- 1 root audio 116, 33 Mar 4 08:29 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu18
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Wed Mar 4 09:06:42 2020
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Lsusb-t: /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
PciMultimedia:

ProcFB: 0 cirrusdrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-14-generic root=UUID=36e162f3-41b5-4487-a6dc-09ba4e37d3bf ro console=tty1 console=ttyS0
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-14-generic N/A
 linux-backports-modules-5.4.0-14-generic N/A
 linux-firmware 1.186
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux-5.4
StagingDrivers: exfat
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: 1.10.2-1ubuntu1
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.version: pc-i440fx-bionic
dmi.modalias: dmi:bvnSeaBIOS:bvr1.10.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-bionic:cvnQEMU:ct1:cvrpc-i440fx-bionic:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.version: pc-i440fx-bionic
dmi.sys.vendor: QEMU

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Seth Forshee (sforshee)
affects: linux-5.4 (Ubuntu) → linux (Ubuntu)
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
Revision history for this message
Seth Forshee (sforshee) wrote :

Adding kmod, since the error comes from depmod.

The file it's complaining about is relatively new (added in 5.2 timeframe iirc), and we haven't been shipping it. However as of 5.4.0-17 we are shipping it in linux-modules. I've confirmed that /lib/modules/5.4.0-17-generic/modules.builtin.bin is there after the installation, so I don't yet know why it wouldn't be there when depmod runs.

Revision history for this message
Seth Forshee (sforshee) wrote :

Sorry, I was getting that confused with another file, modules.builtin.modinfo. That was the one we just added to linux-modules.

modules.builtin.bin is generated by depmod, and if I remove the file for a given kernel and run depmod I get these messages. So this looks like something fully from depmod and not a result of anything wrong in our kernel packages.

Changed in linux (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kmod (Ubuntu):
status: New → Confirmed
Haowei Wen (yushijinhun)
Changed in kmod (Ubuntu):
status: Confirmed → New
Robert C Jennings (rcj)
tags: added: champagne
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948350#20

In particular, this seems to come to a Debian specific patch on kmod that turns that message from a DEBUG message to an ERROR message.

As there has been no responses from the patch's author, we could do a quick diligence investigation in order to drop it. Or we should just simply drop it. That way, we get rid of spurious bug reports, and can work on real bugs, in case there is any, and we should get reports for those.

Cascardo.

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :
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.