关于cpio: 文件非正常终止(cpio: premature end of file)
来源:互联网 发布:html logo seo 编辑:程序博客网 时间:2024/04/29 03:32
On an FC5 system, I downloaded mlocate-0.12-1.2.src.rpm and did the following
steps:
rpm2cpio mlocate-0.12-1.2.src.rpm > ml
cpio -idv < ml
I got the error message "cpio: premature end of file"
If I do this on FC4, it works fine. I did a cmp on the output of the rpm2cpio
for FC4 and FC5, and they matched perfectly, so the problem clearly lies in
cpio.
Version-Release number of selected component (if applicable): cpio-2.6-14.FC5
How reproducible: always
Steps to Reproduce: shown above
Actual results: error message
Expected results: no error message
Additional info: "ldd /bin/cpio" gives the following:
linux-gate.so.1 => (0x005bf000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00251000)
libc.so.6 => /lib/libc.so.6 (0x007fc000)
/lib/ld-linux.so.2 (0x007db000)
Comment 1 Peter Vrabec 2006-03-24 09:46:58 EST
Comment 2 Steve Falco 2006-03-24 09:52:21 EST
Confirmed fixed, and thanks!
===================================================================================
===================================================================================
Hi,
The problem is the "-idcmv" option of the cpio command.
You should use "-idmv":
# cpio -idmv < lnx_920_disk1.cpio
# cpio -idmv < lnx_920_disk2.cpio
# cpio -idmv < lnx_920_disk3.cpio
Cheers,
===================================================================================
===================================================================================
1,cpio解压:cpio -idcmv < <filename>
cpio: premature end of file报错 去掉选项c即可
===================================================================================
===================================================================================
http://www.linuxquestions.org/questions/linux-newbie-8/retrieving-tape-backup-after-using-cpio-and-gzip-395417/
===================================================================================
===================================================================================
- 关于cpio: 文件非正常终止(cpio: premature end of file)
- 解压cpio文件:cpio: premature end of file
- Premature end of file
- Premature end of file
- SAXParseException : Premature end of file
- premature end of file错误
- DOM4J:Premature end of file
- Premature end of JPEG file
- cpio
- cpio
- cpio
- cpio
- cpio
- cpio
- cpio
- dom4j解决Premature end of file
- 解决SAXParseException: Premature end of file
- Premature end of file 错误解决
- Android Tutorials-----Tab Layout ,错误提示 tabHost.setCurrentTab(getIntent());
- WSDL服务之身份证号码查询详解
- C语言程序设计_现代方法--一本好书
- 什么是STL
- 从海瑞到张居正
- 关于cpio: 文件非正常终止(cpio: premature end of file)
- C++ 虚函数表解析
- NS2安装笔记---SUSE Linux
- [Struts]Struts2的开发步骤
- KEIL中如何用虚拟串口调试串口程序
- windows 7技术:正确认识库、搜索和索引
- 实现多行合并一行的SQL写法
- Apache Log4j 学习笔记(强力推荐,log4j好文)
- powerpc 通用寄存器 (r0 - r31) or (gpr0 - grp31)