CentOS 7.x lxc package installation issue

From Notes_Wiki

Home > CentOS > CentOS 7.x > Virtualization > Lxc > Troubleshooting > CentOS 7.x lxc 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:

  1. 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
  2. Stop and start the relevant container



Home > CentOS > CentOS 7.x > Virtualization > Lxc > Troubleshooting > CentOS 7.x lxc package installation issue