Problem updating Grafana in a Debian 9

Updating a Debian 9 I get this error with the «grafana» update:

$ apt update
Ign:7 stretch InRelease
Err:9 stretch Release
404 Not Found
Reading package lists... Done
E: The repository ' stretch Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

To solve this problem you can follow the next steps.

First, install the «software-properties-common» library:

$ sudo apt-get install -y software-properties-common

Install the repository for stable releases:

$ sudo add-apt-repository "deb stable main"

Add the gpg key:

$ sudo wget -q -O - | apt-key add -

Remove the old repository file:

$ sudo rm /etc/apt/sources.list.d/grafana_stable.list

Now you can update the repo correctly:

$ sudo apt update

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.