A strange CPIO error was reported when installing the RPM package on the company server today. (most errors can be solved by reinstalling CPIO or downloading RPM package again)
unpacking of archive failed: cpio: lstat failed - Not a directory
Solution:
After learning CPIO, I found a solution:
Step 1: check the directory required by the RPM package
rpm2cpio XXXX.rpm | cpio -idmv
Step 2: check the corresponding directory, and you will find that it really exists, and it is not a directory…
Step 3: delete this directory and reinstall successfully!!!!
Reference: https://access.redhat.com/solutions/6189481
Read More:
- [Solved] filebeat Startup Error: Exiting: error unpacking config data: more than one namespace configured accessing
- Couldn‘t create temporary archive name. [How to Solve]
- Linux system service command error: Failed to allocate directory watch: Too many open files
- [Solved] Nginx Restart Error: /run/nginx.pid failed (2: No such file or directory)
- [Solved] nginx: [error] open() “/usr/local/nginx/nginx.pid” failed (2: No such file or directory)
- [Solved] ffmpeg Error: fatal error: zlib.h: Not having that file or directory
- [Solved] ERROR: Subproject directory not found and gst-plugins-base.wrap file not found
- [Solved] Cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd
- [Solved] Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- [Solved] tar (child): bzip2: Cannot exec: No such file or directory tar (child): Error is not recoverable: ex
- VScode Error: extension failed XHR Failed (Ubuntu Virtual Machine)
- [Solved] OCI runtime create failed: runc create failed: unable to start container process:
- [Solved] secureCRT Failed to Login Ubuntu20.04 Error: Key exchange failed
- [Solved] Ubuntu Update source error: Certificate verification failed: The certificate is NOT trusted.
- [Solved] Ubuntu20.04 Error: “Failed to install the following Android SDK packages as some licences have not..“error
- [Solved] Cannot run program “svn” (in directory “D: xxxx”): CreateProcess error=2, the system cannot find the specified file.
- [Solved] E xx: xxxx:xx ERR thread 0x536753929472 setscheduler failed Operation not permitted
- [Solved] Beeline Error: Error: Could not open client transport with JDBC Failed to Connection
- [Solved] KVM Failed to Startup Error: error: Network not found: no network with matching name ‘default‘