Difference between revisions of "CentOS 7.x lxc package installation issue"
From Notes_Wiki
(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...") |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x virtualization|Virtualization]] > [[CentOS 7.x lxc|Lxc]] > [[CentOS 7.x lxc troubleshooting|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: | On CentOS 7.x host with CentOS 7.x lxc container, package installation via yum might fail with error such as: | ||
Line 11: | Line 10: | ||
#: (This assumes use of fedora configuration for CentOS 7 containers) Comment line #lxc.cap.drop = setfcap with '#' symbol | #: (This assumes use of fedora configuration for CentOS 7 containers) Comment line #lxc.cap.drop = setfcap with '#' symbol | ||
# Stop and start the relevant container | # Stop and start the relevant container | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x virtualization|Virtualization]] > [[CentOS 7.x lxc|Lxc]] > [[CentOS 7.x lxc troubleshooting|Troubleshooting]] > [[CentOS 7.x lxc package installation issue]] |
Latest revision as of 08:59, 25 August 2022
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:
- 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
Home > CentOS > CentOS 7.x > Virtualization > Lxc > Troubleshooting > CentOS 7.x lxc package installation issue