Skip to main content

Updates failing

Comments

16 comments

  • 24x7server
    Can't locate Cpanel/RpmUtils.pm in @INC (you may need to install the Cpanel::RpmUtils module) (@INC contains: /usr/local/cpanel

    Try installing a module that is missing Try executing the command "cpanel install Cpanel::RpmUtils" and see if that helps..
    0
  • rpvw
    Before you resort to installing individual modules yourself, run /usr/local/cpanel/scripts/upcp --force
    This should force a re-install of all the cPanel/WHM files and dependencies, and you might find that it will sort itself out.
    0
  • J-Mac
    Before you resort to installing individual modules yourself, run /usr/local/cpanel/scripts/upcp --force
    This should force a re-install of all the cPanel/WHM files and dependencies, and you might find that it will sort itself out.

    Thanks, but I have tried to force the update before my original post which is where I am now. I will attempt to install the missing module and see if that works.
    0
  • J-Mac
    Try installing a module that is missing Try executing the command "cpanel install Cpanel::RpmUtils" and see if that helps..

    Thanks 24x7server, but that is not a command. Can you advise that actual command to do this? Thanks.
    0
  • cPanelMichael
    Hello, Can you verify if you've excluded any files from cPanel updates? You can check with a command like this: cat /etc/cpanelsync.exclude
    Thank you.
    0
  • J-Mac
    Hello, Can you verify if you've excluded any files from cPanel updates? You can check with a command like this: cat /etc/cpanelsync.exclude
    Thank you.

    Thanks, this is the reply I receive; /scripts/hackcheck /usr/local/cpanel/scripts/hackcheck /scripts/hackcheck Please advise
    0
  • cPanelMichael
    Thanks, this is the reply I receive; /scripts/hackcheck /usr/local/cpanel/scripts/hackcheck /scripts/hackcheck

    Hello, The existence of those lines in /etc/cpanelsync.exclude prevents updates to those files during the cPanel update process. This is what's leading to the error message you provided. Is there a particular reason you excluded those scripts from cPanel updates? Removing those entries should solve the issue. Thank you.
    0
  • J-Mac
    Hello, The existence of those lines in /etc/cpanelsync.exclude prevents updates to those files during the cPanel update process. This is what's leading to the error message you provided. Is there a particular reason you excluded those scripts from cPanel updates? Removing those entries should solve the issue. Thank you.

    No, there is no reason I know of. I had a company dealing with server management some time agao and they may have excluded that, but not sure why. How do I remove that from the exclude?
    0
  • cPanelMichael
    Hello, You can edit the file with a command like this: vi /etc/cpanelsync.exclude
    Or; nano /etc/cpanelsync.exclude
    Delete the lines and then save the changes. Thank you.
    0
  • J-Mac
    Hello, You can edit the file with a command like this: vi /etc/cpanelsync.exclude
    Or; nano /etc/cpanelsync.exclude
    Delete the lines and then save the changes. Thank you.

    Thanks, I have done that and am now trying to force the update. Will advise.
    0
  • J-Mac
    Okay have forced the update and now when I try yum -yum update as per the security advisor I get the following: Error: Package: perl-Git-1.7.1-4.el6_7.1.noarch (@updates) Requires: git = 1.7.1-4.el6_7.1 Removing: git-1.7.1-4.el6_7.1.x86_64 (@updates) git = 1.7.1-4.el6_7.1 Updated By: git-1.7.1-9.el6_9.x86_64 (updates) git = 1.7.1-9.el6_9 Available: git-1.7.1-8.el6.x86_64 (base) git = 1.7.1-8.el6 Error: Package: git-1.7.1-9.el6_9.x86_64 (updates) Requires: perl-Git = 1.7.1-9.el6_9 Installed: perl-Git-1.7.1-4.el6_7.1.noarch (@updates) perl-Git = 1.7.1-4.el6_7.1 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest I did try rpm -Va --nofiles --nodigest but no change. What do I need to do?
    0
  • cPanelMichael
    Hello, Check to see if there's a "perl*" entry on the "exclude=" line in the /etc/yum.conf file. If so, remove the "perl*" entry on that line, save the file, and then try updating again to see if the issue persists. Thank you.
    0
  • J-Mac
    Hello, Check to see if there's a "perl*" entry on the "exclude=" line in the /etc/yum.conf file. If so, remove the "perl*" entry on that line, save the file, and then try updating again to see if the issue persists. Thank you.

    Okay I don't understand, but I am getting a permission denied error. Please advise.
    0
  • cPanelMichael
    Hello, You will need to open the /etc/yum.conf file via SSH as root with a text editor such as "vi". EX: vi /etc/yum.conf
    Look to see if there's an entry for "perl*" on the line that starts with "exclude=", and if so, remove the "perl*" entry and save the file. Here's a third-party guide on how to use VI: How to Use the vi Editor Thank you.
    0
  • J-Mac
    Hello, You will need to open the /etc/yum.conf file via SSH as root with a text editor such as "vi". EX: vi /etc/yum.conf
    Look to see if there's an entry for "perl*" on the line that starts with "exclude=", and if so, remove the "perl*" entry and save the file. Here's a third-party guide on how to use VI:
    0
  • J-Mac
    That fixed it! Thanks for everyone's help.
    0

Please sign in to leave a comment.