Failed to install Grafana


I have problems with installing Grafana and InfluxDB.
I tried to install with the openhabian config tool. But got an error.

With the video I tried to install it manually, but also I’m not able to solve the problem.

It seems that installing Grafana is the problem. InfluxDB is running but on installing Grafana I get this error:

Vorbereitung zum Entpacken von .../grafana_6.7.3_armhf.deb ...
Entpacken von grafana (6.7.3) ...
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/grafana_6.7.3_armhf.deb (--unpack):
 Versuch, »/usr/share/grafana/conf/defaults.ini« zu überschreiben, welches auch in Paket grafana-data 2.6.0+dfsg-3 ist
dpkg-deb: Fehler: »einfügen«-Unterprozess wurde durch Signal (Datenübergabe unterbrochen (broken pipe)) getötet

I found no topic for this problem, has someone a solution for this problem?
Thanks for your help.

same problem here. Any suggestions?

I found it.
File could not be overwritten because it belongs to a different package (grafana-data 2.6.0+dfsg-3)
you must first delete this package with

sudo apt-get purge grafana-data

Then you can install grafana with:

sudo apt-get update
sudo apt-get install grafana

1 Like

Thanks, that worked for me too!

But then I had the problem, that grafana doesn’t start automatically after reboot.

Thanks to this Post
now everything works fine.