以下两行命令解决(注意换为自己的版本号): sudo apt-get install ros-melodic-qt-create sudo apt-get install ros-melodic-qt-build 完美解决: