Failing to install on Raspberry PI Zero

Hi,

Trying to do a new install on a PI Zero, the installation fails, please se below, any ideas will be appreciated?

Running as root user.

pi@raspberrypi:~ $ sudo apt-get install influxdb
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
influxdb
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/59.1 MB of archives.
After this operation, 151 MB of additional disk space will be used.
Selecting previously unselected package influxdb.
(Reading database … 106175 files and directories currently installed.)
Preparing to unpack …/influxdb_1.8.2-1_armhf.deb …
Unpacking influxdb (1.8.2-1) …
Setting up influxdb (1.8.2-1) …
Synchronizing state of influxdb.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable influxdb
Failed to enable unit: Unit file /etc/systemd/system/influxdb.service is masked.
dpkg: error processing package influxdb (–configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db (2.7.6.1-2) …
Errors were encountered while processing:
influxdb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Hello @Johan_Scheepers,
I’m not sure, however can you please take a look at this reference? Does that help at all? If not I’ll reach out to someone who might have an answer for you.

Hi,

I did the following and it is working, thanks:

wget https://dl.influxdata.com/influxdb/releases/influxdb-1.3.4_linux_armhf.tar.gz

tar xvfz influxdb-1.3.4_linux_armhf.tar.gz

cd /home/pi/influxdb-1.3.4-1

sudo cp -rp usr/* /usr ; sudo cp -rp etc/* /etc ; sudo cp -rp var/* /var

sudo cp /usr/lib/influxdb/scripts/influxdb.service /etc/systemd/system

sudo systemctl enable influxdb

sudo systemctl start influxd

influxd

influx

2 Likes