[SOLVED] error: unpacking of archive failed on file /usr/bin/arping;66866b8c: cpio: cap_set_file failed - Operation not permitted

hboetes2

New Member
Jun 27, 2024
2
0
1
Here is another gotcha, updating this package failed because of a permission problem, here is the output from the console:

Code:
root@boy ~ #  dnf install iputils
Fedora 40 - x86_64                                                                                                                                                                                                                                                     5.7 MB/s |  20 MB     00:03   
Fedora 40 openh264 (From Cisco) - x86_64                                                                                                                                                                                                                               1.9 kB/s | 1.4 kB     00:00   
Fedora 40 - x86_64 - Updates                                                                                                                                                                                                                                           6.0 MB/s | 8.3 MB     00:01   
Puppet 8 Repository el 9 - x86_64                                                                                                                                                                                                                                       17 kB/s |  15 kB     00:00   
Dependencies resolved.
=======================================================================================================================================================================================================================================================================================================
 Package                                                               Architecture                                                         Version                                                                         Repository                                                            Size
=======================================================================================================================================================================================================================================================================================================
Installing:
 iputils                                                               x86_64                                                               20240117-4.fc40                                                                 fedora                                                               194 k

Transaction Summary
=======================================================================================================================================================================================================================================================================================================
Install  1 Package

Total download size: 194 k
Installed size: 661 k
Is this ok [Y/n]:
Downloading Packages:
iputils-20240117-4.fc40.x86_64.rpm                                                                                                                                                                                                                                      28 MB/s | 194 kB     00:00   
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                                                  147 kB/s | 194 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                                               1/1
  Installing       : iputils-20240117-4.fc40.x86_64                                                                                                                                                                                                                                                1/1
Error unpacking rpm package iputils-20240117-4.fc40.x86_64

Failed:
  iputils-20240117-4.fc40.x86_64                                                                                                                                                                                                                                                                       

Error: Transaction failed
root@boy ~ #  dnf download iputils
Last metadata expiration check: 0:00:59 ago on Thu 04 Jul 2024 11:27:30 CEST.
iputils-20240117-4.fc40.x86_64.rpm                                                                                                                                                                                                                                      48 MB/s | 194 kB     00:00   
root@boy ~ #  rpm -Uvh iputils-20240117-4.fc40.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:iputils-20240117-4.fc40          ################################# [100%]
error: unpacking of archive failed on file /usr/bin/arping;66866b46: cpio: cap_set_file failed - Operation not permitted
error: iputils-20240117-4.fc40.x86_64: install failed

Then I got the luminous idea to try the same thing in a chroot:
So I ssh'ed into the hypervisor, went in the lxc directory, typed chroot . /bin/zsh
And then everything went fine.
Code:
root@ernie ~ #  rpm -Uvh iputils-20240117-4.fc40.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:iputils-20240117-4.fc40          ################################# [100%]