From c2f13dbccfa3c80534fd05b2863affbb44d13eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Barci=C5=9B?= Date: Thu, 2 Feb 2023 10:58:01 +0400 Subject: [PATCH] setup/ubuntu.sh modified to correctly install all required dependencies for gazebo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Barciś --- Tools/setup/ubuntu.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Tools/setup/ubuntu.sh b/Tools/setup/ubuntu.sh index 209c719ad5..c609c914a6 100755 --- a/Tools/setup/ubuntu.sh +++ b/Tools/setup/ubuntu.sh @@ -217,6 +217,17 @@ if [[ $INSTALL_SIM == "true" ]]; then # Set Java 11 as default sudo update-alternatives --set java $(update-alternatives --list java | grep "java-$java_version") + # Install Gazebo + if [[ "${UBUNTU_RELEASE}" == "22.04" ]]; then + sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' + wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add - + # Update list, since new gazebo-stable.list has been added + sudo apt-get update -y --quiet + sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \ + ignition-fortress \ + ; + fi + # Install Gazebo classic if [[ "${UBUNTU_RELEASE}" == "18.04" ]]; then gazebo_version=9 @@ -255,16 +266,6 @@ if [[ $INSTALL_SIM == "true" ]]; then echo "export SVGA_VGPU10=0" >> ~/.profile fi - # Install Gazebo - if [[ "${UBUNTU_RELEASE}" == "22.04" ]]; then - sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' - wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add - - # Update list, since new gazebo-stable.list has been added - sudo apt-get update -y --quiet - sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \ - ignition-fortress \ - ; - fi fi if [[ $INSTALL_NUTTX == "true" ]]; then