TnExperts

Registered
Apr 11, 2013
2
0
1
cPanel Access Level
Root Administrator
Hello,

WHM/cPanel version : 11.36.0 (build 21)

I'm receiving this email from cPanel :

Code:
Problems were detected with cPanel-provided files which are RPM controlled.
If you did not make these changes intentionally, you can correct them by running:

> /usr/local/cpanel/scripts/check_cpanel_rpms --fix

The following RPMs are missing from your system:
cpanel-awstats.7.0-3.cp1136
when I run : /usr/local/cpanel/scripts/check_cpanel_rpms --fix
Code:
root@srv [~/test]# /usr/local/cpanel/scripts/check_cpanel_rpms --fix
[20130412.022413]
[20130412.022413]   Problems were detected with cPanel-provided files which are RPM controlled.
[20130412.022413]   If you did not make these changes intentionally, you can correct them by running:
[20130412.022413]
[20130412.022413]   > /usr/local/cpanel/scripts/check_cpanel_rpms --fix
[20130412.022413]   The following RPMs are missing from your system:
[20130412.022413]   cpanel-awstats.7.0-3.cp1136
[20130412.022423]   Removing 0 broken rpms:
[20130412.022423]   rpm: no packages given for erase
[20130412.022425]   Downloading http://httpupdate.cpanel.net/RPM/11.36/centos/5/i386/rpm.md5
[20130412.022425]   cpanel-awstats-7.0-3.cp1136.noarch.rpm already downloaded
[20130412.022426]   Hooks system enabled
[20130412.022426]   Checking for and running RPM::Versions 'pre' hooks for any RPMs about to be installed
[20130412.022426]   All required 'pre' hooks have been run
[20130412.022426]   No RPMS need to be uninstalled
[20130412.022426]   Installing new rpms: cpanel-awstats-7.0-3.cp1136.noarch.rpm
[20130412.022426]   Preparing packages for installation...
[20130412.022426]   cpanel-awstats-7.0-3.cp1136
[20130412.022426]   error: unpacking of archive failed on file /usr/local/cpanel/3rdparty/share/awstats/lang: cpio: rename failed - Is a directory
[20130412.022426] W Error Code: 1
[20130412.022426] E The following possible errors were detected while installing RPMs:
[20130412.022426] E unpacking of archive failed on file /usr/local/cpanel/3rdparty/share/awstats/lang
[20130412.022426]   The Administrator will be notified to review this output when this script completes
[20130412.022426]   Checking for and running RPM::Versions 'post' hooks for any RPMs just installed
[20130412.022426]   All required 'post' hooks have been run
When I try to install Awstats using yum : yum install awstats
Code:
root@srv [~/test]# yum install awstats
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.sunet.se
 * extras: mirror.nsc.liu.se
 * rpmforge: mirror.awanti.com
 * updates: mirror.nsc.liu.se
base                                                                                                                                 | 1.1 kB     00:00
extras                                                                                                                               | 2.1 kB     00:00
rpmforge                                                                                                                             | 1.9 kB     00:00
updates                                                                                                                              | 1.9 kB     00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package awstats.noarch 0:7.1-1.el5.rf set to be updated
--> Processing Dependency: perl(Geo::IP) for package: awstats
--> Processing Dependency: perl(LWP::UserAgent) for package: awstats
--> Finished Dependency Resolution
awstats-7.1-1.el5.rf.noarch from rpmforge has depsolving problems
  --> Missing Dependency: perl(Geo::IP) is needed by package awstats-7.1-1.el5.rf.noarch (rpmforge)
awstats-7.1-1.el5.rf.noarch from rpmforge has depsolving problems
  --> Missing Dependency: perl(LWP::UserAgent) is needed by package awstats-7.1-1.el5.rf.noarch (rpmforge)
Error: Missing Dependency: perl(Geo::IP) is needed by package awstats-7.1-1.el5.rf.noarch (rpmforge)
Error: Missing Dependency: perl(LWP::UserAgent) is needed by package awstats-7.1-1.el5.rf.noarch (rpmforge)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
I installed Geo::IP using the "Install Perl Module" function in cPanel. but it still give the same error.

I cannot also update cPanel.

How can I fix this problem ?

Thanks
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
/usr/local/cpanel/3rdparty/share/awstats/lang should not be a directory. Please rename it and attempt the upgrade again.

Example:

1. mv /usr/local/cpanel/3rdparty/share/awstats/lang /usr/local/cpanel/3rdparty/share/awstats/lang-2013-04-12
2. /scripts/upcp