Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Does Ubuntu provide kernel package with debug symbols? The default one(-generic) doesn't seem to have it.

I'm trying to avoid compile a kernel with debug info manually.

share|improve this question
add comment

1 Answer 1

up vote 7 down vote accepted

First create a ddebs.list using:

echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" |
sudo tee -a /etc/apt/sources.list.d/ddebs.list

then run:

sudo apt-get update

and then install using:

sudo apt-get install linux-image-`uname -r`-dbgsym

This is rather huge (>680MB), so prepare for a wait while you download it.

I use this for tools like systemtap on the kernel.

share|improve this answer
apt-cache search dbgsym returns pkg-create-dbgsym only, was it in some other repository? –  warl0ck Oct 6 '12 at 9:40
@warl0ck Yes, the -dbgsym packages are in special repositories that you must enable, to install them. This explains how. –  Eliah Kagan Oct 6 '12 at 10:15
I've now updated the post to clarify how to do that. –  Colin Ian King Oct 6 '12 at 19:22
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.