# 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
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
ls -lh