FIXED: apt-get update mosquitto keyexpired error

Tags: #<Tag:0x00007f6e043f2ce8>

While running sudo apt-get update on the latest emonPi image to update the raspbian packages I got error:

Fetched 9,960 kB in 30s (324 kB/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: jessie InRelease: The following signatures were invalid: KEYEXPIRED 1515017477 KEYEXPIRED 1515017477 KEYEXPIRED 1515017477

W: Failed to fetch  

W: Some index files failed to download. They have been ignored, or old ones used instead.

This can be fixed by updating the key from Mosquitto like this:

sudo apt-key add mosquitto-repo.gpg.key
1 Like

Thank you for that very useful solution to this problem!

1 Like