Skip to content

Instantly share code, notes, and snippets.

@NLKNguyen
Last active March 24, 2022 00:25
Show Gist options
  • Save NLKNguyen/2fd920e2a50fd4b9701f to your computer and use it in GitHub Desktop.
Save NLKNguyen/2fd920e2a50fd4b9701f to your computer and use it in GitHub Desktop.
Ubuntu - Install Debug Symbol Package (-dbgsym) for the current Linux kernel
codename=$(lsb_release -c | awk '{print $2}')
sudo tee /etc/apt/sources.list.d/ddebs.list << EOF
deb http://ddebs.ubuntu.com/ ${codename} main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-security main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-proposed main restricted universe multiverse
EOF
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01
sudo apt-get update
sudo apt-get install linux-image-$(uname -r)-dbgsym
@chadmiller
Copy link

codename=$(lsb_release -c -s)

@lampmanyao
Copy link

It doesn't work on Ubuntu 12.04.

uname -a
Linux ubuntu-12 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

@Dutchglory
Copy link

ddebs.ubuntu.com/ ...... -updates doesn't exits no more, only " $(lsb_release -cs) " (without quotes) witch is your current version
and " $(lsb_release -cs) " -proposed
see list here: http://ddebs.ubuntu.com/dists/

script: https://paste.ubuntu.com/26298860/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment