• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

RPM : package installation Error : cpio: read failed

By admin

The Problem

We can see the following error while unpacking a package using rpm command;

---
Preparing... ##################################################
dbaastools ##################################################
error: unpacking of archive failed on file /var/opt/xxxx/xxx/xxx/xxx/xxx.o.zip.xxxxx: cpio: read failed - Inappropriate ioctl for device

How to correct this issue and to install the package successfully.

The Solution

RPM uses cpio as it’s archive format. This is the reason why we’re seeing a cpio error here. The “cpio: read failed” error means that the package you are trying to unpack is either corrupt or incomplete.

If you see this error, please make sure that the package has been downloaded from a reliable source and it is complete by checking the MD5 checksum of the downloaded copy and the original. (Command #md5sum)

Check the size and md5sum of the RPM copy on your system.

# ls -l [rpm]
# md5sum [rpm]

If there is a difference in the checksum, it is recommended to do a fresh download from a reliable source. If the server has direct internet access or access via Proxy, download the package file directly to the server using the wget command.

# wget [URL]

The [URL] should be replaced by the actual download URL.

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 5 : dm-multipath file /etc/sysconfig/mkinitrd/multipath explained
  2. What’s different between /bin/false and /sbin/nologin as nologin user’s shell
  3. How to Setup VNC Server for New User in CentOS/RHEL 5
  4. How to Delete ASM Disk on Multipath Device in CentOS/RHEL
  5. How to disable timeout in ssh during login prompt (login session inactivity) in Linux
  6. Understanding Variables in Bash Shell Under Linux
  7. Beginners Guide to MySQL User Management
  8. How to Password Protect GRUB2 in Oracle Enterprise Linux 7
  9. How to disable firewalld and and switch to iptables in CentOS / RHEL 7
  10. How to clear the buffer/pagecache (disk cache) under Linux

You May Also Like

Primary Sidebar

Recent Posts

  • How to set the default character set in MySQL and how to propagate it in a master-master replication scenario
  • “Connection reset by peer” – error while ssh into a CentOS/RHEL system with a specific user only
  • MySQL: how to figure out which session holds which table level or global read locks
  • Recommended Configuration of the MySQL Performance Schema
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary