Last active
March 24, 2022 00:25
-
-
Save NLKNguyen/2fd920e2a50fd4b9701f to your computer and use it in GitHub Desktop.
Ubuntu - Install Debug Symbol Package (-dbgsym) for the current Linux kernel
This file contains 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
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 |
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
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/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
codename=$(lsb_release -c -s)