use add-apt-repository for consistency with docker image
Also remove java set-up as the default should be sufficient and
JAVA_HOME is no longer required.
# Install i386 binary support on x64 system and required tools
sudo dpkg --add-architecture i386
-echo "deb http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main" | tee /etc/apt/sources.list.d/mosquitto.list
+sudo add-apt-repository --yes ppa:mosquitto-dev/mosquitto-ppa
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 77B7346A59027B33C10CAFE35E64E954262C4500
sudo apt update
sudo apt install -y --no-install-recommends \
@@ -52,11 +52,7 @@ echo "export NRF52_SDK_ROOT=/usr/nrf52-sdk" >> ${HOME}/.bashrc
sudo usermod -aG dialout vagrant
-# Make sure we're using Java 11 for Cooja
-sudo update-java-alternatives --auto
-
# Environment variables
-echo "export JAVA_HOME=/usr/lib/jvm/default-java" >> ${HOME}/.bashrc
echo "export CONTIKI_NG=${HOME}/contiki-ng" >> ${HOME}/.bashrc
echo "export COOJA=${CONTIKI_NG}/tools/cooja" >> ${HOME}/.bashrc
echo "export PATH=${HOME}:${PATH}" >> ${HOME}/.bashrc
