I tried to upgrade Grafana OSS from v7.5.15 to v7.5.17 on a host running Debian Buster. This did not succeed; instead, v7.5.16 was offered as latest version of the 7.5 branch. While listing the available versions (apt-cache policy grafana) it showed that v7.5.17 is missing from the list.
Alternatively, downloading from the website (Download Grafana | Grafana Labs) and installing by hand does work. However, for our environment, installation using apt is preferred.
Is it possible to generate a new list of packages that includes v7.5.17 OSS?
What Grafana version and what operating system are you using?
7.5.17 OSS on Debian Buster (x86_64)
What are you trying to achieve?
Upgrade from 7.5.15 to 7.5.17
How are you trying to achieve it?
Debian package update through apt (e.g.: apt update && apt upgrade)
What happened?
v7.5.16 was installed instead of v7.5.17
What did you expect to happen?
Upgrade to v7.5.17.
Can you copy/paste the configuration(s) that you are having problems with?
This issue is not really related to any configuration of Grafana.
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No errors encountered
root@debian-buster:~# wget https://dl.grafana.com/oss/release/grafana_7.5.17_amd64.deb
--2022-11-04 14:39:44-- https://dl.grafana.com/oss/release/grafana_7.5.17_amd64.deb
Resolving dl.grafana.com (dl.grafana.com)... 151.101.134.217, 2a04:4e42:1f::729
Connecting to dl.grafana.com (dl.grafana.com)|151.101.134.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52362892 (50M) [application/vnd.debian.binary-package]
Saving to: ‘grafana_7.5.17_amd64.deb’
grafana_7.5.17_amd6 100%[===================>] 49.94M 7.69MB/s in 6.6s
2022-11-04 14:39:54 (7.55 MB/s) - ‘grafana_7.5.17_amd64.deb’ saved [52362892/52362892]
root@debian-buster:~# sudo dpkg -i grafana_7.5.17_amd64.deb
(Reading database ... 140576 files and directories currently installed.)
Preparing to unpack grafana_7.5.17_amd64.deb ...
Unpacking grafana (7.5.17) over (7.5.15) ...
Setting up grafana (7.5.17) ...
Restarting grafana-server service... OK
Processing triggers for systemd (241-7~deb10u8) ...
root@debian-buster:~#
For me it is working but I am not sure I fully understood the method you used (apt-cache) to search for package versions. Perhaps the apt-cache on your side is not up to date?. Could you please make sure to clean it and refresh it, and let me know?
The steps you describe work and can be used for installation on Debian (and Ubuntu). I will use these for now.
However, if possible I would like to use the Debian apt command for installation and upgrade, which combines all these steps and some conveniences such as adds verification and caching in one tool and is the preferred way of installing packages in Debian. Some external tools, such as Chef’s grafana_install (grafana/grafana_install.md at main · sous-chefs/grafana · GitHub) also rely on the OS packaging system and we would like to use this to manage our Grafana installation.
For this to work, the package needs to be listed in the repository packages file. It seems that version 7.5.17 is missing in this file. Running apt update and then apt upgrade will upgrade 7.5.* to 7.5.16. To verify which packages are provided, apt-cache policy grafana can be used. This will also list 7.5.16 as the latest version in the 7.5 branch.
Again, this is mostly a matter of convenience, as downloading and installing using dpkg will also work. I also realize that the topic title may be misleading, as the package is available for download.
I apologize for any confusion that this may have caused.
@ddamw That is all right, and thank you for bringing the issue to our attention once again. However, at the moment only v.8 and v.9 series are supported. That said, if there were any missing repository packages in the supported series, you could open a new issue on GitHub. As for v 7.5.17 you would need to follow the installation steps shared earlier, if using the Debian apt command for installation.
Hi @antonio,
Do you have any documents that can help me to build Grafana v7.5.17 to deb file?
I can build the source code, but I can’t find any way to build debian package.
Could you provide some information if you know?
According to my team, we don’t have a guide to build Grafana debian packages.
What we have is documentation regarding downloading and using debian packages