This repository has been archived by the owner. It is now read-only.

End-of-central-directory signature not found #3

Open
perguth opened this Issue Dec 7, 2015 · 7 comments

Comments

Projects
None yet
3 participants
@perguth
Contributor

perguth commented Dec 7, 2015

On Ubuntu 15.10:

sudo ./install-ipfs.sh:

[ipfs_master_linux-amd64.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 ipfs_master_linux-amd64.zip or
        ipfs_master_linux-amd64.zip.zip, and cannot find ipfs_master_linux-amd64.zip.ZIP, period.
error: failed to unzip ipfs_master_linux-amd64.zip

sudo ./install-ipfs.sh release:

[ipfs_release_linux-amd64.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 ipfs_release_linux-amd64.zip or
        ipfs_release_linux-amd64.zip.zip, and cannot find ipfs_release_linux-amd64.zip.ZIP, period.
error: failed to unzip ipfs_release_linux-amd64.zip
@jbenet

This comment has been minimized.

Member

jbenet commented Dec 8, 2015

@pguth this is very odd-- have not seen this before.

@thelinuxkid

This comment has been minimized.

Collaborator

thelinuxkid commented Dec 8, 2015

This means that the zip file is not being downloaded completely. The first should have worked (master), but, for the second (release) there is no such tag. Try specifying a numbered release, e.g., v0.3.9. But, I suspect you will run into the same problem. If you do, try wget https://gobuilder.me/get/github.com/ipfs/go-ipfs/cmd/ipfs/ipfs_master_linux-amd64.zip && unzip ipfs_master_linux-amd64.zip. I bet that will also thrown an error.

@perguth

This comment has been minimized.

Contributor

perguth commented Dec 8, 2015

@thelinuxkid wget https://gobuilder.me/get/github.com/ipfs/go-ipfs/cmd/ipfs/ipfs_master_linux-amd64.zip && unzip ipfs_master_linux-amd64.zip works fine. Defining specific versions too!

What works: version tags. I tried v0.3.7, v0.3.8, v0.3.9 and always verified it using ipfs version.

What does not work: master, release. Same errors as given in my initial posting.

@thelinuxkid

This comment has been minimized.

Collaborator

thelinuxkid commented Dec 8, 2015

Hmm...both sudo ./install-ipfs.sh and sudo ./install-ipfs.sh master work for me:

andres@dev:~/tmp$ wget -q https://raw.githubusercontent.com/ipfs/install-go-ipfs/master/install-ipfs.sh
andres@dev:~/tmp$ chmod +x install-ipfs.sh
andres@dev:~/tmp$ sudo ./install-ipfs.sh -v
downloading https://gobuilder.me/get/github.com/ipfs/go-ipfs/cmd/ipfs/ipfs_master_linux-amd64.zip
unzipping ipfs_master_linux-amd64.zip
installing to /usr/local/bin/ipfs
andres@dev:~/tmp$ sudo rm -rf /tmp/install_ipfs /usr/local/bin/ipfs
andres@dev:~/tmp$ sudo ./install-ipfs.sh master -v
downloading https://gobuilder.me/get/github.com/ipfs/go-ipfs/cmd/ipfs/ipfs_master_linux-amd64.zip
unzipping ipfs_master_linux-amd64.zip
installing to /usr/local/bin/ipfs
andres@dev:~/tmp$ sudo rm -rf /tmp/install_ipfs /usr/local/bin/ipfs
andres@dev:~/tmp$ sudo ./install-ipfs.sh release -v
downloading https://gobuilder.me/get/github.com/ipfs/go-ipfs/cmd/ipfs/ipfs_release_linux-amd64.zip
unzipping ipfs_release_linux-amd64.zip
[ipfs_release_linux-amd64.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 ipfs_release_linux-amd64.zip or
        ipfs_release_linux-amd64.zip.zip, and cannot find ipfs_release_linux-amd64.zip.ZIP, period.
error: failed to unzip ipfs_release_linux-amd64.zip

I will try this on Ubuntu 15.10. As I mentioned, release is not a tag, so, that wouldn't work (unless there's something about gobuilder I don't know.)

@thelinuxkid

This comment has been minimized.

Collaborator

thelinuxkid commented Dec 8, 2015

@pguth works for me in Ubuntu 15.10. Have you tried sudo ./install-ipfs.sh or sudo ./install-ipfs master since the first time? The only other thing I can think of is a network issue.

@perguth

This comment has been minimized.

Contributor

perguth commented Dec 9, 2015

@thelinuxkid strange enough, both work now. This End-of-central-directory signature not found. error shows up as soon as there is no zip file to be found, eg. with sudo ./install-ipfs blubb. Maybe we can catch that case in a nicer way?

@thelinuxkid

This comment has been minimized.

Collaborator

thelinuxkid commented Dec 10, 2015

I am glad it's working. Hmm... The error is pretty explicit. It will be easy for people to Google and find the problem directly if they haven't seen it before. I think a catch-all error for zip would only add a layer of abstraction and obscurity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.