[Solved] How to fix Git failure error while updating cPanel?

Git failure error

Yeah, by default, all cPanel server has a cron to update cPanel daily. You can setup this by editing the configuration file “/etc/cpupdate.conf.”

This can also configure from the WHM panel as root.

Go to WHM >> Home >> Server Configuration >> Update Preferences.

Here I am going to explain a fix for Git failure while updating cPanel.

You have to update that package manually and then run the cPanel update script.

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

Then run upcp manually.

/scripts/upcp 

Or

/scripts/upcp --force

That’s it, dude!!
Let me know if you need any assistance.

Read more….

Install Cpanel on centos – step by step procedure
How to check cpanel license details?

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

11 thoughts on “[Solved] How to fix Git failure error while updating cPanel?

  1. Thanks Arunlal! I’ve been running into this error for over a year now every time I run a yum update and until now never found a decent solution. Really appreciate the article!

  2. Same! I have been search for months now for a proper fix to this broken dependencies and this was it! Good job, thank you very much.

Leave a Reply

Your email address will not be published. Required fields are marked *