大网数据广告活动
服务器运维问答

centos 8: debuginfo-install can't find kernel-debuginfo package

· 52CE 我爱测

I have a machine with CentOS-8 installed, kernel shipped with it is 4.18.0. I need to install debiginfo package: % sudo dnf debuginfo-install kernel-4.18.0-193.19.1.el8_2.x86_64 enabling epel-modular-debuginfo repository enabling…

问题原文

原帖链接 · Mark · CC BY-SA 4.0

I have a machine with CentOS-8 installed, kernel shipped with it is 4.18.0. I need to install debiginfo package:

% sudo dnf debuginfo-install kernel-4.18.0-193.19.1.el8_2.x86_64
enabling epel-modular-debuginfo repository
enabling epel-debuginfo repository
Last metadata expiration check: 0:22:04 ago on Thu 03 Dec 2020 04:51:14 PM EST.
Could not find debuginfo package for the following installed packages: kernel-4.18.0-193.19.1.el8_2.x86_64
Could not find debugsource package for the following installed packages: kernel-4.18.0-193.19.1.el8_2.x86_64
Dependencies resolved.
Nothing to do.
Complete!
%

Although yum search finds it:

% yum search kernel-debug
...
kernel-debug.x86_64 : kernel meta-package for the debug kernel
...
%

I thought debuginfo-install is the right way to install packages with debuginfo. What should I do to get it to work for me?

Thanks.

已采纳解答

原帖链接 · irritable_phd_syndrome · CC BY-SA 4.0

There are two ways of doing this. On CentOS 8,

  1. You can modify /etc/yum.repos.d/CentOS-Debuginfo.repo to set enable=1 and then run yum install kernel-debuginfo or
  2. You can do yum --enablerepo="base-debuginfo" install kernel-debuginfo

Either of these worked on my system. Be sure you have plenty of space on your disk. The installed size is 3.1GB.

NOTE :

  1. You'll want to inspect the kernel version used in kernel-debuginfo (i.e. yum info kernel-debuginfo) to ensure that it is the same version as your kernel (i.e. uname -r).
  2. If they differ, you may need to go hunting for the correct versions of kernel-debuginfo and kernel-debuginfo-common-x86_64. I used the baseurl in /etc/yum.repos.d/CentOS-Debuginfo.repo as a template to find where to look. For CentOS 8.1 look here.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-12-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。