> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.ggcircuit.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Grafana 仓库问题(2025版本)

### 发生了什么？

* 存储库的密钥（指纹 `B53AE77BADB630A683046005963FA27710458545`）在 **2025‑08‑23** 过期。
* 此过期的密钥导致 InRelease 文件签名无效，从而导致你看到的 `EXPKEYSIG` 错误。
* 这不是本地问题——Grafana 服务器上的密钥需要替换 - [https://apt.grafana.com/](https://apt.grafana.com/)。

Grafana 已经轮换并扩展了密钥，所以你只需要在你的系统上刷新它：

```
# Remove old expired Grafana key (if present)
sudo apt-key del B53AE77BADB630A683046005963FA27710458545 2>/dev/null || true
sudo apt-key del 4E40DDF6D76E284A4A6780E48C8C34C524098CB6 2>/dev/null || true
sudo apt-key del 0E22EB88E39E12277A7760AE9E439B102CF3C0C6 2>/dev/null || true
# Create keyring directory
sudo mkdir -p /etc/apt/keyrings/
# Download and install the refreshed Grafana key
wget -q -O - [https://apt.grafana.com/gpg.key](https://apt.grafana.com/gpg.key) | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null
# Update Grafana repo definition to use new keyring
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] [https://apt.grafana.com](https://apt.grafana.com) stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
# Refresh package lists
sudo apt-get update
# Upgrade Grafana (and other packages if available)
sudo apt-get upgrade
```

这将会：

* 清除任何**旧的/过期的密钥**。
* 导入**新的扩展密钥**。
* 确保你的 Grafana 存储库今后使用 `/etc/apt/keyrings/grafana.gpg`。

---

### ✅ 为什么这有效

* 错误是由于你的系统仍然缓存了**旧的 Grafana 密钥**，该密钥在 **2025-08-23** 过期。
* 在 **2025-08-22**，Grafana 将新密钥（`B53AE77BADB630A683046005963FA27710458545`）延期了两年。
* 通过重新导入它，你告诉 `apt` 信任更新的密钥，签名验证将再次通过。