파일 압축을 푸는 중 오류가 발생했습니다.

파일 압축을 푸는 중 오류가 발생했습니다.

파일 압축을 풀면 아래와 같은 오류가 발생합니다.

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

답변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나에게 해냈다

아카이브 데이터 압축

사용 에 유효합니다 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

관련 정보