Forum Discussion
Chunlin_Y_Intel
New Contributor
5 years agoThanks Jonway.
I tried the mitigate method you highlighted, it does not solve my issue, I even manually install the rpm drive, no luck.
As I have done so many methods, now I want to restore my kernel header to below, but it fails.
'rpm -qa | grep kernel-header' to show:
3.10.0-1062.el7.x86_64
the current environment:
[root@localhost ~]# uname -r
3.10.0-1160.6.1.el7.x86_64
root@localhost ~]# ls -l /usr/src/kernels/
total 12
drwxr-xr-x. 22 root root 4096 Jul 10 06:12 3.10.0-1062.12.1.rt56.1042.el7.x86_64
drwxr-xr-x. 22 root root 4096 Nov 20 15:06 3.10.0-1062.el7.x86_64
drwxr-xr-x 22 root root 4096 Nov 20 15:06 3.10.0-693.2.2.rt56.623.el7.x86_64
Because I have done below: yum remove kernel-headers.x86_64, which removed the header '3.10.0-1062.el7.x86_64'.
Although I have used 'yum history undo ' to try to restore it, it does not restore.
I have referred to many many online posts with below method, without get a luck:
yum install kernel-devel-3.10.0-1062.el7.x86_64
yum install kernel-devel-$(uname -r)
yum update
sudo yum install "kernel-devel-uname-r == $(uname -r)"
etc
yum history undo
Could you pls help?
I tried the mitigate method you highlighted, it does not solve my issue, I even manually install the rpm drive, no luck.
As I have done so many methods, now I want to restore my kernel header to below, but it fails.
'rpm -qa | grep kernel-header' to show:
3.10.0-1062.el7.x86_64
the current environment:
[root@localhost ~]# uname -r
3.10.0-1160.6.1.el7.x86_64
root@localhost ~]# ls -l /usr/src/kernels/
total 12
drwxr-xr-x. 22 root root 4096 Jul 10 06:12 3.10.0-1062.12.1.rt56.1042.el7.x86_64
drwxr-xr-x. 22 root root 4096 Nov 20 15:06 3.10.0-1062.el7.x86_64
drwxr-xr-x 22 root root 4096 Nov 20 15:06 3.10.0-693.2.2.rt56.623.el7.x86_64
Because I have done below: yum remove kernel-headers.x86_64, which removed the header '3.10.0-1062.el7.x86_64'.
Although I have used 'yum history undo ' to try to restore it, it does not restore.
I have referred to many many online posts with below method, without get a luck:
yum install kernel-devel-3.10.0-1062.el7.x86_64
yum install kernel-devel-$(uname -r)
yum update
sudo yum install "kernel-devel-uname-r == $(uname -r)"
etc
yum history undo
Could you pls help?
JonWay_altera
Frequent Contributor
5 years agoI am not familiar with the kernel. Online forums will the my source of information. Perhaps you can check if kernel.org has the exact kernel version to match.