CentOS 7.x lxc package installation issue

From Notes_Wiki
Revision as of 08:59, 25 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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