Upgrade of Grafana on Raspi failed... several workaround found in forums did not help

Hi there,
sorry, long post, but it is probably necessary that i show the complete history of what i did while i was trying to find my way out of this trouble :smiling_face_with_tear:

I am running Grafana v9.2.4 since a long time.
System is Raspberry PI with GNU Linux 11 (bullseye)
Did not do
sudo apt-get update
sudo apt-get upgrade
for a very long time because everything was running smooth.

Installation of Grafana was done using this instructions:

wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
echo “deb https://packages.grafana.com/oss/deb stable main” | sudo tee -a /etc/apt/sources.list.d/grafana.list
sudo apt-get update
sudo apt-get install -y grafana
sudo /bin/systemctl enable grafana-server
sudo /bin/systemctl start grafana-server

Today, in order to use a new feature introduced in one of the newer versions of Grafana, i did plan to upgrade, using this instruction page:
Upgrade to Grafana v10.1 | Grafana documentation
This page explains that the two commands
sudo apt-get update
sudo apt-get upgrade
should do the job.
At that point i did get a failure:

sudo apt-get update
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
Es wurden 4.586 B in 1 s geholt (3.842 B/s).
Paketlisten werden gelesen… Fertig
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
W: Fehlschlag beim Holen von https://packages.grafana.com/oss/deb/dists/stable/InRelease Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 963FA27710458545
W: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.

After searching i found this information:
Problem with debian repository key - #4 by kienerj
first i did try to repeat the original commands from installation, creating a warning:

wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

then i did try to use the original solution in that thread… also creating errors:
$ mkdir -p /etc/apt/keyrings/
$ wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor > /etc/apt/keyrings/grafana.gpg
$ echo “deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main” | tee /etc/apt/sources.list.d/grafana.list
-bash: $: Kommando nicht gefunden.
-bash: $: Kommando nicht gefunden.
-bash: /etc/apt/keyrings/grafana.gpg: Datei oder Verzeichnis nicht gefunden
-bash: $: Kommando nicht gefunden.
tee: /etc/apt/sources.list.d/grafana.list: Keine Berechtigung

Next command i did send was
echo “deb https://packages.grafana.com/oss/deb stable main” | sudo tee -a /etc/apt/sources.list.d/grafana.list
deb https://packages.grafana.com/oss/deb stable main

After that again sudo apt-get update, which now shows a different response:
Holen:4 https://packages.grafana.com/oss/deb stable InRelease [5.983 B]
Holen:5 https://deb.nodesource.com/node_16.x bullseye InRelease [4.586 B]
Paketlisten werden gelesen… Fertig
E: Für das Depot »https://packages.grafana.com/oss/deb stable InRelease« wurde der »Origin«-Wert von »grafana stable« in ». stable« geändert.
E: Für das Depot »https://packages.grafana.com/oss/deb stable InRelease« wurde der »Label«-Wert von »grafana stable« in ». stable« 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: Ziel Packages (main/binary-armhf/Packages) ist mehrfach konfiguriert in /etc/apt/sources.list.d/grafana.list:1 und /etc/apt/sources.list.d/grafana.list:2
W: Ziel Packages (main/binary-all/Packages) ist mehrfach konfiguriert in /etc/apt/sources.list.d/grafana.list:1 und /etc/apt/sources.list.d/grafana.list:2
W: Ziel Translations (main/i18n/Translation-de_DE) ist mehrfach konfiguriert in /etc/apt/sources.list.d/grafana.list:1 und /etc/apt/sources.list.d/grafana.list:2
W: Ziel Translations (main/i18n/Translation-de) ist mehrfach konfiguriert in /etc/apt/sources.list.d/grafana.list:1 und /etc/apt/sources.list.d/grafana.list:2
W: Ziel Translations (main/i18n/Translation-de_DE.UTF-8) ist mehrfach konfiguriert in /etc/apt/sources.list.d/grafana.list:1 und /etc/apt/sources.list.d/grafana.list:2
W: Ziel Translations (main/i18n/Translation-en) ist mehrfach konfiguriert in /etc/apt/sources.list.d/grafana.list:1 und /etc/apt/sources.list.d/grafana.list:2

Next command was
sudo apt-get upgrade
showing no error any more, but nothing gets installed.

Next trial: Back in the forum thread a little more down, another proposal:
Problem with debian repository key - #7 by overdose263

cd /etc/apt/trusted.gpg.d/
sudo wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/grafana.gpg >/dev/null
echo “deb [signed-by=/etc/apt/trusted.gpg.d/grafana.gpg] https://apt.grafana.com stable main” | sudo tee /etc/apt/sources.list.d/grafana.list
deb [signed-by=/etc/apt/trusted.gpg.d/grafana.gpg] https://apt.grafana.com stable main

This did not show any warning or error, so back to
sudo apt-get update (no warning, no error)
sudo apt-get upgrade, showing again trouble with grafana:
Die folgenden Pakete sind zurückgehalten worden:
grafana
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.

Anybody out there who can help to resolve this trouble?
Grafana old version is still running without problems…

Too bad… no answer here… while i am still struggeling to find may way through the details of apt-get update or upgrade, and finding lot’s of different solutions for different people having similar effects, i managed to get the upgrade of Grafana by using the command

sudo apt full-upgrade

that then did download v 10.1.2, and that is up and running.

Unfortunately it is not the newest release, as there seems to be an issue currently so that the newest releases are not available for 32-bit systems. So i still do not have the version i was looking for. Hope that will be resolved in future.

But i still think i have some things messed up with the data on my raspberry concerning the apt stuff…