For example,I created a simple zip file (inside I have the sentence: hello world!) in desktop. I want to unzip it, but nothing happens. I also installed (zip unzip) with this command: sudo apt install zip unzip, but it says that I have already have the newest versions of these installed.

Here is the error I get in the terminal:

Here is the error I get in the terminal

  • "Can't extract file.zip" Care to show to us what's the error you see?
    – Liso
    Apr 18, 2020 at 13:44
  • There was an error while extracting "file.zip" Apr 18, 2020 at 13:48
  • 1
    Please don't post additional information as answers. This is not a forum. edit your question instead.
    – Pilot6
    Apr 18, 2020 at 14:10
  • There may be two reasons: 1) The archive is really corrupt; 2) File names may have non-ascii characters. The second can be fixed. Can you give a link to that file?
    – Pilot6
    Apr 18, 2020 at 14:11
  • Hey Nick, please use the edit button to append answers to your question as opposed to making multiple answers. Have a look at some other questions: askubuntu.com/questions/790929/… / askubuntu.com/questions/520546/… and askubuntu.com/questions/482849/…
    – DankyNanky
    Apr 18, 2020 at 14:57

2 Answers 2


First, in the terminal use the cd command to change to the location you want. An example being cd /home/nick/Downloads. From here, verify that the file exists using ls -la | grep .zip to ensure you're in the right location.

From here, if you want to unzip to the current location, just run:

unzip file.zip
  • Hey @Nick_Gkoutzas, the error stipulates that the zip file has no content, or Zip cannot read the file. A return of ls -la might give you file size. If corrupted, I'd suggest a redownload of the file.
    – DankyNanky
    Apr 18, 2020 at 13:59
  • I changed this zip file to tar file and I I will try to untar it .if that doesn't work ,I will redownload the file Apr 18, 2020 at 14:09
  • Hey Nick, in your other post it states the file seems corrupt. Try again with the download, otherwise perhaps try to use something like 7Zip to see if this is a compression issue.
    – DankyNanky
    Apr 18, 2020 at 14:17

A better question is "How did you create the zip file?" If you made it in an editor, it's not "really" a zip archive and unzip won't work. If you want the contents, use cat hello.zip. To properly create a zip file, you can use, zip filename.zip filename.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.