New elastic search debian package error

sudo apt-get install openjdk-8-jre
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.0.1.deb
sudo dpkg -i elasticsearch-5.0.1.deb

when i try to install it , it gives me this error

dpkg-deb: error: 'elasticsearch-5.0.1.deb' is not a debian format archive
dpkg: error processing archive elasticsearch-5.0.1.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 elasticsearch-5.0.1.deb

Whats wrong?

Note

du -h elasticsearch-5.0.1.deb

output:

4.0K elasticsearch-5.0.1.deb

(I dont like that size , it may be corrupted)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.