1、更换软件源
2、按wiki一步一步来
或者看这个
3、查看ROS_DISTRO和ROS_PACKAGE_PATH是否正确
export | grep ROS
4、创建catkin工作空间
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd ~/catkin_ws
catkin_make
source ~/catkin_ws/devel/setup.bash
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
echo $ROS_PACKAGE_PATH
5、运行小乌龟
roscore
rosrun turtlesim turtlesim_node