tar 解压时提示 Archive contains obsolescent base-64 headers

简介: http://rainbird.blog.51cto.com/211214/40892/ 错误信息: tar: Skipping to next header tar: Archive contains obsolescent base-64 headers gzip: stdin: invalid compressed data--format violated
错误信息:
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-www.tar.gz
-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是二进制模式传输,具体为什么小弟也不清楚,只是摸索出的经验,欢迎就手斧正.
相关文章
|
6月前
|
计算机视觉 Python
zip
zip
43 2
|
6月前
|
存储 数据安全/隐私保护 Windows
7-Zip 的使用技巧
7-Zip 的使用技巧
|
6月前
|
存储 Linux 数据安全/隐私保护
|
Java Linux
Linux使用解压命令unzip报错:unzip: cannot find zipfile directory in one of xxx.zip
在linux服务器下使用rz上传压缩文件,用unzip命令解压zip包
1227 0
安装MinGW-W64提示cannot download repository.txt
安装MinGW-W64提示cannot download repository.txt
347 0
安装MinGW-W64提示cannot download repository.txt
|
Linux
zip和unzip区分
zip和unzip区分
193 0
|
Web App开发 Linux
unzip --help帮助文件翻译
unzip 用法 帮助 --help
1377 0
|
PHP 开发工具