From Notes Wiki
Revision as of 06:00, 23 January 2017 by Saurabh (talk | contribs) (Created page with "<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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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:

  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