chirpstack / chirpstack-gateway-bridge

ChirpStack Gateway Bridge abstracts Packet Forwarder protocols into Protobuf or JSON over MQTT.
https://www.chirpstack.io
MIT License
423 stars 270 forks source link

Installing LoRa Gateway Bridge on Raspberry Pi #59

Closed amalinda closed 6 years ago

amalinda commented 6 years ago

I made an attempt to install Lora Gateway Bridge on a Raspberry pi model 3 B using the following instructions which were provided for on Loraserver.io.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1CE2AFD36DBCCA00

export DISTRIB_ID=`lsb_release -si`
export DISTRIB_CODENAME=`lsb_release -sc`
sudo echo "deb https://repos.loraserver.io/${DISTRIB_ID,,} ${DISTRIB_CODENAME} testing" | sudo tee /etc/apt/sources.list.d/loraserver.list
sudo apt-get update

However, when I do, I receive the following error.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1CE2AFD36DBCCA00
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.xmX1WzZ4d2 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 1CE2AFD36DBCCA00
gpg: requesting key 6DBCCA00 from hkp server keyserver.ubuntu.com
gpg: key 6DBCCA00: "Orne Brocaar <info@brocaar.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
pi@raspberrypi:~ $ export DISTRIB_ID=`lsb_release -si`
pi@raspberrypi:~ $ export DISTRIB_CODENAME=`lsb_release -sc`
pi@raspberrypi:~ $ sudo echo "deb https://repos.loraserver.io/${DISTRIB_ID,,} ${DISTRIB_CODENAME} testing" | sudo tee /etc/apt/sources.list.d/loraserver.list
deb https://repos.loraserver.io/raspbian jessie testing
pi@raspberrypi:~ $ sudo apt-get update
Hit http://archive.raspberrypi.org jessie InRelease                                 
Hit http://mirrordirector.raspbian.org jessie InRelease                             
Get:1 https://repos.loraserver.io jessie InRelease [162 B]                          
Ign https://repos.loraserver.io jessie InRelease                              
Get:2 https://repos.loraserver.io jessie Release.gpg [162 B]                  
Ign https://repos.loraserver.io jessie Release.gpg                                                                
Get:3 https://repos.loraserver.io jessie Release [162 B]                                                          
Ign https://repos.loraserver.io jessie Release                              
Get:4 https://repos.loraserver.io jessie/testing armhf Packages [162 B]     
Get:5 https://repos.loraserver.io jessie/testing Translation-en_GB [162 B]                                     
Get:6 https://repos.loraserver.io jessie/testing Translation-en [162 B]                                        
Get:7 https://repos.loraserver.io jessie/testing armhf Packages [162 B]               
Get:8 https://repos.loraserver.io jessie/testing Translation-en_GB [162 B]                                     
Get:9 https://repos.loraserver.io jessie/testing Translation-en [162 B]                                        
Get:10 https://repos.loraserver.io jessie/testing armhf Packages [162 B]                                        
Get:11 https://repos.loraserver.io jessie/testing Translation-en_GB [162 B]                                     
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages                                                   
Get:12 https://repos.loraserver.io jessie/testing Translation-en [162 B]                                            
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Get:13 https://repos.loraserver.io jessie/testing armhf Packages [162 B]
Hit http://archive.raspberrypi.org jessie/main armhf Packages                                
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages                              
Get:14 https://repos.loraserver.io jessie/testing Translation-en_GB [162 B]                        
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages                                                                            
Get:15 https://repos.loraserver.io jessie/testing Translation-en [162 B]                                                                    
Hit http://archive.raspberrypi.org jessie/ui armhf Packages                                            
Get:16 https://repos.loraserver.io jessie/testing armhf Packages [162 B]                               
Err https://repos.loraserver.io jessie/testing armhf Packages                                                                 
  HttpError404
Get:17 https://repos.loraserver.io jessie/testing Translation-en_GB [162 B]                                                   
Ign https://repos.loraserver.io jessie/testing Translation-en_GB                                          
Get:18 https://repos.loraserver.io jessie/testing Translation-en [162 B]                                  
Ign https://repos.loraserver.io jessie/testing Translation-en                                          
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB                                                                          
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en                                                                             
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB                                                                             
Ign http://mirrordirector.raspbian.org jessie/main Translation-en                                                                                
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB                                                                         
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en                                                                            
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB                                                                                 
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB                                                                              
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en                                                                                 
Ign http://archive.raspberrypi.org jessie/main Translation-en                                                                                    
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB                                                                                   
Ign http://archive.raspberrypi.org jessie/ui Translation-en                                                                                      
W: Failed to fetch https://repos.loraserver.io/raspbian/dists/jessie/testing/binary-armhf/Packages  HttpError404                                 

E: Some index files failed to download. They have been ignored, or old ones used instead.
pi@raspberrypi:~ $ sudo apt-get install lora-gateway-bridge
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package lora-gateway-bridge
pi@raspberrypi:~ $ 

I would really appreciate your comments and suggestions that would help me solve this issue. Thank you.

Is this a bug or a feature request?

no

What did you expect?

A successfull installation of lora gateway bridge on raspberry pi

What happened?

please see above

What version are your using?

Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux

How can your issue be reproduced?

Could you share your log output?

Shared above.

brocaar commented 6 years ago

Please use the forum (https://forum.loraserver.io) for support questions :-)

Hint: deb https://repos.loraserver.io/raspbian jessie testing should be deb https://repos.loraserver.io/debian jessie testing