Sense-Hat on Osmc

Hi there!
I’m currently running osmc v2017.10-1 on a raspberry pi 3 B and I’m having trouble installing sense-hat on it.
I followed this guide from 2015 Sense Hat how to but it still produces the same error message:

Unable to locate package python3-sense-hat
Unable to locate package python-sense-hat
Unable to locate package sense-hat

with the following /etc/apt/sources.list

deb http://ftp.debian.org/debian stretch main contrib non-free

deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free

deb http://apt.osmc.tv stretch main

deb http://archive.raspberrypi.org/debian jessie main

deb http://apt.osmc.tv/ jessie main

deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi

Additionally, these are the messages produced by sudo apt-get update

Err:7 http://mirrordirector.raspbian.org/raspbian jessie InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E
Err:10 http://archive.raspberrypi.org/debian jessie InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E
Reading package lists... Done
W: GPG error: http://mirrordirector.raspbian.org/raspbian jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E
E: The repository 'http://mirrordirector.raspbian.org/raspbian jessie InRelease' is not signed.
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.
W: GPG error: http://archive.raspberrypi.org/debian jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E
E: The repository 'http://archive.raspberrypi.org/debian jessie InRelease' is not signed.
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.

Can someone help me out here? :slight_smile:

Thanks in advance!

It doesn’t look like the sense-hat developers have updated to stretch, or if they did, the package names changed. You should contact them for help.

After actually reading the error messages produced by sudo apt-get update:
I figured out that I had to manually add the keys with the following commands:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9165938D90FDDD2E
and
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 82B129927FA3303E

Now I was able to install python3-sense-hat :slight_smile:

3 Likes

Cool!