Upgrade grafana from 9.1 to 10.2

  • What Grafana version and what operating system are you using
    => 9.1.1

  • What are you trying to achieve
    => Upgrade to 10.2.3

  • How are you trying to achieve it
    => add in a file “grafana.list” in “sources.list.d” the line

deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main

after adding the key at the right place
then apt update
then apt install grafana

  • What happened?
    => Grafana 10.2.3 is innstalled without error :
    running apt install grafana again says :

grafana is already the newest version (10.2.3).

but when going in the grafana web page I get 9.1.1 for the version.

the folowing command confirm it

sudo /usr/sbin/grafana-server -v
Version 9.1.1 (commit: 9e60a1bff1, branch: HEAD)

  • What did you expect to happen?
    => to be on 10.2.3

Any idea of the problem?

Ok found the problems (If some one days has the same…)
I have 2 grafana-server binary :
The first one in /usr/sbin
The second one in /usr/share/grafana/bin

I try first to launch the new one (the one in /usr/share) but it does not works…
I the launch an apt remove grafana and found that I had also a grafana-enterprise…

It was maybe due to this double install… (but I did not remenbre to install the entreprise one!)

After that a apt install grafana and I get a new grafana 10.2 almost working
=> almost because there where some change related to ldap / keycloak connexion to solve