yum install -y kernel-devel 

 

# debuginfo,在CentOS7中需要这样装

sudo vim /etc/yum.repos.d/CentOS-Debuginfo.repo

 

修改为enable=1

sudo debuginfo-install kernel

 

安装时可能还会报错:

Invalid GPG Key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-7: No key found in given key data

需要从https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Debug-7下载key写入到/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-7

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2022-01-07
  • 2022-01-18
  • 2021-06-19
  • 2022-01-03
  • 2021-11-10
  • 2021-08-30
猜你喜欢
  • 2022-03-03
  • 2022-12-23
  • 2021-08-23
  • 2021-06-03
  • 2022-02-09
  • 2021-11-18
  • 2022-03-06
相关资源
相似解决方案