ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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

asked 2019-10-05 02:49:56 -0500

notSoTechnical gravatar image

updated 2019-10-05 06:08:39 -0500

gvdhoorn gravatar image

Straight dump of the console output:

student@robot-teaching-lab9:~$ rostopic list
Command 'rostopic' not found, but can be installed with:
sudo apt install python-rostopic
student@robot-teaching-lab9:~$ sudo apt install python-rostopic
[sudo] password for student: 
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-rostopic : Depends: python-rospy but it is not going to be installed
                   Depends: python-rosbag but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
student@robot-teaching-lab9:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
student@robot-teaching-lab9:~$ rostopic list

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

sudo apt install python-rostopic
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-10-05 06:08:03 -0500

gvdhoorn gravatar image

updated 2019-10-05 06:27:42 -0500

Unfortunate, but you appear to have come back to #q333714. python-rostopic is again an UpstreamPackage.

Do not install those, unless you are aware of the consequences and how to rectify that (and why you are trying to use them).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-10-05 02:49:56 -0500

Seen: 1,108 times

Last updated: Oct 05 '19