I have used influxDB v1.6.4 on my RPI 3B+ with Debian buster until now, because it was easy to install with.
sudo apt-get install influxdb
sudo apt install influxdb-client
it works perfectly for me!
But now I have a small issue, I want to drop some fields in a measurement, and the way to do that would be with function drop(). Only this function is only available as from version 1.7 or higher. So I would like to upgrade from version 1.6.4 to version 1.8.10, which seems to be a stable version.
I uninstalled present influxDB with
sudo apt-get purge --auto-remove influxdb
But then I noticed that shell was still present when I put in
$ influx -version
InfluxDB shell version: 1.6.4
I thought, I just go ahead and install version 1.8.10 with following commands
# install influx sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y curl https://repos.influxdata.com/influxdb.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdb-archive-keyring.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/influxdb-archive-keyring.gpg] https://repos.influxdata.com/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list sudo apt update && sudo apt install influxdb -y sudo systemctl unmask influxdb sudo systemctl enable influxdb sudo systemctl start influxdb sudo systemctl status influxdb
see this post:
But I didn't succeed in that I got still conflicts with version 1.6.4, see output
$ sudo apt-get install influxdb -y
Package lists are being read... Done
Tree of requirements is being built
Status information is being read... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
0 B/50.7 MB of archives must be retrieved.
After this operation, an additional 135 MB of disk space will be used.
(Reading database ... 164830 files and directories currently installed.)
Preparing to extract .../influxdb_1.8.10-1_armhf.deb...
Extracting influxdb (1.8.10-1) ...
dpkg: Error processing archive /var/cache/apt/archives/influxdb_1.8.10-1_armhf.deb (--unpack):
attempted overwrite of '/usr/bin/influx', which is also in package influxdb-client 1.6.4-1+deb10u1
dpkg-deb: Error: Paste subprocess was killed by signal (Broken pipe)
Errors found while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Has anyone any idea how to solve this problem?