+13 votes
in Help by (26.3k points)
How to fix "Unzip: Unrecognized archive format" error in FreeBSD?

2 Answers

+15 votes
by (26.3k points)
Best answer
# cd /usr/ports/archivers/libarchive
# make install clean

# ln -sf /usr/local/bin/bsdtar /usr/bin/tar
# tar --version
bsdtar 3.1.2 - libarchive 3.1.2
by (26.3k points)
This solved it for me.
+14 votes
by (26.3k points)

There may be several answers to this issue, but I will share what the problem was in my case.

The ZIP file I tried to unzip turned out to be empty.

I discovered this by checking the file type:

>>> file [filename]
[filename].zip: empty

and the file size

>>> ls -lh
total 0
-rw-r--r-- 1 user user 0B Nov 8 09:08 [filename].zip

The solution was to perform the copying again, and ensuring that the file was no longer empty by re-running ls -lh

Ask a Question
Welcome to WikiTechSolutions where you can ask questions and receive answers from other members of the community.

You can ask a question without registration.