phaze3131
(travis klein)
October 13, 2015, 11:05pm
1
Hey guys, I’m trying to an install of openhab with apt-get but I get this problem:
I’m running Raspbian Wheezy on my Rpi2, and connecting to my pi via putty.
pi@raspberrypi ~ $ sudo apt-get install openhab-runtime
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package openhab-runtime
I did sudo apt-get update previous to trying to install openhab.
I did some searching around but couldn’t find what could be the cause of this.
Thanks for any help
Travis
rlkoshak
(Rich Koshak)
October 14, 2015, 12:45am
2
First this first. Did you add the openHAB repository and certs to your apt-get as described here?
sirrico
(Michael)
March 5, 2016, 1:40am
3
I am getting the same error. I have run the same procedure as shown in the https://github.com/openhab/openhab/wiki/Linux---OS-X#apt-get link. When I run this, I get the following log.
pi@raspberrypi:~ $ java -version
java version "1.8.0_65"
Java™ SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot™ Client VM (build 25.65-b01, mixed mode)
pi@raspberrypi:~ $ wget -qO - `https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | sudo apt-key add -
OK
pi@raspberrypi:~ $ echo “deb 'http://dl.bintray.com/openhab/aft-repo stable main” | sudo tee /etc/apt/sources.list.d/openhab.list
deb 'http://dl.bintray.com/openhab/aft-repo stable main
pi@raspberrypi:~ $ sudo apt-get update
Ign 'http://dl.bintray.com stable InRelease
Ign 'http://dl.bintray.com stable Release.gpg
Ign 'http://dl.bintray.com stable Release
Hit 'http://archive.raspberrypi.org jessie InRelease
Hit 'http://mirrordirector.raspbian.org jessie InRelease
Hit 'http://archive.raspberrypi.org jessie/staging armhf Packages
Err 'http://dl.bintray.com stable/main armhf Packages
404 Not Found [IP: 108.168.243.150 80]
Ign 'http://dl.bintray.com stable/main Translation-en_US
Ign 'http://dl.bintray.com stable/main Translation-en
Hit 'http://archive.raspberrypi.org jessie/main armhf Packages
Hit 'http://archive.raspberrypi.org jessie/ui armhf Packages
Hit 'http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit 'http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit 'http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit 'http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign 'http://archive.raspberrypi.org jessie/main Translation-en_US
Ign 'http://archive.raspberrypi.org jessie/main Translation-en
Ign 'http://archive.raspberrypi.org jessie/staging Translation-en_US
Ign 'http://archive.raspberrypi.org jessie/staging Translation-en
Ign 'http://archive.raspberrypi.org jessie/ui Translation-en_US
Ign 'http://archive.raspberrypi.org jessie/ui Translation-en
Ign 'http://mirrordirector.raspbian.org jessie/contrib Translation-en_US
Ign 'http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign 'http://mirrordirector.raspbian.org jessie/main Translation-en_US
Ign 'http://mirrordirector.raspbian.org jessie/main Translation-en
Ign 'http://mirrordirector.raspbian.org jessie/non-free Translation-en_US
Ign 'http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign 'http://mirrordirector.raspbian.org jessie/rpi Translation-en_US
Ign 'http://mirrordirector.raspbian.org jessie/rpi Translation-en
W: Failed to fetch 'http://dl.bintray.com/openhab/aft-repo/dists/stable/main/binary-armhf/Packages 404 Not Found [IP: 108.168.243.150 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
pi@raspberrypi:~ $ sudo apt-get install openhab-runtime
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package openhab-runtime
pi@raspberrypi:~ $
Note: I manually inserted a single quote before the hyperlinks above in order to post this reply.
I notice that I get the following error when I run the update command.
W: Failed to fetch 'http://dl.bintray.com/openhab/aft-repo/dists/stable/main/binary-armhf/Packages 404 Not Found [IP: 108.168.243.150 80]
I’ve tried this numerous times, but get the same error. Is related to why the openhab-runtime is failing?
Thanks for any help.
garvord
(Gary Limited)
October 15, 2016, 4:55am
4
Old post, but in case any other users read this post and tries the same procedure, there is a typo line added to the sources.list file.
Incorrect:
“deb 'http://dl.bintray.com/openhab/aft-repo stable main”
Correct:
"deb http://dl.bintray.com/openhab/apt-repo stable main“