- What Grafana version and what operating system are you using?
Ubuntu 20-04, freshly installed
- What are you trying to achieve?
install grafana
- How are you trying to achieve it?
following the documentation (Install Grafana on Debian or Ubuntu | Grafana documentation)
grafana package cannot be found
# apt install grafana
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package grafana is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'grafana' has no installation candidate
deb [signed-by=/usr/local/share/keyrings/grafana.key] https://apt.grafana.com stable main
- What did you expect to happen?
grafana to be installed
Regards
Mathias
1 Like
Hey @raddirad
Your repository looks weird… It should be:
deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main
On /etc/apt/sources.list.d/grafana.list
.
Are you sure you correctly followed the documentation you provide?
Can you share a history
command?
Regards
hey @codi639
Yes the key location differs from the one in the manual. This shouldn’t be the issue. We use a different location for keys in our systems.
It worked until yesterday on debian/ubuntu systems.
WHen uninstalling grafana from a system that already had it, i get the same error as in my OP. Package cannot be found
Searching for grafana I get
# apt search grafana
Sorting... Done
Full Text Search... Done
grafana-agent/stable 0.40.3-1 amd64
no description given
grafana-agent-flow/stable 0.40.3-1 amd64
no description given
grafana-enterprise-nightly/stable 11.1.0-69174 amd64
"Grafana Enterprise"
grafana-nightly/stable 11.1.0-171443 amd64
Grafana
RPM systems install grafana just fine, as expected.
1 Like
Seems the apt repository is missing the grafana
package, it has:
$curl -Ss https://apt.grafana.com/dists/stable/main/binary-amd64/Packages | grep Packa | uniq -c
1 Package: alloy
68 Package: grafana-agent
29 Package: grafana-agent-flow
1 Package: grafana-enterprise-nightly
1 Package: grafana-nightly
30 Package: logcli
27 Package: loki
27 Package: loki-canary
16 Package: metaconvert
24 Package: mimir
17 Package: mimir-continuous-test
17 Package: mimirtool
27 Package: promtail
36 Package: pyroscope
17 Package: query-tee
34 Package: synthetic-monitoring-agent
14 Package: tempo
2 Likes
I have the same issue. There are no grafana packages in the apt repository.
OS: Ubuntu 20.04.6 LTS
cat /etc/apt/sources.list.d/grafana.list
deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main
gpg --dry-run --quiet --import --import-options import-show /etc/apt/keyrings/grafana.gpg
gpg: keyblock resource ‘/root/.gnupg/pubring.kbx’: No such file or directory
pub rsa3072 2023-08-24 [SC] [expires: 2025-08-23]
B53AE77BADB630A683046005963FA27710458545
uid Grafana Labs engineering@grafana.com
sub rsa3072 2023-08-24 [E] [expires: 2025-08-23]
apt search grafana
Sorting… Done
Full Text Search… Done
grafana/now 10.3.3 amd64 [installed,local]
Grafana
grafana-agent/stable 0.40.3-1 amd64
no description given
grafana-agent-flow/stable 0.40.3-1 amd64
no description given
grafana-enterprise-nightly/stable 11.1.0-69174 amd64
“Grafana Enterprise”
grafana-nightly/stable 11.1.0-171443 amd64
Grafana
loki-canary/stable 3.0.0 amd64
Loki Canary is a standalone app that audits the log-capturing performance of a Grafana Loki cluster.
metaconvert/stable 2.12.0 amd64
Grafana Metaconvert converts Cortex meta.json files to be on the Grafana Mimir format.
mimir/stable 2.12.0 amd64
Grafana Mimir provides horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus.
mimir-continuous-test/stable 2.12.0 amd64
As a developer, you can use the standalone mimir-continuous-test tool to run smoke tests on live Grafana Mimir clusters. This tool identifies a class of bugs that could be difficult to spot during development.
mimirtool/stable 2.12.0 amd64
Mimirtool is a command-line tool that operators and tenants can use to execute a number of common tasks that involve Grafana Mimir or Grafana Cloud Metrics.
netdata/focal 1.19.0-3ubuntu1 all
real-time performance monitoring (metapackage)
promtail/stable 3.0.0 amd64
Promtail is an agent which ships the contents of local logs to a private Grafana Loki instance or Grafana Cloud.
query-tee/stable 2.12.0 amd64
The query-tee is a standalone tool that you can use for testing purposes when comparing the query results and performances of two Grafana Mimir clusters. The two Mimir clusters compared by the query-tee must ingest the same series and samples.
tempo/stable 2.4.1 amd64
Grafana Tempo is an open source, easy-to-use, and high-scale distributed tracing backend.
This has been working for a long time, but our CI/CD just broke on this issue. Yesterday it was saying the grafana package couldn’t be found, today I see:
#9 6.321 Package grafana is not available, but is referred to by another package.
#9 6.321 This may mean that the package is missing, has been obsoleted, or
#9 6.321 is only available from another source
#9 6.321
#9 6.324 E: Package 'grafana' has no installation candidate
1 Like
FYI - This appears to have been fixed. Everything is working again.
I can confirm, the issue is resolved. Packages are installed as usual again