Ask Your Question

Cannot use rosnode command

asked 2018-12-06 20:50:08 -0500

yunhuzhou gravatar image

When I use rosnode command, the following error is shown.

 zhou@zhou-Inspiron-7447:~$ rosnode list

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

    sudo apt install python-rosnode

Then I run

sudo apt install python-rosnode

The result is as follows:

zhou@zhou-Inspiron-7447:~$ sudo apt install python-rosnode
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:
 python-rosnode : Depends: python-rostopic but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

How can I solve the problem? My PC OS is ubuntu 18.04 LTS, and the version of ROS is Melodic. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-07 02:25:51 -0500

aPonza gravatar image

You likely need to install ros-melodic-rosnode, not python-rosnode. Take a look at the installation tutorial and from there move on to the ROS Tutorials at the end of the page.

edit flag offensive delete link more



The OP has run into UpstreamPackages. That is why apt complains about unmet dependencies and refuses to install things.

@yunhuzhou: you want to make sure you are not mixing packages from different sources. It won't work.

gvdhoorn gravatar image gvdhoorn  ( 2018-12-07 02:57:07 -0500 )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


Asked: 2018-12-06 20:50:08 -0500

Seen: 409 times

Last updated: Dec 07 '18