# Linux kernel debug

**URL:** <https://discussion.fedoraproject.org/t/linux-kernel-debug/84998>\
**Category:** Ask Fedora\
**Tags:** f38, kernel, packages\
**Created:** [June 29, 2023, 7:44am UTC](https://discussion.fedoraproject.org/t/linux-kernel-debug/84998 "2023-06-29T07:44:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xatom32](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/xatom32/32/29457_2.png) [@xatom32](https://discussion.fedoraproject.org/u/xatom32)\
**Post date:** [June 29, 2023, 7:44am UTC](https://discussion.fedoraproject.org/t/linux-kernel-debug/84998/1 "2023-06-29T07:44:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jn64](https://avatars.discourse-cdn.com/v4/letter/j/eb7434/32.png) [@jn64](https://discussion.fedoraproject.org/u/jn64)\
**Post date:** [June 29, 2023, 8:00am UTC](https://discussion.fedoraproject.org/t/linux-kernel-debug/84998/2 "2023-06-29T08:00:46Z")

</div>

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:

```nohighlight
sudo dnf debuginfo-install kernel

```

## Manual way

Enable repo(s) for one command only:

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

```

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

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

```

Disable repo(s):

```nohighlight
sudo dnf config-manager --set-disabled fedora-debuginfo updates-debuginfo

```

---

<div class="post-metadata">

**Author:** ![xatom32](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/xatom32/32/29457_2.png) [@xatom32](https://discussion.fedoraproject.org/u/xatom32)\
**Post date:** [June 29, 2023, 9:21am UTC](https://discussion.fedoraproject.org/t/linux-kernel-debug/84998/3 "2023-06-29T09:21:55Z")

</div>

i ran

> [@jn64](#):
>
> ```auto
> sudo dnf debuginfo-install kernel
> 
> ```

but i’ve got

```auto
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

```

---

<div class="post-metadata">

**Author:** ![alciregi](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/alciregi/32/5506_2.png) [@alciregi](https://discussion.fedoraproject.org/u/alciregi)\
**Post date:** [June 29, 2023, 9:53am UTC](https://discussion.fedoraproject.org/t/linux-kernel-debug/84998/4 "2023-06-29T09:53:47Z")

</div>

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

```plaintext
$ 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]: 

```

---

<div class="post-metadata">

**Author:** ![xatom32](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/xatom32/32/29457_2.png) [@xatom32](https://discussion.fedoraproject.org/u/xatom32)\
**Post date:** [June 29, 2023, 10:05am UTC](https://discussion.fedoraproject.org/t/linux-kernel-debug/84998/5 "2023-06-29T10:05:22Z")

</div>

here it is

```auto
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!

```

---

<div class="post-metadata">

**Author:** ![jn64](https://avatars.discourse-cdn.com/v4/letter/j/eb7434/32.png) [@jn64](https://discussion.fedoraproject.org/u/jn64)\
**Post date:** [June 29, 2023, 11:35am UTC](https://discussion.fedoraproject.org/t/linux-kernel-debug/84998/6 "2023-06-29T11:35:24Z")

</div>

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
