Issue with installation (Ardupilot/SITL/Gazebo)

Hi,

I’ve got maybe a very “stupid” question but well, so excuse my low level in Ubuntu/Debian, I’ve got an issue in the installation process of Gazebo garden
I’m on Window WSL, Ubuntu 22.04, and I want to have Arduplane/SITL/Gazebo

https://gazebosim.org/docs/garden/install_ubuntu

First install => OK it works

sudo apt-get update
sudo apt-get install lsb-release wget gnupg

Then install Gazebo Garden:

sudo wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg]
http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null

sudo apt-get update
sudo apt-get install gz-garden

=> It’s not working
=> does it mean that it’s differents lines of commands “sudo wget” + “echo” + “/etc/apt/…” ?
=> So I tried

First line

sudo wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg

Second line

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg]

then I’ve got a “>” and I wrote the next line

http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | sudo tee /

And last line

/etc/apt/sources.list.d/gazebo-stable.list > /dev/null

-bash: /etc/apt/sources.list.d/gazebo-stable.list: Permission denied

I think the last one is the only error message but to be honest I’m not really sure of what I’ve done, so any help will be appreciated !

Nico

Copy-paste the correct commands from the source of that page:

Everything on one line should stay on one line.

Hi jrtg, it works fine now many thanks !

1 Like