package dahdi 1:2.2.0-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #429510 reported by Niklas Andersson
76
This bug affects 14 people
Affects Status Importance Assigned to Milestone
dahdi-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Did apt-get install asterisk because I wanted to try out the new Skype-tools. Didn't work due to dependent package dahdi. Seems the DKMS-kernel drivers didn't want to compile or something. I'm running 2.6.28-14 because the new 2.6.31-4 screw up my Intel-graphics.

ProblemType: Package
Architecture: i386
Date: Mon Sep 14 18:56:34 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 1
Package: dahdi 1:2.2.0-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.28-14.46-generic
SourcePackage: dahdi-tools
Title: package dahdi 1:2.2.0-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Uname: Linux 2.6.28-14-generic i686

Revision history for this message
Niklas Andersson (niklas-andersson) wrote :
Revision history for this message
Holger Mauermann (mauermann) wrote :

Same here. The error message was
...
Setting up dahdi-dkms (1:2.2.0.2~dfsg-1ubuntu2) ...
Loading new dahdi-2.2.0.2 DKMS files...
First Installation: checking all kernels...
Building for architecture x86_64
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
...

dahdi-dkms depends on linux-headers-generic. But I'm running a -virtual kernel. After installing linux-headers-virtual the dahdi module was compiled and installed without errors.

triden (triden)
Changed in dahdi-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
triden (triden) wrote :

Same here. My error message was

[..snip..]
Setting up dahdi-dkms (1:2.2.0.2~dfsg-1ubuntu2) ...
Loading new dahdi-2.2.0.2 DKMS files...
First Installation: checking all kernels...
Building for architecture i686
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

Setting up dahdi-linux (1:2.2.0.2~dfsg-1ubuntu2) ...

Setting up dahdi (1:2.2.0-1ubuntu1) ...
Loading DAHDI hardware modules:
FATAL: Module dahdi not found.
   dahdi: error dahdi_dummy: error dahdi_transcode: error

I'm running the generic-pae kernel. After installing the linux-headers-generic-pae package I was able to go back and complete installation of asterisk (which requires dahdi)

dahdi needs to be updated to require the linux-headers for whichever type of kernel you have installed (-generic, -generic-pae, -virtual)

Revision history for this message
Stephen van Egmond (svanegmond) wrote :

I'm experiencing the same problem on 2.6.31-14-server.

I've installed linux-headers-2.6.31-14-server and yet dahdi will not install.

Ah, there we go. If you install linux-headers, you must purge dahdi-dkms in order for the installation to succeed.

Revision history for this message
paladin (nasenbaer80) wrote :

the same Problem but a other architekture

Loading new dahdi-2.2.0.2 DKMS files...
First Installation: checking all kernels...
Building for architecture x86_64
Building initial module for 2.6.31-9-rt

Revision history for this message
Alberto Vargas (avargasn) wrote :

I was facing the same problem. By looking at /var/lib/dkms/dahdi/2.2.0.2/build/make.log, I could see the installation error it was caused by wget lack.

After installing it everything run fine.

Revision history for this message
Paul Belanger (pabelanger) wrote :

Same issue here, running a Ubuntu in KVM.

Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

Revision history for this message
KingOfDos (t-launchpad-dot-net-kingofdos-com) wrote :

I'd tested everthing that whas already posted here, but it still had to fail somehow.

user@server:/home/user# sudo tail -n 10 /var/log/dkms_autoinstaller

dahdi (2.2.0.2): Installing module.
  Kernel headers for 2.6.31-14-generic-pae are not installed. Cannot install this module.
  Try installing linux-headers-2.6.31-14-generic-pae or equivalent.

user@server:/home/user# sudo apt-get install linux-headers-2.6.31-14-generic-pae

After that, apt-get update, apt-get upgrade, and it's fixed in this case.

Revision history for this message
agent 8131 (agent-8131) wrote :

I came across this bug tonight:

Setting up dahdi (1:2.2.0-1ubuntu1) ...
Loading DAHDI hardware modules:
FATAL: Module dahdi not found.
   dahdi: error dahdi_dummy: error dahdi_transcode: error
Error: missing /dev/dahdi!
invoke-rc.d: initscript dahdi, action "start" failed.

After installing linux-headers-2.6.31-19-server:

Setting up linux-headers-2.6.31-19-server (2.6.31-19.56) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms
 * Running DKMS auto installation service for kernel 2.6.31-19-server
 * dahdi (2.2.0.2)... dahdi (2.2.0.2): Installing module.
............................(bad exit status: 7)
  Build failed. Installation skipped.

I then installed wget and ran /etc/kernel/header_postinst.d/dkms

/etc/kernel/header_postinst.d/dkms
 * Running DKMS auto installation service for kernel 2.6.31-19-server * dahdi (2.2.0.2)...

This is 9.10 amd64. Looks like headers and wget dependencies would be good.

Revision history for this message
Andreas Fritiofson (andreas-fritiofson) wrote :

Just a thought... Is DAHDI really required for asterisk? I was about to install asterisk in a linux container, but since it depends on dahdi it had to pull in all sorts of linux kernel packages which are nonsensical and probably would fail inside a container.

If it's not required, maybe dahdi should be be moved from depends to recommends in asterisk? That would likely solve the reporter's problem.

Revision history for this message
Mark - Syminet (mark-syminet) wrote :

Same here. Installing dahdi-linux by hand first worked for me:

apt-get install dahdi-linux

...then install asterisk and it was ok so seems to be something in the order in
which it's installing packages.

It's a different bug, no time to check but also had the following happen:

root@7r6s1:/var/log/asterisk# invoke-rc.d asterisk restart
Stopping Asterisk PBX: asterisk.
Asterisk PBX is already running. Use restart.
root@7r6s1:/var/log/asterisk#

...issuing the command again brought it up OK maybe it needs a sleep(1)
or something.

Revision history for this message
tgilber1 (tgilber1) wrote :

To fix the missing dahdi module issue, correctly, you will need to install the linux headers for the kernel version installed:

1. uname -r ##to find out the kernel version (e.g., 2.6.31-20-server)
2. sudo apt-get install linux-headers-2.6.31-20-server
3. If you already have the dahdi and asterisk installed, then apt-get should also automatically finish the previous install.

The last comment with the order of installation only gets rid of the error message when installing other programs that have dependencies on the dahdi module. Hope this explanation helps you out!

Revision history for this message
Cliff Stanford (cliff-may) wrote :

Just come across this myself. dahdi has a dependency on gawk but it's not in the deps list.

# apt-get install gawk
# hash -r
# apt-get install dahdi-linux

worked for me.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dahdi-tools - 1:2.2.1-0ubuntu2

---------------
dahdi-tools (1:2.2.1-0ubuntu2) lucid; urgency=low

  * Bug Fix: If linux-headers are not installed, don't block, and print
     information for the user. (LP: #429510, LP: #474350)
     - added debian/dahdi.postinst
     - added --error-handler=init_failed to debian/rules
 -- Jean-Michel Dault <email address hidden> Tue, 13 Apr 2010 16:56:27 -0400

Changed in dahdi-tools (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.