CentOS 7.x lxc package installation issue
From Notes_Wiki
<yambe:breadcrumb>CentOS_7.x_lxc_troubleshooting|CentOS 7.x lxc troubleshooting</yambe:breadcrumb>
CentOS 7.x package installation issue
On CentOS 7.x host with CentOS 7.x lxc container, package installation via yum might fail with error such as:
Error unpacking rpm package httpd-2.4.6-45.el7.centos.x86_64 error: unpacking of archive failed on file /usr/sbin/suexec;588068b7: cpio: cap_set_file
to resolve this do the following:
- Edit /usr/share/lxc/config/fedora.common.conf
- (This assumes use of fedora configuration for CentOS 7 containers) Comment line #lxc.cap.drop = setfcap with '#' symbol
- Stop and start the relevant container