0
$\begingroup$

I am getting an error when I give this command rosdep install --from-paths ./ -i -y --rosdistro melodic

WARNING: given --rosdistro melodic but ROS_DISTRO is "kinetic". Ignoring environment.
WARNING: ROS_PYTHON_VERSION is unset. Defaulting to 2
ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies:

How can I resolve this?

$\endgroup$
1
  • $\begingroup$ You appear to be missing the critical part of the error message, the list of erroring packages. Please edit your question to include that, as well as what their package.xml content. And also how you have setup your rosdep sources. I'll note that you also appear to have kinetic in your environment but you're trying to do things with Melodic. This may cause you problems and you may want to remove kinetic from your environment before trying to do more with melodic. $\endgroup$
    – Tully
    Commented Sep 16, 2023 at 18:24

2 Answers 2

1
$\begingroup$

I resolved the issue with this command -

rosdep install --from-paths src --ignore-src --rosdistro=${ROSDISTRO} -y

In my case, the ROSDISTRO was Humble, check your ROSDISTRO and replace accordingly

$\endgroup$
0
$\begingroup$

Are there any more details? something like: enter image description here

Then:

sudo apt-get install package-name
$\endgroup$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.