chirpstack / chirpstack-gateway-bridge

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

No /etc/lsb-release under Debian #30

Closed Champal closed 7 years ago

Champal commented 7 years ago

Hi,

Here https://docs.loraserver.io/lora-gateway-bridge/getting-started/#setting-up-lora-gateway-bridge you use the file /etc/lsb-release that does not exist under Debian Jessie, you have to use the lsb_release command instead.

source /etc/lsb-release
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1CE2AFD36DBCCA00
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

You can replace source /etc/lsb-release by

export DISTRIB_ID=`lsb_release -si`;export DISTRIB_CODENAME=`lsb_release -sc`
brocaar commented 7 years ago

Thanks @Champal, I'll fix this in the documentation.

andykv59 commented 7 years ago

Will appreciate for the fix

linas commented 5 years ago

FWIW totally off-topic, but on my machine things were broken because /etc/dpkg/origins/default -> /etc/dpkg/origins/ubuntu instead of /etc/dpkg/origins/default -> /etc/dpkg/origins/debian like it should have been... and that broke lsb_release with cryptic python errors.

hpsaturn commented 4 years ago

Hi,

Here https://docs.loraserver.io/lora-gateway-bridge/getting-started/#setting-up-lora-gateway-bridge you use the file /etc/lsb-release that does not exist under Debian Jessie, you have to use the lsb_release command instead.

source /etc/lsb-release
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1CE2AFD36DBCCA00
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

You can replace source /etc/lsb-release by

export DISTRIB_ID=`lsb_release -si`;export DISTRIB_CODENAME=`lsb_release -sc`

Thanks. You can use in Debian:

source /etc/os-release