解决: $ cd ~/catkin_ws $ source devel/setup.bash $ rosrun beginner_tutorials add_two_ints_server.py $ roscore 成功!