我尝试遵循官方instructions并在控制台中运行命令
which node
得到错误:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt-get install ros-melodic-desktop-full
sudo apt-get install -f
编辑:
尝试使用The following packages have unmet dependencies:
ros-melodic-desktop-full : Depends: ros-melodic-simulators but it is not going to be installed
Depends: ros-melodic-urdf-sim-tutorial but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
来建议保留12个卸载软件包的当前版本
试图升级apt,没有任何改变