Linux kernel debug

Hi, i’m trying to install kernel debuginfo to build a volatility profile, the problem is the version of the kernel with debug symbol is

kernel-debuginfo-5.17.5-300.fc36.x86_64

but i’am running on 6.3.4-201.fc38.x86_64, there is any chance that the packet have been renamed or someone will give me a workaround

Debuginfo packages are in separate repos, see dnf repolist --all *debuginfo. You should probably make sure you don’t have any F36 repos still enabled.

Easy way

Use debuginfo-install from dnf-plugins-core:

sudo dnf debuginfo-install kernel

Manual way

Enable repo(s) for one command only:

sudo dnf --enablerepo=fedora-debuginfo,updates-debuginfo install kernel-debuginfo

Enable repo(s) permanently (probably not what you want):

sudo dnf config-manager --set-enabled fedora-debuginfo updates-debuginfo

Disable repo(s):

sudo dnf config-manager --set-disabled fedora-debuginfo updates-debuginfo
3 Likes

i ran

but i’ve got

Could not find debuginfo package for the following installed packages: kernel-6.3.4-201.fc38.x86_64
Could not find debugsource package for the following installed packages: kernel-6.3.4-201.fc38.x86_64

Could you provide the full output of the command?
Mine:

$ sudo dnf debuginfo-install kernel
enabling fedora-debuginfo repository
enabling fedora-cisco-openh264-debuginfo repository
enabling fedora-modular-debuginfo repository
enabling updates-debuginfo repository
enabling updates-modular-debuginfo repository
enabling rpmfusion-free-debuginfo repository
enabling rpmfusion-free-updates-debuginfo repository
enabling rpmfusion-nonfree-debuginfo repository
enabling rpmfusion-nonfree-updates-debuginfo repository
Last metadata expiration check: 0:01:02 ago on Thu Jun 29 11:52:26 2023.
Could not find debugsource package for the following available packages: kernel-6.3.8-200.fc38
Dependencies resolved.
=================================================================================================================================================================
 Package                                            Architecture               Version                               Repository                             Size
=================================================================================================================================================================
Installing:
 kernel-debuginfo                                   x86_64                     6.3.8-200.fc38                        updates-debuginfo                     853 M
Installing dependencies:
 kernel-debuginfo-common-x86_64                     x86_64                     6.3.8-200.fc38                        updates-debuginfo                      85 M

Transaction Summary
=================================================================================================================================================================
Install  2 Packages

Total download size: 937 M
Installed size: 4.2 G
Is this ok [y/N]: 

here it is

abilitazione del repository docker-ce-stable-debuginfo
abilitazione del repository fedora-debuginfo
abilitazione del repository fedora-cisco-openh264-debuginfo
abilitazione del repository fedora-modular-debuginfo
abilitazione del repository updates-debuginfo
abilitazione del repository updates-modular-debuginfo
abilitazione del repository rpmfusion-nonfree-nvidia-driver-debuginfo
abilitazione del repository rpmfusion-nonfree-steam-debuginfo
Docker CE Stable - Debuginfo x86_64                                                                                                                                                  355  B/s | 390  B     00:01    
Errors during downloading metadata for repository 'docker-ce-stable-debuginfo':
  - Status code: 404 for https://download.docker.com/linux/fedora/38/debug-x86_64/stable/repodata/repomd.xml (IP: 108.138.199.66)
Error: Failed to download metadata for repo 'docker-ce-stable-debuginfo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Fedora 38 - x86_64 - Debug                                                                                                                                                           1.3 MB/s |  38 MB     00:27    
Fedora 38 openh264 (From Cisco) - x86_64 - Debug                                                                                                                                     3.3 kB/s | 3.7 kB     00:01    
Fedora Modular 38 - x86_64 - Debug                                                                                                                                                   365 kB/s | 1.0 MB     00:02    
Fedora 38 - x86_64 - Updates - Debug                                                                                                                                                 1.3 MB/s |  13 MB     00:09    
Fedora Modular 38 - x86_64 - Updates - Debug                                                                                                                                         338 kB/s | 919 kB     00:02    
RPM Fusion for Fedora 38 - Nonfree - NVIDIA Driver Debug                                                                                                                             3.8 kB/s | 5.0 kB     00:01    
RPM Fusion for Fedora 38 - Nonfree - Steam Debug                                                                                                                                     463  B/s | 257  B     00:00    
Repository ignorati: docker-ce-stable-debuginfo
Could not find debuginfo package for the following installed packages: kernel-6.3.4-201.fc38.x86_64
Could not find debugsource package for the following installed packages: kernel-6.3.4-201.fc38.x86_64
Dipendenze risolte.
Nessuna operazione da compiere.
Fatto!

Oh, I missed that you were on an outdated kernel. You need to upgrade first. Current kernel in F38 is 6.3.8-200.fc38.x86_64