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]: