Forked from cantremember/install-debug-symbols.sh
Last active
January 12, 2026 15:29
-
-
Save kzall0c/72325e2c86f48336f70238a3eca9ae4a to your computer and use it in GitHub Desktop.
Installing debug symbols for the Linux Kernel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # https://askubuntu.com/questions/197016/how-to-install-a-package-that-contains-ubuntu-kernel-debug-symbols | |
| # https://wiki.ubuntu.com/DebuggingProgramCrash#Debug_Symbol_Packages | |
| echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list | |
| echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list | |
| echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list | |
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01 | |
| sudo apt-get update | |
| # "This is rather huge (>680MB), so prepare for a wait" | |
| sudo apt-get install -y linux-image-`uname -r`-dbg | |
| dpkg -L linux-image-`uname -r`-dbg | grep vmlinux | |
| # "automatically build debug symbol ddeb packages" | |
| # for any subsequent Kernel builds / installs | |
| sudo apt-get install -y pkg-create-dbgsym | |
| sudo apt-get install gdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment