October 19, 2026 - 17:07
cPanel Sysup unzip Dependency Error Image
cPanel Problems

cPanel Sysup unzip Dependency Error

0 Comments

Hello again. I’ve encountered this issue before and usually fixed it by removing the rpm package. But this time, I solved it by installing it instead of removing it. On a server with cPanel installed, I ran 'yum update', and it stopped with the following error:

--> Finished Dependency Resolution
Error: Package: git-1.7.1-9.el6_9.x86_64 (@base)
Requires: perl-Git = 1.7.1-9.el6_9
Error: Package: git-1.7.1-9.el6_9.x86_64 (@base)
Requires: perl(Git)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

This message basically means that the unzip package is required but couldn’t be installed.

So I thought, if cPanel can't install it, I’ll install it myself.

yum install unzip

But during installation, I received this error:

GENEL
Running Transaction  
Installing : unzip-6.0-5.el6.x86_64 1/1  
Error unpacking rpm package unzip-6.0-5.el6.x86_64  
error: unpacking of archive failed on file /usr/bin/unzip: cpio: rename  
Verifying : unzip-6.0-5.el6.x86_64 1/1  
  
Failed:  
unzip.x86_64 0:6.0-5.el6  
  
Complete!

No need to panic. It simply says that it couldn’t unpack the file. I ran a quick check to see if the unzip file exists and what its attributes are:

lsattr /usr/bin/unzip

And the result was:

----i--------e- /usr/bin/unzip

This means: "I’m read-only" (I figured that from the ----i-- flag, which means the file is immutable).

So I used one of my favorite and very handy commands — chattr — to fix it. Here’s how:

chattr -i /usr/bin/unzip

And then:

yum install unzip

The result?

GENEL
===================================================================================================================================================================  
Package             Arch     Version          Repository           Size  
===================================================================================================================================================================  
Installing:  
unzip               x86_64   6.0-5.el6        base                 152 k  
  
Transaction Summary  
===================================================================================================================================================================  
Install  1 Package(s)  
  
Total download size: 152 k  
Installed size: 324 k  
Is this ok [y/N]: y  
Downloading Packages:  
unzip-6.0-5.el6.x86_64.rpm | 152 kB  00:00  
Running rpm_check_debug  
Running Transaction Test  
Transaction Test Succeeded  
Running Transaction  
Installing : unzip-6.0-5.el6.x86_64 1/1  
Verifying  : unzip-6.0-5.el6.x86_64 1/1  
  
Installed:  
  unzip.x86_64 0:6.0-5.el6  
  
Complete!

Perfect hit — and problem solved. Goodbye!

Related Articles

Comments (0)

No comments yet. Be the first to comment!

Leave a Comment