Symptoms
Unable to install mod_perl
, SpamAssassin or other Plesk component. The following errors are returned:
Traceback (most recent call last):
File "/usr/local/psa/bin/yum_install", line 239, in <module>
main()
File "/usr/local/psa/bin/yum_install", line 225, in main
raise Exception("Failed to solve dependencies:n" + 'n'.join(msgs))
Exception: Failed to solve dependencies:
glibc-headers-2.17-157.el7_3.5.x86_64 requires kernel-headers >= 2.2.1
glibc-headers-2.17-157.el7_3.5.x86_64 requires kernel-headers
Error: The Yum utility failed to install the required packages.
Cause
kernel-headers
package is missing or version is lower than 2.2.1.
Resolution
-
Connect to the server via SSH.
-
Check kernel version:
# uname -r
-
Check if matching kernel headers are already installed on your system:
# ls -la /usr/src/kernels/
-
If no matching kernel headers are found in that directory, install kernel headers with yum command as follows:
# yum install kernel-devel
-
Add required Plesk component again.