파일 압축을 풀 때 다음 오류가 발생합니다
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.
아카이브 유틸리티를 사용 하여이 파일이 손상되었거나 멀티 아카이브 파일의 일부가 아니라고 생각합니다. 이름을 바꾸려고 .zip했지만 작동하지 않았습니다.
의 출력 type file user_file_batch1.csv.zip은
user_file_batch1.csv.zip: uuencoded or xxencoded text
답변
파일 .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이 파일 에서 유틸리티를 다시 실행하여 파일이 무엇인지 확인하십시오. 자동 파일 이름을 선택하면 실마리가 생길 수 있습니다.
답변
할 때 나는 비슷한 문제를 가지고 unzip archive.zip저를주고,
아카이브 : archive.zip
경고 [archive.zip] : … 시작시 또는 zip 파일 내에 여분의 바이트
(어쨌든 처리하려고 시도 중)
오류 [archive.zip] : 중앙 디렉토리의 시작을 찾을 수 없습니다.
zipfile이 손상되었습니다.
(
해당 BINARY 모드 에서 zip 파일을 전송하거나 생성했으며 UnZip을 올바르게 컴파일했는지 확인하십시오)
이렇게는 file archive.zip준
Zip 보관 데이터
사용 7z e archive.zip했다.
답변
압축 풀기와 같은 문제가있었습니다.
그런 다음 운없이 7z와 jar로 추출하려고했습니다. 나중에 그것은 조용한 오래된 p7zip 버전이었습니다.
소스 에서 새로운 것을 설치 하여 문제를 해결했습니다. 간단한:
7z x archive.zip
올바르게 추출했습니다.
답변
zip 위치로 이동 한 후이 명령으로 압축을 풉니 다
jar xvf yourzipfile.zip
답변
zip 파일에 텍스트 내용을 복사하려면 파일 형식으로 파일을 압축하고 내용을 나열하려면 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