Ubuntu 12.04 LTS / Asterisk / Apt-get Upgrade / Exclude Packages

Home » Asterisk Users » Ubuntu 12.04 LTS / Asterisk / Apt-get Upgrade / Exclude Packages
Asterisk Users 4 Comments

Hi,

I have Asterisk 11 with DAHDI (Sangoma E1-Card) running on Ubuntu 12.04
LTS. Asterisk and DAHDI-Drivers are installed from source.

When doing an “apt-get upgrade” the system packages will be update but sometimes Asterisk is broken. Which packages do I have to exclude when I
do not have time to recompile Asterisk/Dahdi each time? libc?
Kernel-Packages?

Thanks so far!
-Thorsten-

4 thoughts on - Ubuntu 12.04 LTS / Asterisk / Apt-get Upgrade / Exclude Packages

  • Can you describe what is broken?
    The way things are set up is that you have to compile the wanpipe drivers always against the current versions of the kernel and DAHDI. You could change that with a pretty high risk of breaking things, mainly due to frequent changes in the network related parts of the kernel.

    I have never seen something break, except for kernel updates, but my systems are RedHat based. I
    doubt that the Debian based systems are much different as far as interface changes are concerned for a certain release. My guess is that you should be fine if you do not execute “apt-get dist-upgrade”.

    jg

  • DAHDI is basically a set of kernel modules, which *by design* work only with the exact kernel for which they were compiled; so avoid any upgrade to the kernel if you don’t have time to rebuild DAHDI.

    C library changes potentially could require anything to be recompiled; but in practice almost invariably don’t, precisely because of how much breakage would potentially be caused. If a C library update requires recompilation of other packages then either there has been a Flag Day (and not the sort where mean people stay indoors!) or you’re running Gentoo.

    I believe there is a way in Debian, and therefore probably Ubuntu, to have some script execute automatically following a kernel update. So you might even be able to have DAHDI self-rebuild following a kernel update.

  • I went back to do everything by hand, if necessary. Thorsten and other Wanpipe users need to synchronize DAHDI, the kernel, and the Wanpipe drivers. I don’t use Asterisk modules that depend too much on the distro or kernel version, but other setups might have more dependencies.

    Essentially you can do a kernel update only if the Wanpipe drivers are consistent with the DAHDI
    and kernel versions and DAHDI works only if the kernel doesn’t object, which happens once in a while. The wanpipe drivers rarely (=never) work with the most recent kernels, so running a production machine with the latest beta Fedora or Ubuntu, is something for extreme athletes.

    jg