Please help me how to get the dbgsym package of 5.15.0-46-generic #49~20.04.1-Ubuntu

Asked by Deng

I met a kdump and need the linux-image-dbgsym packge to use crash tool, but cant find the dbgsym package from apt.
Here are the info of my PC:

dhs@dhs:~$ uname -a
Linux dhs 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

dhs@dhs:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal

dhs@dhs:~$ apt-cache search linux-image | grep 5.15.0-46
linux-image-5.15.0-46-generic - Signed kernel image generic
linux-image-5.15.0-46-lowlatency - Signed kernel image lowlatency
linux-image-unsigned-5.15.0-46-generic - Linux kernel image for version 5.15.0 on 64 bit x86 SMP
linux-image-unsigned-5.15.0-46-lowlatency - Linux kernel image for version 5.15.0 on 64 bit x86 SMP

dhs@dhs:~$ cat /etc/apt/sources.list.d/ddebs.list
deb http://ddebs.ubuntu.com focal main restricted universe multiverse
deb http://ddebs.ubuntu.com focal-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com focal-proposed main restricted universe multiverse

cat /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu focal main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu focal-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu focal universe
deb-src http://cn.archive.ubuntu.com/ubuntu focal universe
deb http://cn.archive.ubuntu.com/ubuntu focal-updates universe
deb-src http://cn.archive.ubuntu.com/ubuntu focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu focal multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu focal multiverse
deb http://cn.archive.ubuntu.com/ubuntu focal-updates multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

deb http://cn.archive.ubuntu.com/ubuntu focal-security main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu focal-security main restricted
deb http://cn.archive.ubuntu.com/ubuntu focal-security universe
deb-src http://cn.archive.ubuntu.com/ubuntu focal-security universe
deb http://cn.archive.ubuntu.com/ubuntu focal-security multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu focal-security multiverse

Question information

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

The kernel version 5.15.0-46-generic #49~20.04.1-Ubuntu SMP is outdated (from August last year).
Why don't you upgrade to the current version (5.15.0-75.82~20.04.1)?

There is a version of a ddeb file available on https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+build/24171008

Revision history for this message
Deng (aric123) said :
#2

Hello Manfred,
the kernel 5.15.0-46-generic #49~20.04.1-Ubuntu SMP runs on a server which seldom reboot,
can the linux-hwe-5.15 5.15.0-43.46~20.04.1 dbgsym be used for crash debug though have slightly difference ?

diff:
< linux-image-5.15.0-46-generic
---
> linux-hwe-5.15 5.15.0-43.46~20.04.1

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What's wrong with the package that I mentioned in my previous comment?

I am quite sure that linux-hwe-5.15 5.15.0-43.46~20.04.1 dbgsym does __not__ fit to the 5.15.0-46-generic (5.15.0-46.49) kernel.
5.15.0-43 is different from 5.15.0-46

Eventually you have a chance with the "more similar numbers"
http://launchpadlibrarian.net/617335293/linux-image-5.15.0-46-generic-dbgsym_5.15.0-46.49_amd64.ddeb
and/or
http://launchpadlibrarian.net/616553320/linux-image-unsigned-5.15.0-46-generic-dbgsym_5.15.0-46.49_amd64.ddeb
but I doubt even that.

Revision history for this message
Deng (aric123) said :
#4

Hello Manfred,
Does that mean I cant get the exactly version dbgsym of 5.15.0-46-generic #49~20.04.1-Ubuntu SMP ?
How can I get the exactly version kernel source code so that I can build the dbysym by my own?
Thanks a lot.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

I thought that the ddeb file that I already linked in my first comment is the dbgsym package for the kernel that you are running.

What is the output of the command
dpkg -l | grep ' linux-i'

If you follow back the traces of your kernel package through the launchpad pages:
https://launchpad.net/ubuntu/+source/linux-hwe-5.15
then clock on "View full publishing history" in the top right corner
scroll down to 5.15.0-465.15.0-43.46~20.04.1 and click on it
https://launchpad.net/ubuntu/+source/linux-hwe-5.15/5.15.0-43.46~20.04.1

The three files named linux-hwe-5.15_5.15.0* below the heading "Downloads" are the original files that were used to build the packages that can be found when you click on "amd64" below the heading "Builds" which leads to
https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+build/24171008

That's all I can offer.

Revision history for this message
Deng (aric123) said :
#6

Hello Manfred,

I thought that the ddeb file that I already linked in my first comment is the dbgsym package for the kernel that you are running.
=> I only found the linux-image-unsigned-5.15.0-43-generic-dbgsym_5.15.0-43.46~20.04.1_amd64.ddeb (1.3 GiB) file, but my running kernel version is 5.15.0-46-generic #49~20.04.1-Ubuntu, as you said above: 5.15.0-43 is different from 5.15.0-46.

dpkg -l | grep ' linux-i'
ii linux-image-5.15.0-46-generic 5.15.0-46.49~20.04.1 amd64 Signed kernel image generic
ii linux-image-5.4.0-152-generic 5.4.0-152.169 amd64 Signed kernel image generic
ii linux-image-5.4.0-152-generic-dbgsym 5.4.0-152.169 amd64 Signed kernel image generic
ii linux-image-generic 5.4.0.152.149 amd64 Generic Linux kernel image
ii linux-image-unsigned-5.4.0-152-generic-dbgsym 5.4.0-152.169 amd64 Linux kernel debug image for version 5.4.0 on 64 bit x86 SMP

Thanks so much for the detailed guides !

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#7
Revision history for this message
Deng (aric123) said :
#8

Hello Manfred,

Thanks so much for the help, the links are very helpful !

Revision history for this message
Deng (aric123) said :
#9

Thanks Manfred Hampl, that solved my question.