파일을 압축 해제 할 수 없습니다


18

파일을 압축 해제하려고 시도 중이므로 다음 명령을 시도해보십시오.

그러나 이것은 Ubuntu 서버 최신 릴리스입니다.

user@serverubuntu:~/minecraft/server$ ls
rtk.zip
user@serverubuntu:~/minecraft/server$ sudo unzip rtk.zip
sudo: unzip: command not found
user@serverubuntu:~/minecraft/server$ 

내가 sudo없이 시도하면 나는 이것을 얻는다.

user@serverubuntu:~/minecraft/server$ unzip rtk.zip
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.3
Python version: 3.2.3 final 0
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:    12.10
Codename:   quantal
Exception information:

unsupported locale setting
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, incrash_guard
    callback()
  File "/usr/lib/command-not-found", line 69, in main
    enable_i18n()
  File "/usr/lib/command-not-found", line 40, in enable_i18n
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python3.2/locale.py", line 541, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

advace에 감사합니다

편집-내가 찾은 zip 파일이 손상되었습니다.


1
당신은 확실히 당신은 있습니까 unzip설치되어 있습니까? 그렇지 않다면,sudo apt-get install unzip
— carnendil

압축을 풀 때 방금 설치하여 다시 가져 왔습니다. user @ serverubuntu : ~ / minecraft / server $ unzip rtk.zip 아카이브 : rtk.zip 중앙 디렉토리 끝 서명을 찾을 수 없습니다. 이 파일은 zip 파일이 아니거나 여러 부분으로 구성된 아카이브의 디스크 하나를 구성합니다. 후자의 경우 중앙 디렉토리와 zipfile 주석은이 아카이브의 마지막 디스크에서 찾을 수 있습니다. unzip : rtk.zip 또는 rtk.zip.zip 중 하나에서 zipfile 디렉토리를 찾을 수없고 rtk.zip.ZIP 기간을 찾을 수 없습니다. user @ serverubuntu : ~ / minecraft / server $
— Valkyrie0512

2
@ Valkyrie0512, End-of-central-directory 디렉토리는 zip이 유효하지 않음을 의미합니다. 다시 다운로드하면 잘 될 것입니다.
— Matt

답변:


36

아마도 설치가 필요합니다 unzip

sudo apt-get install zip unzip

오류 메시지가 표시되는 한 해당 오류에 대한 버그 보고서를 제출해야합니다.

"버그는 어떻게보고합니까?"


1
운이 없다, 이것을 받았다. user @ serverubuntu : ~ / minecraft / server $ unzip rtk.zip 아카이브 : rtk.zip 중앙 디렉토리 끝 서명을 찾을 수 없습니다. 이 파일은 zip 파일이 아니거나 여러 부분으로 구성된 아카이브의 디스크 하나를 구성합니다. 후자의 경우 중앙 디렉토리와 zipfile 주석은이 아카이브의 마지막 디스크에서 찾을 수 있습니다. unzip : rtk.zip 또는 rtk.zip.zip 중 하나에서 zipfile 디렉토리를 찾을 수없고 rtk.zip.ZIP 기간을 찾을 수 없습니다. user @ serverubuntu : ~ / minecraft / server $
— Valkyrie0512

3
@ Valkyrie0512 즉, 파일 이름에도 불구하고 파일이 압축 파일이 아니거나 파일이 손상되었을 수 있습니다 (잘려져 있음). 무엇을 file rtk.zip보여줍니까? zip 파일의 크기를 확인할 수 있습니까?
— Gilles 'SO- 악마 그만두 다'

또는 아카이브가 손상되었습니다.
— Panther

아아, 내 나쁜, fil가 파산되었다 밝혀졌다
— Valkyrie0512

CentO의 경우 다음과 같이 작동했습니다. yum install zip unzip
— shasi kanth
당사 사이트를 사용함과 동시에 당사의 쿠키 정책과 개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.