安装 subversion 和 mod_dav_svn 时出现 httpd 解压错误

安装 subversion 和 mod_dav_svn 时出现 httpd 解压错误

我无法让 subversion 在 centOS 6.4 上运行。安装 mod_dav_svn 时出现 httpd 解压错误。我收到以下错误。

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

任何帮助或建议都将不胜感激。谢谢

答案1

作为参考,以下是您向我们提供的错误消息:

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

问题是它/etc/httpd/logs不应该是一个目录。它应该是一个符号链接。它在实时系统上看起来是这样的:

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

因此,将/etc/httpd/logs目录移到其他位置,然后尝试运行更新。

答案2

尝试清理 yum 的缓存

# yum clean all

然后重试。您也可以尝试直接从服务器下载 rpm

# wget http://mirror.mirohost.net/centos/6.4/updates/x86_64/Packages/httpd-2.2.15-29.el6.centos.x86_64.rpm    
# rpm -ivh httpd-2.2.15-29.el6.centos.x86_64.rpm

相关内容