Grafana v7.5.17 missing in OSS Debian repo

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

  • Did you follow any online instructions? If so, what is the URL?
    Install on Debian or Ubuntu | Grafana documentation

Hello @ddamw . Welcome to :grafana: community forum

These are my repro steps

  1. Download grafana version 7.5.15 following the install steps at https://grafana.com/grafana/download/7.5.15?edition=oss

     sudo apt-get install -y adduser libfontconfig1
     
     wget[ https://dl.grafana.com/oss/release/grafana_7.5.17_amd64.deb](https://dl.grafana.com/oss/release/grafana_7.5.17_amd64.deb)
     
     sudo dpkg -i grafana_7.5.17_amd64.deb
    
  2. Start the server with systemd and verify that the service has started:

     sudo systemctl daemon-reload
     
     sudo systemctl start grafana-server
     
     sudo systemctl status grafana-server
    

    Successfully installed 7.5.15

  3. Upgrade from 7.5.15 to 7.5.17:

sudo apt-get install -y adduser libfontconfig1

wget[ https://dl.grafana.com/oss/release/grafana_7.5.17_amd64.deb](https://dl.grafana.com/oss/release/grafana_7.5.17_amd64.deb)

sudo dpkg -i grafana_7.5.17_amd64.deb

![|183x99](https://lh4.googleusercontent.com/_SQLu_39IH_LStUP4rRbEwZuxNaHBMhUXqlqoQ9ExZf6-YV9K0rZ8Vvf6srTBRqQha8X3RGht6nIsVhKKdXd7PBae2RedmraOgBsE5Nz5zg_2w20T8I8iO_Fl-YquT0VevxioCbJyvpN03flqoTgCD8ce8pXi4Dyirb-rmvCclXo6Ovp6WUGHdT7OT8byA)

Upgrade details in terminal:

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?

Hello @antonio, thank you for your reply.

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.

The Grafana team provides an apt repository as described in: Install on Debian or Ubuntu | Grafana documentation

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?

Welcome @superporter2001

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

1 Like