Svn

安裝 subversion 和 mod_dav_svn 時的 httpd 解包錯誤

  • May 4, 2015

我無法在 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

任何幫助或建議都將不勝感激。謝謝

作為參考,這是您給我們的錯誤消息:

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目錄移至其他位置,然後嘗試執行更新。

嘗試清理 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

引用自:https://serverfault.com/questions/533600