Error! Problems with depmod detected. Automatically uninstalling this module.

Bug #1368111 reported by martin suchanek
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Hi,

within upgrade from trusty to 14.04 to 14.10 , kernel installation problem:

run-parts: executing /etc/kernel/postinst.d/dkms 3.16.0-14-generic /boot/vmlinuz-3.16.0-14-generic
sed: -e expression #1, char 6: unknown command: `m'
Error! Problems with depmod detected. Automatically uninstalling this module.
DKMS: Install Failed (depmod problems). Module rolled back to built state.

lsb_release -rd
Description: Ubuntu Utopic Unicorn (development branch)
Release: 14.10

Kind Regards,
Martin

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1368111

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
martin suchanek (martin-suc) wrote : Re: run-parts: executing /etc/kernel/postinst.d/dkms 3.16.0-14-generic /boot/vmlinuz-3.16.0-14-generic

Hi,

I cannot run that command because the system where it happened is for now unbootable. But I believe that that error appears on another just upgrading instance. It is related to "vhba" driver from cdemu project ... from following error description.

Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.16.0-14-generic /boot/vmlinuz-3.16.0-14-generic
sed: -e expression #1, char 6: unknown command: `m'
Error! Bad return status for module build on kernel: 3.16.0-14-generic (x86_64)
Consult /var/lib/dkms/vhba/20130607/build/make.log for more information.
sed: -e expression #1, char 6: unknown command: `m'

"/var/lib/dkms/vhba/20130607/build/make.log"
DKMS make.log for vhba-20130607 for kernel 3.16.0-14-generic (x86_64)
Fri Sep 12 12:26:48 CEST 2014
make -C /lib/modules/3.16.0-14-generic/build M=/var/lib/dkms/vhba/20130607/build modules
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-14-generic'
  CC [M] /var/lib/dkms/vhba/20130607/build/vhba.o
/var/lib/dkms/vhba/20130607/build/vhba.c:57:0: error: "scmd_dbg" redefined [-Werror]
 #define scmd_dbg(scmd, fmt, a...) \
 ^
In file included from include/scsi/scsi_cmnd.h:10:0,
                 from /var/lib/dkms/vhba/20130607/build/vhba.c:37:
include/scsi/scsi_device.h:254:0: note: this is the location of the previous definition
 #define scmd_dbg(scmd, fmt, a...) \
 ^
cc1: all warnings being treated as errors
scripts/Makefile.build:263: recipe for target '/var/lib/dkms/vhba/20130607/build/vhba.o' failed
make[2]: *** [/var/lib/dkms/vhba/20130607/build/vhba.o] Error 1
Makefile:1345: recipe for target '_module_/var/lib/dkms/vhba/20130607/build' failed
make[1]: *** [_module_/var/lib/dkms/vhba/20130607/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-14-generic'
Makefile:24: recipe for target 'modules' failed
make: *** [modules] Error 2

 apt-cache policy cdemu-daemon
cdemu-daemon:
  Installed: 2.1.1-1ubuntu0~saucy1~ppa1
  Candidate: 2.1.1-1ubuntu0~saucy1~ppa1
  Version table:
 *** 2.1.1-1ubuntu0~saucy1~ppa1 0
        500 http://ppa.launchpad.net/cdemu/ppa/ubuntu/ saucy/main amd64 Packages
        100 /var/lib/dpkg/status

apt-cache policy cdemu-client
cdemu-client:
  Installed: 2.1.1-1ubuntu0~saucy1~ppa1
  Candidate: 2.1.1-1ubuntu0~saucy1~ppa1
  Version table:
 *** 2.1.1-1ubuntu0~saucy1~ppa1 0
        500 http://ppa.launchpad.net/cdemu/ppa/ubuntu/ saucy/main amd64 Packages
        100 /var/lib/dpkg/status

Kind Regards,
Martin

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
martin suchanek (martin-suc) wrote :

Add info. Each new kernel installatioin has the following error:

run-parts: executing /etc/kernel/postinst.d/dkms 3.16.0-21-generic /boot/vmlinuz-3.16.0-21-generic
sed: -e expression #1, char 6: unknown command: `m'
Error! Problems with depmod detected. Automatically uninstalling this module.
DKMS: Install Failed (depmod problems). Module rolled back to built state.
sed: -e expression #1, char 6: unknown command: `m'

summary: - run-parts: executing /etc/kernel/postinst.d/dkms 3.16.0-14-generic
- /boot/vmlinuz-3.16.0-14-generic
+ Error! Problems with depmod detected. Automatically uninstalling this
+ module.
Revision history for this message
Peleg (freepeleg) wrote :

I have the same error. From `/var/log/apt`:
====
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.0-37-generic /boot/vmlinuz-3.16.0-37-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.16.0-37-generic /boot/vmlinuz-3.16.0-37-generic
: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
Error! Problems with depmod detected. Automatically uninstalling this module.
DKMS: Install Failed (depmod problems). Module rolled back to built state.
Error! Problems with depmod detected. Automatically uninstalling this module.
DKMS: Install Failed (depmod problems). Module rolled back to built state.
====

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.