Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Sysup: Needed system RPMs were not installed: kernel-headers

Discussion in 'General Discussion' started by JedCavins, Jan 12, 2018.

  1. JedCavins

    JedCavins Member

    Joined:
    Jan 2, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    Hi,


    I ran into an issue where the client continues to receive this error every morning in his email

    [host.domain.com] An update failure has occurred.
    cPanel & WHM failed to update.
    The system failed to update to the latest version of cPanel & WHM version 11.68 because it could not install basic requirements for cPanel & WHM. The specific failure was:
    Sysup: Needed system RPMs were not installed: kernel-headers
    For more information about this error and guidance on how to resolve the error, go to RPM Installation Failures - cPanel Knowledge Base - cPanel Documentation.
    This notice is the result of a request from “cPanel”.
    The system generated this notice on 2018-01-11 at 10:00:36 UTC.
    “System Update Failures” notifications are currently configured to have an importance of “High”. You can change the importance or disable this type of notification in WHM’s Contact Manager at...
    I checked the documentation noted in the error here: RPM Installation Failures - cPanel Knowledge Base - cPanel Documentation which doesn't mention this type of error.

    This is a new cpanel server build

    Thoughts?
     
  2. JedCavins

    JedCavins Member

    Joined:
    Jan 2, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    a little more info...

    Code:
    [root@host ~]# cat /etc/redhat-release
    CentOS Linux release 7.4.1708 (Core)
    
    [root@host ~]# rpm -qa | grep -i kernel
    kernel-triggers-1.0-1.el7.noarch
    >kernel-3.10.0-693.11.1.el7.x86_64
    kernelcare-2.14-2.x86_64
    kernel-devel-3.10.0-693.11.1.el7.x86_64
    lw-kernelcare-installer-0.0.4-3.noarch
    lp-kernelupdate-1.1-2.noarch
    
    3.10.0-693.11.1.el7.x86_64
    
    [root@host ~]# yum install kernel-headers
    Loaded plugins: fastestmirror, priorities, protectbase, universal-hooks
    EA4                                                                                | 3.0 kB  00:00:00     
    cpanel-addons-production-feed                                                      | 2.9 kB  00:00:00     
    MariaDB101                                                                         | 2.9 kB  00:00:00     
    kernelcare                                                                         | 2.6 kB  00:00:00     
    stable-arch                                                                        |  951 B  00:00:00     
    stable-generic                                                                     |  951 B  00:00:00     
    stable-noarch                                                                      |  951 B  00:00:00     
    Loading mirror speeds from cached hostfile
     * EA4: 208.100.0.204
     * cpanel-addons-production-feed: 208.100.0.204
    2 packages excluded due to repository priority protections
    0 packages excluded due to repository protections
    No package kernel-headers available.
    Error: Nothing to do
    
    [root@host ~]# ls -l /boot/
    total 78680
    -rw-r--r--  1 root root   140899 Dec  4 19:04 config-3.10.0-693.11.1.el7.x86_64
    
     
  3. JedCavins

    JedCavins Member

    Joined:
    Jan 2, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    #3 JedCavins, Jan 12, 2018
    Last edited by a moderator: Jan 12, 2018
  4. wintech2003

    wintech2003 Active Member
    PartnerNOC

    Joined:
    Sep 15, 2010
    Messages:
    27
    Likes Received:
    1
    Trophy Points:
    53
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    What is the output of
    Code:
    yum repolist
    ?
     
  5. JedCavins

    JedCavins Member

    Joined:
    Jan 2, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    Hi,


    Here ya go...

    Code:
    [root@host ~]# yum repolist
    Loaded plugins: fastestmirror, priorities, protectbase, universal-hooks
    Loading mirror speeds from cached hostfile
     * EA4: 208.100.0.204
     * cpanel-addons-production-feed: 208.100.0.204
    2 packages excluded due to repository priority protections
    0 packages excluded due to repository protections
    repo id                                repo name                                              status
    EA4/7/x86_64                           EA4 ( EasyApache 4 )                                   72,784+5,093
    cpanel-addons-production-feed/7/x86_64 cPanel Addons Production Feed                                  33+2
    MariaDB101                             MariaDB101                                                       16
    kernelcare/7/x86_64                    kernelcare                                                       16
    stable-arch/x86_64                     Stable Arch Specific Packages                                   110
    stable-generic                         Stable Generic Packages                                         249
    stable-noarch                          Stable Distro Specific Non-Architecture Specific Packa          163
    repolist: 73,371
    [root@host ~]#
    
     
  6. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    It appears you are using custom base repo's, perhaps rolling/continued-release. I also noticed the 'packages excluded due to repository priority protections' warning and the kernelcare repository; which may also be an issue, but I believe the custom repo's are the main issue. You could verify if those custom repo's have the kernel-headers package as below:
    Code:
    # yum -v --disablerepo=* --enablerepo=stable* search kernel-headers
    
    You may also turn off the feature of upcp(cPanel update) updating system packages at WHM > Server Configuration > Update Preferences: "Operating System Packages" -> "Manual Updates Only". I'd recommend reaching out to your host or system administrator who configured these custom repo's from the default CentOS repo's.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. JedCavins

    JedCavins Member

    Joined:
    Jan 2, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    duly noted and will do! TY :D
     
  8. JedCavins

    JedCavins Member

    Joined:
    Jan 2, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    In running that command #yum -v --disablerepo=* --enablerepo=stable* search kernel-headers, I see the following:

    Code:
    [root@host ~]# yum -v --disablerepo=* --enablerepo=stable* search kernel-headers
    
    Loading "fastestmirror" plugin
    Loading "priorities" plugin
    Loading "protectbase" plugin
    Loading "universal-hooks" plugin
    Config time: 0.007
    Yum version: 3.4.3
    Setting up Package Sacks
    Loading mirror speeds from cached hostfile
    0 packages excluded due to repository protections
    pkgsack time: 0.006
    rpmdb time: 0.000
    tags time: 0.000
    rpmdb time: 0.000
    tags time: 0.000
    No matches found
     
  9. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    It looks like your custom repo simply doesn't have the kernel-headers package. I'd contact your host or system administrator about this repo and ask about using the default CentOS repos.

    Thanks,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. JedCavins

    JedCavins Member

    Joined:
    Jan 2, 2016
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    kicking a new server now to see what the standard repo's are and will compare...
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice