Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10806376
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-03-23 11:31:07

错误信息:
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
gzip: stdin: invalid compressed data--format violated
tar: Child returned status 1
tar: Error exit delayed from previous errors
出现上面的错误大多是因为*.tar.gz文件在传输过程中产生的错误,大多是在linux通过ftp下载东西的时候有这种情况解决的办法很简单就是在ftp传输前加上bin命令就可以了
示例:
[root@localhost ~]# ftp 192.168.0.103
Connected to 192.168.0.103.
220
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.0.103:root): abc
331 Password required for abc
Password:
230 User successfully logged in.
Remote system type is UNIX.
ftp> ls
227 Entering Passive Mode (192,168,0,103,11,35).
150 Opening ASCII mode data connection for directory list.
-rwx------ 1 user group       25283789 Aug 14 04:22 20070814-bbs.tar.gz
-rwx------ 1 user group       99052875 Aug 14 04:22 20070814-
-rwx------ 1 user group       13212260 Aug 14 04:22 20070814-xbbs-data.tar.gz
drwx------ 1 user group              0 Aug 14 19:07 linux
-rwx------ 1 user group       59053420 Sep 03 13:33 moon_lserver_1.3.tar.gz
drwx------ 1 user group              0 Aug 14 08:46 win
226 Transfer complete
ftp> bin
200 Type set to I
ftp> get moon_lserver_1.3.tar.gz
local: moon_lserver_1.3.tar.gz remote: moon_lserver_1.3.tar.gz
227 Entering Passive Mode (192,168,0,103,11,36).
150 Opening BINARY mode data connection for file transfer.
226 Transfer complete
59053420 bytes received in 36 seconds (1.6e+03 Kbytes/s)
ftp>
OK这样再解压就可以了,不用再帖出成功解压的信息了吧.
另外说一句bin是二进制模式传输,具体为什么小弟也不清楚,只是摸索出的经验,欢迎就手斧正.
阅读(887) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~