When I had installed Gzebo 9 and run gazebo report an error as below:
[gazebo-2] process has died [pid 4668, exit code 127, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode /home/xx/husky_ws/src/husky/husky_gazebo/worlds/dyn4.world __name:=gazebo __log:=/home/xx/.ros/log/26a8dda8-7dad-11ec-ac2c-68545a5636b4/gazebo-2.log]. log file: /home/xx/.ros/log/26a8dda8-7dad-11ec-ac2c-68545a5636b4/gazebo-2*.log [gazebo_gui-3] process has died [pid 4670, exit code 127, cmd /opt/ros/melodic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/xx/.ros/log/26a8dda8-7dad-11ec-ac2c-68545a5636b4/gazebo_gui-3.log]. log file: /home/xx/.ros/log/26a8dda8-7dad-11ec-ac2c-68545a5636b4/gazebo_gui-3*.log
Solution:
sudo apt-get upgrade