httpd unpacking error on installing subversion and mod_dav_svn

LX7 asked:

I am unable to make subversion working on centOS 6.4. I am getting httpd unpacking error on installing mod_dav_svn. I am getting the following error.

Running Transaction
  Installing : subversion-1.6.11-9.el6_4.x86_64                             1/3
  Installing : httpd-2.2.15-29.el6.centos.x86_64                            2/3
Error unpacking rpm package httpd-2.2.15-29.el6.centos.x86_64
warning: /etc/httpd/conf/httpd.conf created as /etc/httpd/conf/httpd.conf.rpmnew
warning: /etc/httpd/conf/magic created as /etc/httpd/conf/magic.rpmnew
error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename
  Installing : mod_dav_svn-1.6.11-9.el6_4.x86_64                            3/3
  Verifying  : mod_dav_svn-1.6.11-9.el6_4.x86_64                            1/3
  Verifying  : subversion-1.6.11-9.el6_4.x86_64                             2/3
  Verifying  : httpd-2.2.15-29.el6.centos.x86_64                            3/3

Installed:
  mod_dav_svn.x86_64 0:1.6.11-9.el6_4     subversion.x86_64 0:1.6.11-9.el6_4

Failed:
  httpd.x86_64 0:2.2.15-29.el6.centos

Any help or suggestions will be appreciable. Thanks

My answer:


For reference, here is the error message you gave us:

error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename failed - Is a directory

The problem is that /etc/httpd/logs is not supposed to be a directory. It’s supposed to be a symbolic link. This is what it looks like on a live system:

lrwxrwxrwx. 1 root root 19 Aug 24 23:39 /etc/httpd/logs -> ../../var/log/httpd

So move the /etc/httpd/logs directory somewhere else, and then try running the update.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.