Reputation: 11
I am trying to install the influxDB ,what I just do is:
wget https://dl.influxdata.com/influxdb/releases/influxdb-1.0.2.x86_64.rpm
yum localinstall influxdb-1.0.2.x86_64.rpm
I got an error just like this:
Cannot open: influxdb-1.0.2.x86_64.rpm. Skipping.
Nothing to do
So how to solve it.
Upvotes: 1
Views: 8275
Reputation: 20907
After you download the rpm, use the file
command to determine if you have actually downloaded an RPM. It will report that it is an RPM file. This is a good sign.
$ curl -O http://bamboo.mycompany.com/something/something/foobar-0.7.39-7.9.x86_75.rpm
$ file foobar*.rpm
foobar-0.7.39-7.9.x86_64-driver.rpm: RPM v3.0 bin i386/x86_64 foobar-driver-0.7.39-7.9
If you find out that the file
command reports that it is an HTML file, you probably used curl
or wget
to download the file, and you may have encountered an error during the download, and that "rpm" file you see is actually an HTML document. Look at the HTML document directly with less
or open it up in a browser to see what the error was. You had an error in the download, and unfortunately curl and wget don't tell you they had an error or encountered a 404 or similar.
$ curl -O http://bamboo.mycompany.com/something/something/foobar-0.7.39-7.9.x86_75.rpm
$ file foobar*.rpm
foobar-0.7.39-7.9.x86_64-development.rpm: HTML document, ASCII text, with CRLF line terminators
In my case, the "foobar*.rpm" file was actually a HTML rendered as a Atlassian Bamboo login page, because the admins didn't allow anonymous downloads of the URL. Sometimes the HTML is not readable without using a browser.
Upvotes: 0
Reputation: 11
I fixed this problem by:
wget http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/x86_64/RPMS.classic/influxdb-1.8.5-alt1.x86_64.rpm
as it shows that influxdb-1.0.2.x86_64.rpm
is a corrupt so I try to install another version,it is useful.
Upvotes: 0