【问题标题】:yum update httpd failed on CentOS 7yum update httpd 在 CentOS 7 上失败
【发布时间】:2018-04-21 01:00:12
【问题描述】:

我正在尝试更新 Cent OS 7.2 框以进行合规活动。它失败并出现错误“错误:文件/usr/sbin/suexec;5a02e28f:cpio:cap_set_file 上的存档解包失败”,如下所示,

15-186 ~# yum update httpd        
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.scalabledns.com
 * epel: mirror.oss.ou.edu
 * extras: ftp.usf.edu
 * updates: ftp.usf.edu
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-40.el7.centos will be updated
---> Package httpd.x86_64 0:2.4.6-67.el7.centos.6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================
 Package                                              Arch                                                  Version                                                              Repository                                              Size
==============================================================================================================================================================================================================================================
Updating:
 httpd                                                x86_64                                                2.4.6-67.el7.centos.6                                                updates                                                2.7 M

Transaction Summary
==============================================================================================================================================================================================================================================
Upgrade  1 Package

Total download size: 2.7 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
httpd-2.4.6-67.el7.centos.6.x86_64.rpm                                                                                                                                                                                 | 2.7 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : httpd-2.4.6-67.el7.centos.6.x86_64                                                                                                                                                                                         1/2 
Error unpacking rpm package httpd-2.4.6-67.el7.centos.6.x86_64
error: unpacking of archive failed on file /usr/sbin/suexec;5a02e28f: cpio: cap_set_file
httpd-2.4.6-40.el7.centos.x86_64 was supposed to be removed but is not!
  Verifying  : httpd-2.4.6-40.el7.centos.x86_64                                                                                                                                                                                           1/2 
  Verifying  : httpd-2.4.6-67.el7.centos.6.x86_64                                                                                                                                                                                         2/2 

Failed:
  httpd.x86_64 0:2.4.6-40.el7.centos                                                                                   httpd.x86_64 0:2.4.6-67.el7.centos.6                                                                                  

Complete!

它适用于另一个类似的盒子。检查了许多博客和 redhat bugzilla 但没有出路。有人知道这里发生了什么吗?

【问题讨论】:

  • 您是否以 root 身份运行它?
  • 是的。我确实以root身份运行它。它在一个盒子上工作但在另一个盒子上失败了。
  • 终于为这个盒子重新安装了最新的操作系统。这项工作解决了这个问题,但没有得到实际的修复。
  • 你在另一个盒子上也有这行吗:Delta RPMs disabled because /usr/bin/applydeltarpm not installed.

标签: apache updates centos7 yum


【解决方案1】:

这是一个白鲸问题 - https://github.com/moby/moby/issues/6980。尝试更改 docker 存储驱动程序/主机操作系统。

【讨论】:

  • 它可能是......但是我现在得到一个非常相似的错误:错误:文件 /etc/httpd/run 上的存档解包失败:cpio:重命名 httpd-2.4.6 -67.el7.centos.6.x86_64 应该被删除但不是! 还有 docker/etc。和我的盒子完全没有关系。我寻找了 srpm,但当然不可用(快速查看),这意味着我无法修复脚本。我发现 CentOS 错误报告表格真的很烦人,所以我一直在等待。在我的情况下,它会创建一个符号链接,例如run;5b084768 -> /run/httpd - 每次更新失败。
猜你喜欢
  • 2018-09-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-07-26
  • 2015-08-22
  • 2023-04-04
相关资源
最近更新 更多