Updating/upgrading telegraf 1.16.2 to the latest version on Raspberry Pi

Hello to all

I tried without success to update my old telegram version 1.16.2-
I followed the instructions here:
InfluxData Downloads
… and selected the Platform : Ubuntu & Debian !
Is something wrong with that, because it doesn’t work.

pi@raspberrypi:~ $ wget -q https://repos.influxdata.com/influxdata-archive_compat.key
pi@raspberrypi:~ $
pi@raspberrypi:~ $ 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
influxdata-archive_compat.key: OK
pi@raspberrypi:~ $
pi@raspberrypi:~ $ echo ‘deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] InfluxData - Package Repository stable main’ | sudo tee /etc/apt/sources.list.d/influxdata.list
deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] InfluxData - Package Repository stable main
pi@raspberrypi:~ $
pi@raspberrypi:~ $
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo apt-get update && sudo apt-get install telegraf
Holen:1 Index of /debian buster InRelease [32.6 kB]
OK:2 InfluxData - Package Repository stable InRelease
OK:3 InfluxData - Package Repository buster InRelease
Holen:4 https://packages.grafana.com/oss/deb stable InRelease [5’983 B]
Holen:5 Index of /raspbian buster InRelease [15.0 kB]
Fehl:4 https://packages.grafana.com/oss/deb stable InRelease
Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 963FA27710458545
Paketlisten werden gelesen… Fertig
E: Für das Depot »Index of /debian buster InRelease« wurde der »Suite«-Wert von »testing« in »oldoldstable« geändert.
N: Sie müssen dies explizit bestätigen, bevor Aktualisierungen von diesem Depot angewendet werden können. Lesen Sie die apt-secure(8)-Handbuchseite, wenn Sie weitere Informationen benötigen.
W: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: https://packages.grafana.com/oss/deb stable InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 963FA27710458545
E: Für das Depot »Index of /raspbian buster InRelease« wurde der »Suite«-Wert von »stable« in »oldoldstable« geändert.
N: Sie müssen dies explizit bestätigen, bevor Aktualisierungen von diesem Depot angewendet werden können. Lesen Sie die apt-secure(8)-Handbuchseite, wenn Sie weitere Informationen benötigen.
pi@raspberrypi:~ $

Best regards
Toni

Hello,

Can you please share your /etc/apt/sources.list?

Also, can you run:

sha256sum influxdata-archive_compat.key

and verify if the checksum of the file you downloaded is the same as the one you provide on your echo command?

Hello codi640, and thanks

sources.list contains:
“deb Index of /raspbian buster main contrib non-free rpi”
“# Uncomment line below then ‘apt-get update’ to enable ‘apt-get source’”
#deb-src Index of /raspbian buster main contrib non-free rpi”

pi@raspberrypi:~ $ sha256sum influxdata-archive_compat.key
393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key

Best regards
Toni

Hey,

Not a pro with RasberryPi, but:
Try to modify (or add) the line:

deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

to your sources.list file.

Since you have a NO_PUBKEY error (for Grafana…) you can also try:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 963FA27710458545
apt-get update --allow-releaseinfo-change
apt-get install telegraf

If this don’t works, I’ll not be able to help you more :grimacing:

Regards

Hello codi640

Many thanks.
I followed your advice, and now i have telegraf 1.29.5 installed on my Pi.

Many Thanks again
Toni

pi@raspberrypi:/etc/telegraf $ telegraf
2024-03-08T14:45:54Z I! Loading config: /etc/telegraf/telegraf.conf
2024-03-08T14:45:54Z W! DeprecationWarning: Option “fielddrop” of plugin “inputs.mqtt_consumer” deprecated since version 1.29.0 and will be removed in 2.0.0: use ‘fieldexclude’ instead
2024-03-08T14:45:54Z I! Starting Telegraf 1.29.5 brought to you by InfluxData the makers of InfluxDB
2024-03-08T14:45:54Z I! Available plugins: 241 inputs, 9 aggregators, 30 processors, 24 parsers, 60 outputs, 6 secret-stores
2024-03-08T14:45:54Z I! Loaded inputs: mqtt_consumer (2x)
2024-03-08T14:45:54Z I! Loaded aggregators: final
2024-03-08T14:45:54Z I! Loaded processors:
2024-03-08T14:45:54Z I! Loaded secretstores:
2024-03-08T14:45:54Z I! Loaded outputs: influxdb (4x)
2024-03-08T14:45:54Z I! Tags enabled: host=raspberrypi
2024-03-08T14:45:54Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“raspberrypi”, Flush Interval:10s
2024-03-08T14:45:54Z D! [agent] Initializing plugins
2024-03-08T14:45:54Z D! [agent] Connecting outputs
2024-03-08T14:45:54Z D! [agent] Attempting connection to [outputs.influxdb]
2024-03-08T14:45:54Z D! [agent] Successfully connected to outputs.influxdb
2024-03-08T14:45:54Z D! [agent] Attempting connection to [outputs.influxdb]
2024-03-08T14:45:54Z D! [agent] Successfully connected to outputs.influxdb
2024-03-08T14:45:54Z D! [agent] Attempting connection to [outputs.influxdb]
2024-03-08T14:45:54Z D! [agent] Successfully connected to outputs.influxdb
2024-03-08T14:45:54Z D! [agent] Attempting connection to [outputs.influxdb]
2024-03-08T14:45:54Z D! [agent] Successfully connected to outputs.influxdb
2024-03-08T14:45:54Z D! [agent] Starting service inputs
2024-03-08T14:45:54Z I! [inputs.mqtt_consumer] Connected [tcp://raspberrypi:1883]
2024-03-08T14:45:54Z I! [inputs.mqtt_consumer] Connected [tcp://raspberrypi:1883]
2024-03-08T14:45:54Z D! [aggregators.final] Updated aggregation range [2024-03-08 15:45:30 +0100 CET, 2024-03-08 15:46:00 +0100 CET]
2024-03-08T14:46:00Z D! [aggregators.final] Updated aggregation range [2024-03-08 15:46:00 +0100 CET, 2024-03-08 15:46:30 +0100 CET]

1 Like