
파일 압축을 풀 때 다음 오류가 발생합니다.
unzip user_file_batch1.csv.zip
Archive: user_file_batch1.csv
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of user_file_batch1.csv or
user_file_batch1.csv.zip, and cannot find user_file_batch1.csv.ZIP, period.
나는 이 파일이 손상되지 않았거나 다중 아카이브 파일의 일부라고 생각합니다. Archive Utility를 사용하여 압축을 풀 수 있었습니다. 이름을 바꾸려고했지만 .zip
작동하지 않았습니다.
type file user_file_batch1.csv.zip
의 출력은
user_file_batch1.csv.zip: uuencoded or xxencoded text
답변1
파일에 .zip
이름이 있지만 zip 형식이 아닙니다. 파일 이름을 바꿔도 내용은 바뀌지 않으며, 특히 마법처럼 다른 형식으로 변환되지도 않습니다.
(또는 불완전한 zip 파일에서도 동일한 오류가 발생할 수 있습니다. 그러나 해당 아카이브 유틸리티가 작동했기 때문에 그렇지 않습니다.)
file user_file_batch1.csv.zip
이 파일이 어떤 유형인지 확인하려면 실행하세요 . 아마도 Archive Utility가 이해하는 다른 유형의 아카이브일 것입니다.
user_file_batch1.csv.zip: uuencoded 또는 xxencoded 텍스트
다음 명령을 실행하십시오.
uudecode user_file_batch1.csv.zip
그러면 이름이 에 표시된 파일이 생성됩니다 user_file_batch1.csv.zip
. 다른 출력 파일 이름을 선택하려면 다음을 수행하십시오.
uudecode -o user_file_batch1.csv.decoded user_file_batch1.csv.zip
이 단계의 출력 파일은 그 자체로 아카이브일 수 있습니다. (사실 zip일 수도 있습니다.) file
이 파일에 대해 유틸리티를 다시 실행하여 파일이 무엇인지 확인하십시오. 자동 파일 이름을 선택하면 단서를 얻을 수 있습니다.
답변2
unzip archive.zip
나에게 줄 때 비슷한 문제가 발생했습니다 .
아카이브: archive.zip
경고 [archive.zip]: ... 시작 부분 또는 zip 파일 내의 추가 바이트
(어쨌든 처리하려고 시도 중)
오류 [archive.zip]: 중앙 디렉터리의 시작을 찾을 수 없습니다.
zip 파일이 손상되었습니다.
(적절한 BINARY 모드에서 zip 파일을 전송하거나 생성했는지
, UnZip을 올바르게 컴파일했는지 확인하십시오)
file archive.zip
나에게 준
Zip 아카이브 데이터
일을 사용했습니다 7z e archive.zip
.
답변3
zip 위치로 이동한 후 이 명령으로 압축을 풉니다.
jar xvf yourzipfile.zip
답변4
zip 파일의 텍스트 내용을 복사하려면 파일 형식을 위해 파일을 gzip으로 압축하고 내용을 나열하려면 zcat을 사용하세요.
# unzip ADUReport.zip
Archive: ADUReport.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of ADUReport.zip or
ADUReport.zip.zip, and cannot find ADUReport.zip.ZIP, period.
#gunzip ADUReport.zip
gunzip: ADUReport.zip: unknown suffix -- ignored
zcat ADUReport.zip
#zcat: ADUReport.zip: not in gzip format
#gzip ADUReport.zip
#l
#zcat ADUReport.zip.gz