Debian official repository for influxdb2

Hello,
I see that the official package in Debian repository is still 1.6.7 (Debian -- Details of package influxdb in sid), while we’re now at 2.1.1. I see a closed issue about this in Github: InfluxDB 2.0 and Debian · Issue #10638 · influxdata/influxdb · GitHub

Is there a reason for this? Is there some incompatibility? Or is it just the lack of time (what I would definitely understand obviously).

Thanks for your support!

Hello @biva,
I believe it’s just lack of time. @mhall119 do you know?

Hi Biva,

The package in the default Debian repository isn’t actually provided or maintained by InfluxData. It’s built by the Debian Go Maintainers team using the source code in our Git repository. It’s up to them to update it to the latest version (and to provide a new package for influxdb2).

Unfortunately they use an entirely different build system than we do, so it’s not just a matter of them cloning our Git repo and building their own packages. They will need to update their build configurations to get the latest version of InfluxDB’s source code and any dependencies. It’s likely they they simply don’t have the time or know of the demand for them to provide an updated version.

InfluxData does support Debian user directly, by hosting our own APT repository and publishing updated packages there as part of our regular release process. You can add our repository and install InfluxDB from there using the following commands:

wget -qO- https://repos.influxdata.com/influxdb.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdb.gpg > /dev/null
export DISTRIB_ID=$(lsb_release -si); export DISTRIB_CODENAME=$(lsb_release -sc)
echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list > /dev/null

sudo apt-get update && sudo apt-get install influxdb2

If you’re not familiar with these commands they will:

  1. Download InfluxData’s GPG key, which we use to cryptographically sign all of our packages, so that apt can verify them
  2. Add the InfluxData APT repository to your list of repositories that Debian will check for new packages
  3. Install the latest version of the influxdb2 package. In keeping with Debian’s practices we use a different package name for version 2 because it is a significant change from version 1.
1 Like

Wow, thank you so much @Anaisdg for your reactivity and @mhall119 for your quick and complete answer. You not only have great software but also great community support :heart_eyes_cat:

I fully understand the situation, and I followed the instructions to use your repository for Debian, which works like a charm.

If I may give you feedback on the documentation, the installation explanation for the previous versions (for example Installing InfluxDB OSS | InfluxDB OSS 1.7 Documentation) was clearer for me, because we could directly see that using the repo was possible. In the doc for 2.1 (Install InfluxDB | InfluxDB OSS 2.1 Documentation), I first understood that it wasn’t possible anymore, and that I had to download the .deb file (I read “Download and install the appropriate .deb or .rpm file”). And I discovered afterwards the repository, clicking on the InfluxData downloads page link (and which corresponds to your explanation :point_up: ).

Again, thank you so much for your support and explanation :slight_smile:

And if you’re interested, I’m using (and try to contribute to) the YunoHost project (“Y U No Host”), which makes self-hosting easy. It includes a lot of applications, notably Grafana/InfluxDB.

l’m trying to update the app so that it uses v2 and your repositories in there (forum post and Github PR). If you’re interested, you’re more than welcome! :wink:

(sorry for the multiple posts, but as a new user, I’m limited to 2 links per post :frowning: )

1 Like

Unfortunately the repo keys are still messed up, i had this issue both on debian and ubuntu

root@apu-sviluppo:/home/ipergola# apt-get update && apt-get install influxdb2
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://ftp.it.debian.org/debian bullseye InRelease
Hit:3 http://ftp.it.debian.org/debian bullseye-updates InRelease
Get:4 https://repos.influxdata.com/debian bullseye InRelease [7,022 B]
Err:4 https://repos.influxdata.com/debian bullseye InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
Reading package lists... Done
W: GPG error: https://repos.influxdata.com/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
E: The repository 'https://repos.influxdata.com/debian bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Tryed this

Executing: /tmp/apt-key-gpghome.gAJ0YBuxGD/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys D8FF8E1F7DF8B07E
gpg: key D8FF8E1F7DF8B07E: public key "InfluxData Package Signing Key <support@influxdata.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

But don’t solve the problem, i’m able to install only from the deb binary.

Hello, I have tried to propose an update of the documentation, like it was on previous v1 documentation so that v2 can be installed from the repository, as suggested by @mhall119

Dear Dario,
indeed, the gpg key from @mhall119 is no more valid but there’s the solution on: https://repos.influxdata.com

In case,
if you have already done what @mhall119 suggested, you first need to delete the files you have created:

sudo rm /etc/apt/sources.list.d/influxdb.list
sudo rm /etc/apt/trusted.gpg.d/influxdb.gpg

Then, follow the Debian procedure from https://repos.influxdata.com:

wget -q https://repos.influxdata.com/influxdata-archive_compat.key
  echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
  echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list

Cheers,

Hi,

I have just tried this install but if fails with

‘’’
Reading package lists… Error!
E: Unable to parse package file /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-armhf_Packages (1)
W: You may want to run apt-get update to correct these problems
E: The package cache file is corrupted
‘’’

Any ideas please?