Ask Your Question
0

catkin_make , python-catkin-pkg doesn't work,

asked 2020-01-15 02:26:32 -0600

hwlee gravatar image
hwlee@hwlee:~/catkin_ws$ catkin_make

Command 'catkin_make' not found, but can be installed with:

sudo apt install catkin

hwlee@hwlee:~/catkin_ws$ sudo apt install catkin

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:


The following packages have unmet dependencies:


 catkin : Depends: python-catkin-pkg but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

hwlee@hwlee:~/catkin_ws$ sudo apt-get install python-catkin-pkg

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-catkin-pkg is already the newest version (0.4.15-100).

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I installed ros-melodic to new computer and have this problem.

How can I solve this one?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-01-15 02:30:37 -0600

gvdhoorn gravatar image

updated 2020-01-15 09:38:56 -0600

hwlee@hwlee:~/catkin_ws$ catkin_make
Command 'catkin_make' not found

Have you remembered to source /opt/ros/melodic/setup.bash before trying to run catkin_make?

As to this:

hwlee@hwlee:~/catkin_ws$ sudo apt install catkin
Reading package lists... Done
Building dependency tree       
Reading state information... Done

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.

This is caused by mixing official packages (ie: distributed via packages.ros.org) with UpstreamPackages.

Catkin for ROS Melodic would be ros-melodic-catkin, not catkin.

You cannot mix these two package sources.

Please read UpstreamPackages and install ros-melodic-catkin (but you most likely already have it installed).

edit flag offensive delete link more

Comments

Omg, you solve this problem perfectly. Thank you so much!!!! I used ros-kinetic so that I was confused :( I did two things you said, and I got saved!

hwlee gravatar imagehwlee ( 2020-01-15 02:37:05 -0600 )edit

I used ros-kinetic

Did you tag this question with melodic by accident?

gvdhoorn gravatar imagegvdhoorn ( 2020-01-15 02:41:31 -0600 )edit

Ah, I meant I used ros-kinetic before. I'm using melodic now :)

hwlee gravatar imagehwlee ( 2020-01-15 02:52:31 -0600 )edit

For what I saw it seems to me to be more related with the missing source. If you have the same error again, add the command gvdhoorn told you inside .bashrc file (at the end)

Solrac3589 gravatar imageSolrac3589 ( 2020-01-15 09:20:22 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2020-01-15 02:26:32 -0600

Seen: 26 times

Last updated: Jan 15