ubuntu 下面情况处理
$ cd
$gedit .bashrc
再后面加入两行
source /opt/ros/indigo/setup.bash
source /home/lv/catkin_ws/devel/setup.bash
(/lv/catkin_ws/ 换成自己的目录)
关掉 shell 重新运行 roscore
在执行rospack depends1 beginner_tutorials 即可