gazebo-tooling / release-tools

8 stars 9 forks source link

Running install script on Ubuntu 18.04 tries to install Gazebo11 not Gazebo9 #457

Open mkhansenbot opened 3 years ago

mkhansenbot commented 3 years ago

Moving issue: https://github.com/osrf/gazebo/issues/2994

I tried upgrading Gazebo9 on Ubuntu 18.04 using the recommended 1-liner method: curl -sSL http://get.gazebosim.org | sh

It tries to install Gazebo11 instead of Gazebo9, and fails.

I looked at the script and I see it sets GZ_VER=11 to start then later checks the Ubuntu version to change it to Gazebo 9, but it doesn't match 'bionic', just 'artful' and 'eoan' versions. Seems like a bug.

                        case "$dist_version" in
                                xenial)
                                        GZ_VER=10
                                ;;
                                artful | eoan )
                                        GZ_VER=9
                                ;;
                        esac

I was able to install manually after it failed to install Gazebo11, but please confirm if this is a bug, it seems like a simple fix

chapulina commented 3 years ago

I think that script should accept an argument to choose what version to install, independently of the Ubuntu distro, because we support both Gazebo 9 and 11 on Bionic and Focal.

j-rivero commented 3 years ago

I would like to maintain the script minimalist and the original goal was to provide easy install instructions to get the latest available version per platform.There are instructions about how to install older versions I don't think they are the main use case.