ssh: "Unable to locate package" error

I’m trying to install TriggerHappy on a Raspberry Pi running Volumi, but I keep running into an “Unable to locate package” error.

sudo apt-get install triggerhappy

“Unable to locate package triggerhappy”

It’s a fresh install of Volumio, but I did enable ssh (by placing a file named ssh in the boot directory).

I’m trying to use a Flirc IR receiver with Volumio (among other things. I also use Flirc & TriggerHappy to send commands to my Philips Hue).

Seriously? Nobody knows?

I can’t be the only one who wants to use triggerhappy. There’s even a thread here with instructions for using triggerhappy.

keyboard-shortcuts-with-triggerhappy-t5250.html

But I can’t use it if I can’t install it.

sudo apt-get install triggerhappy
“Unable to locate package triggerhappy”

You may have to issue

sudo apt-get update

(DONT use apt-get upgrade!!)

I tried:

sudo apt-get update

I got this:

[code]Err http://archive.raspberrypi.org jessie InRelease

Err http://archive.raspbian.org jessie InRelease

Err http://archive.raspberrypi.org jessie Release.gpg
Temporary failure resolving ‘archive.raspberrypi.org
Err http://archive.raspbian.org jessie Release.gpg
Temporary failure resolving ‘archive.raspbian.org
Reading package lists… Done
W: Failed to fetch http://archive.raspbian.org/raspbian/dists/jessie/InRelease

W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/InRelease

W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/Release.gpg Temporary failure resolving ‘archive.raspberrypi.org

W: Failed to fetch http://archive.raspbian.org/raspbian/dists/jessie/Release.gpg Temporary failure resolving ‘archive.raspbian.org

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

And then trying sudo apt-get install triggerhappy fails again, naturally. “Unable to locate package triggerhappy”

I’m working with a fresh image of Volumio. The only thing I’ve changed is that I enabled ssh, other than that, it’s a stock install.

It seems to fail trying to connect to the Raspbian repo.
Wait and try later, once succeeded, retry apt-get update.

There has to be more to it than that.

I can boot off a standard Jessie instal and do a sudo apt-get update. But I get errors if I try it from Volumio.

The plot thickens - but I managed to solve it.

If I install Volumio, I can’t install Triggerhappy. I get the errors I mentioned above.

If I install Volumio and go into the settings, selecting System, and doing a Factory Reset - even though I haven’t changed anything - once Volumio reboots, I can install Triggerhappy.

I’m assuming there’s a bug somewhere, but who knows.