Some RPMs fail to install in a RHEL7 docker container with cpio errors
Issue
Some packages fail to install, with yum throwing a cpio error. For example:
# yum install pki-server
Loaded plugins: product-id, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package pki-server.noarch 0:10.0.5-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================
Package Arch Version Repository Size
================================================================================================
Installing:
pki-server noarch 10.0.5-3.el7 rhel-7-server-rpms 2.7 M
Transaction Summary
================================================================================================
Install 1 Package
Total download size: 2.7 M
Installed size: 3.9 M
Is this ok [y/d/N]: y
Downloading packages:
pki-server-10.0.5-3.el7.noarch.rpm | 2.7 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : pki-server-10.0.5-3.el7.noarch 1/1
Error unpacking rpm package pki-server-10.0.5-3.el7.noarch
error: unpacking of archive failed on file /var/lock/pki: cpio: mkdir
Verifying : pki-server-10.0.5-3.el7.noarch 1/1
Failed:
pki-server.noarch 0:10.0.5-3.el7
Complete!
Environment
- Red Hat Enterprise Linux Atomic Host 7.0.0
- Red Har Enterprise Linux 7.0
- docker 1.3.2
- docker 1.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
