tar 解壓時提示 Archive contains obsolescent base-64 headers

←手機掃碼閱讀     火星人 @ 2014-03-23 , reply:0

錯誤信息:tar: Skipping to next header
tar: Archive contains obsolescent base-64 headersgzip: 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是二進位模式傳輸,具體為什麼小弟也不清楚,只是摸索出的經驗,歡迎就手斧正.




[火星人 ] tar 解壓時提示 Archive contains obsolescent base-64 headers已經有325次圍觀

http://coctec.com/docs/linux/show-post-114109.html