0
$\begingroup$

Before I was using ros2 foxy normally, but today I have to upgrade the cmake to a higher version, so I use sudo apt remove --purge --auto-remove cmake to remove the current cmake version and to install the latest version using sudo apt install cmake.

After I finished installing the cmake, now I can not use any command from ros2, even though I have sourced the installation environment. I have also check if the ROS2 were installed: echo $ROS_DISTRO, and it outputs 'foxy'. $ROS_VERSION: '2' (see screenshot).

Screenshot

What else can do to bring back all the features, or should I just reinstalled it. If I reinstall it, do I have to upgrade my cmake again ?

$\endgroup$
1
  • $\begingroup$ Your screenshot doesn't seem to match the text. Should the screenshot show the output of echo $ROS_DISTRO? $\endgroup$ Commented Apr 4 at 8:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.