Git failure error while updating cPanel or yum update?

Error details

---> Package kernel.x86_64 0:2.6.32-642.el6 will be erased
--> Finished Dependency Resolution
Error: Package: perl-Git-1.7.1-4.el6_7.1.noarch (@base)
Requires: git = 1.7.1-4.el6_7.1
Removing: git-1.7.1-4.el6_7.1.x86_64 (@base)
git = 1.7.1-4.el6_7.1
Updated By: git-1.7.1-8.el6.x86_64 (base)
git = 1.7.1-8.el6
Error: Package: git-1.7.1-8.el6.x86_64 (base)
Requires: perl-Git = 1.7.1-8.el6
Installed: perl-Git-1.7.1-4.el6_7.1.noarch (@base)
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

-- error(29875) --
yum exited 256
-- /error(29875) --

System update process has finished.

This is because of cPanel configures yum to exclude perl updates to protect it’s own packages. We can fix it by running yum manually.

Solution

You can update the Git package and its dependencies using Yum command through shell. The command to run is pasted below:

yum install git --disableexcludes=main --skip-broken

Run Update now

yum update 

Then run upcp manually.

/scripts/upcp 

Or

/scripts/upcp --force
 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Run OPTIMIZE TABLE to defragment tables for better performance

For this suggestion:Run OPTIMIZE TABLE to defragment tables for better performanceRun this...

How to clear Error Log of a cPanel Account.

User the below code to clear Error Log:Replace User with Username:Code:for i in `find...

What is php.ini ?

The php.ini file and changing PHP Settings The php.ini file is a special file for PHP and...

How to fix ini_set() has been disabled for security reasons

1. Create php.ini file inside your public_html folder, OR the folder in which you have...

How to fix Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone:

1: Create .htaccess file inside your public_html folder, OR the folder in which you have...