3

I am trying to unzip a file (Facebook download-your-info zip file), but here's what I got: enter image description here

Is there a way I can force-unzip it?

Update: I tried sudo unzip file.zip -d destination_folder in terminal, and it unzipped the file, but what came out, all the files have size 0 bytes: enter image description here

Update 2: I do have permission to the directory and the file.

enter image description here

(I'm really sorry if my question is asked badly. Let me know down in the comments :) )

Vee Hua Zhi
  • 143
  • 1
  • 1
  • 8
  • 1
    Did the unzip command return an error? You can check the integrity of the archive by using the command: « unzip -t archive.zip » It seems that the downloaded archive is corrupted or incomplete. Is it possible to download it again? – Guillaume Dec 24 '18 at 12:17
  • I downloaded it 2 times on my computer, one time on another computer (and another facebook account data), and all didn't work – Vee Hua Zhi Dec 24 '18 at 12:18
  • Did the integrity check return something ? – Guillaume Dec 24 '18 at 12:20
  • I checked it and 'No errors detected in compressed data of .zip.' came out – Vee Hua Zhi Dec 24 '18 at 12:21
  • In fact, I can read every file inside – Vee Hua Zhi Dec 24 '18 at 12:21
  • @Guillaume Are there any more ways? – Vee Hua Zhi Dec 25 '18 at 03:43
  • I am not sure to understand when you said « I can read every file inside ». Are you able to compare the size of the archive and the folder using « du -sh /path/uncompressed_folder » ? – Guillaume Dec 25 '18 at 09:53
  • I don't understand the "compare the size of the archive and the folder" part. What folder? – Vee Hua Zhi Dec 25 '18 at 11:55
  • In your download directory type « ls -la » and note the Facebook archive size. Next, go to your /home/.../temp_file and type «  du -sh  ». – Guillaume Dec 25 '18 at 12:54
  • when i use the `du -sh` command all of it shows `du: cannot access 'temp_file/pages/no-data.txt': Permission denied ` – Vee Hua Zhi Dec 26 '18 at 03:47

2 Answers2

6

Either you try to unzip your archive in a directory where you do not have access rights or the rights on the archive are not granted to you. You can easily check using ls -la command and change permissions using chown and chmod commands.

You can also try unzipping from the command line as a super user and choose a directory where you have access rights.

sudo unzip file.zip -d destination_folder
Guillaume
  • 357
  • 1
  • 12
1

Following solution works for me: cd into file parent's dir then execute unzip cmd.

kpatel
  • 11
  • 1
  • Welcome to Super User! Before answering an old question having an accepted answer (look for green ✓) ensure your answer adds something new or is otherwise helpful in relation to them. Here is a guide on [answer]. There is also [tour] for the site tour, and [help] for the help center. – help-info.de Dec 31 '20 at 10:59