First, run
Code:
apt-get purge dahdi dahdi-dkms dahdi-linux ...
(plus everything else asterisk- and dahdi-related on your system) to remove the existing stuff,
Code:
apt-get install build-essential
to install everything needed to compile, then grab a tarball from
http://www.asterisk.org/downloads. I can't seem to find a copy of the compilation/installation instructions on asterisk.org, but there will probably be a README file in the archive that will get you started.
I have a feeling the sane people use CentOS
