linux-image-5.0.0-31-generic-dbgsym( amd64 )failed to install

Asked by ShiYang

I am about to learn systemTap. For that, a dbgsym is required.
I found the "Binary package “linux-image-5.0.0-31-generic-dbgsym” in ubuntu bionic" at launchpad.net, but its size is only 5.2KiB, which is absolutely weird. But still, I downloaded the file called "linux-image-5.0.0-31-generic-dbgsym_5.0.0-31.33_18.04.1_amd64.ddeb", and tryed running it. And it failed as expected.
Where can I find a workable dbgsym for linux-image-5.0.0-31-generic-dbgsym( amd64 ) ? Or, is there an alternative dbgsym for the systemTap to function without changing OS?

p.s. info from command "uname -a":
Linux gLenovo-laptop 5.0.0-31-generic #33~18.04.1-Ubuntu SMP Tue Oct 1 10:20:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

see https://wiki.ubuntu.com/Debug%20Symbol%20Packages

The size of the linux-image-5.0.0-31-generic-dbgsym package is correct, but it requires installing another package, namely
linux-image-unsigned-5.0.0-31-generic-dbgsym_5.0.0-31.33~18.04.1_amd64.ddeb

Execute the command
sudo apt install linux-image-5.0.0-31-generic-dbgsym

after defining the ddebs server as repository for your package management system (see the link above).
This should care for installation of the needed packages.

Revision history for this message
ShiYang (gyhanis) said :
#2

Thanks Manfred Hampl, that solved my question.