因为多版本boost的多版本共存
sudo apt-get autoremove libboost1.66-dev # 卸载
卸载源码编译的boost库,需要删除:
sudo rm -r -f /usr/local/include/boost*
sudo rm -f /usr/local/lib/libboost*
重新安装ros
sudo apt-get install ros-melodic-desktop-full
sudo apt-get install ros-melodic-rqt*
重新安装
sudo apt-gey install libboost-dev