Cobra Forum

Linux => New to Ubuntu => Topic started by: mahesh on Sep 21, 2023, 05:52 AM

Title: Error when unpacking archive on Ubuntu 16.04
Post by: mahesh on Sep 21, 2023, 05:52 AM
I am new to Ubuntu and I face a very strange problem.
I use Ubuntu 16.04 via wsl 2 on Windows 10.


When I download an archive using wget e.g.,


    Code:wget https://github.com/protocolbuffers/protobuf/releases/tag/v3.19.1/protoc-3.19.1-linux-x86_64.zip
I cannot unpack the file, because
     Code:
unzip protoc-3.19.1-linux-x86_64.zip
yields


     Code:
Archive:  protoc-3.19.1-linux-x86_64.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of protoc-3.19.1-linux-x86_64.zip or
        protoc-3.19.1-linux-x86_64.zip.zip, and cannot find protoc-3.19.1-linux-x86_64.zip.ZIP, period.
Unpacking with
    Code:
jar xvf protoc-3.19.1-linux-x86_64.zipproduces even less informative error
     Code:
Ick! 0xa0a0a0aI am sure that the archive is not damaged, because I can download and open it on Windows.


What else I have tried:
- Downloading the archive with curl
- Ubuntu 18.04 and 20.04
- Setting wsl to the version 1
- ...


Maybe the problem is not in Ubuntu but in some Windows or wsl settings...
If some additional information needed - I will provide.


Thank you!