pbraz
January 27, 2019, 5:45am
1
Hi,
I am trying to upgrade from V5.0 to the current version V5.4 on my Raspberry running Debian.
So I run this command
sudo apt-get update
then this
sudo apt-get install grafana
and I successfully upgraded to V5.1.4. Not the current version but a new version.
I then try to run the the following command again
sudo apt-get update
but this time I get this error
Get:7 https://packagecloud.io/grafana/stable/debian jessie InRelease [23.4 kB]
Err:7 https://packagecloud.io/grafana/stable/debian jessie InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40F370A1F9081B64
So I tried this
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 40F370A1F9081B64
and get the following error.
Executing: /tmp/apt-key-gpghome.v4j7teiNJK/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 40F370A1F9081B64
gpg: keyserver receive failed: No data
I have tried a few different versions of this command but same problem and I can’t get any further with the upgrade.
Does anybody have and ideas on how to fix this ?
Thanks
Paul
torkel
January 27, 2019, 10:56am
2
1 Like
pbraz
January 27, 2019, 9:51pm
3
Thanks
I was able to upgrade.
I still get an error as it looks for the old packages. Is there a way to stop this error. I changed the grafana.list file to deb https://packages.grafana.com/oss/deb stable main.
pi@raspberrypi:/etc/apt/sources.list.d $ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Hit:3 https://deb.nodesource.com/node_8.x stretch InRelease
Hit:4 https://repos.influxdata.com/debian jessie InRelease
Hit:6 https://packages.grafana.com/oss/deb stable InRelease
Get:5 https://packagecloud.io/grafana/stable/debian jessie InRelease [23.4 kB]
Err:5 https://packagecloud.io/grafana/stable/debian jessie InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40F370A1F9081B64
Fetched 23.4 kB in 7s (2,971 B/s)
Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packagecloud.io/grafana/stable/debian jessie InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40F370A1F9081B64
W: Failed to fetch https://packagecloud.io/grafana/stable/debian/dists/jessie/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40F370A1F9081B64
W: Some index files failed to download. They have been ignored, or old ones used instead.
pbraz
January 27, 2019, 11:00pm
4
Solved. Had to edit sources.list to remove link to old repository. Not sure why it was there but api-get update works without error now.
pi@raspberrypi:/etc/apt $ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Hit:3 https://repos.influxdata.com/debian jessie InRelease
Hit:4 https://deb.nodesource.com/node_8.x stretch InRelease
Hit:5 https://packages.grafana.com/oss/deb stable InRelease
Reading package lists… Done
Could you please show how to edit the source list?
I am using debian 9 on a laptop, notraspi. But I cannot find how to do it.
Thanx.
1 Like