Home | Tutorials | Wiki | Issues
Ask Your Question
1

Unable to install drcsim and gazebo on Ubuntu 12.04 or 12.10

asked 2012-12-04 03:38:32 -0600

aqiruse gravatar image

updated 2012-12-04 15:57:37 -0600

When i try to install drcsim, gazebo, or ros i get the following errors on both Ubuntu 12.04 as well as 12.10. I have tried multiple times to install and have the followed the directions on the site. I get the following errors when i try.

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:
 drcsim : Depends: gazebo (>= 1.2.0) but it is not going to be installed
          Depends: ros-fuerte-pr2-mechanism but it is not going to be installed
          Depends: ros-fuerte-std-msgs but it is not going to be installed
          Depends: ros-fuerte-common-msgs but it is not going to be installed
          Depends: ros-fuerte-image-common but it is not going to be installed
          Depends: ros-fuerte-geometry but it is not going to be installed
          Depends: ros-fuerte-pr2-controllers but it is not going to be installed
          Depends: ros-fuerte-geometry-experimental but it is not going to be installed
          Depends: ros-fuerte-robot-model-visualization but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
edit retag flag offensive close merge delete

Comments

If you put the errors in code formatting (see the 010101 icon above the edit box) they'll be easier to read.

asomerville gravatar imageasomerville ( 2012-12-04 14:46:53 -0600 )edit

can you post the console output when you run 'sudo apt-get -f`, thanks.

hsu gravatar imagehsu ( 2012-12-05 11:45:45 -0600 )edit

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 b

aqiruse gravatar imageaqiruse ( 2012-12-05 14:02:39 -0600 )edit

basically i get the same exact error message that i do when i try to do sudo apt-get install drcsim.... the sudo apt-get install -f drcsim gives me the same message

aqiruse gravatar imageaqiruse ( 2012-12-05 14:03:29 -0600 )edit

basically i get the same exact error message that i do when i try to do sudo apt-get install drcsim.... the sudo apt-get install -f drcsim gives me the same message

aqiruse gravatar imageaqiruse ( 2012-12-05 14:03:30 -0600 )edit

7 Answers

Sort by ยป oldest newest most voted
0

answered 2012-12-06 01:50:31 -0600

aqiruse gravatar image

Okay, I reinstalled Ubuntu 12.04 for the 7th time. Retried. And it works. It crashes often but it does launch, and I can place a model on the simulation. With a completely, fresh install, I was able to download the drcsim using "sudo apt-get install drcsim" and it offered no problems. The only difficulty I encountered was that I had to add a source pointer to gazebo-1.3/setup.sh before the one to the drcsim/setup.h in the ~/.bashrc file. Without it it would give an error. As soon as I placed it before the drcsim/setup.sh source, it will launch and run, though it still crashes but for other reasons I presume.

Thank you all for trying to help me. I really appreciate it.

edit flag offensive delete link more
1

answered 2012-12-07 01:40:56 -0600

RonJ gravatar image

I noticed after giving up on 12.10, and installing 12.04 that on 12.10, when doing the "apt-get update" it never lists the ROS sources as it does in 12.04. Is it possible that in 12.10, the update command isn't behaving as expected?

I'm not too familiar with apt, is it possible to force it to do an update on just those sources?

edit flag offensive delete link more
0

answered 2012-12-04 21:05:47 -0600

gerkey gravatar image

I've never seen this problem before. I would try to clean up my apt cache, remove unneeded things, and try again, e.g. something like:

sudo apt-get clean
sudo apt-get autoremove
sudo apt-get remove ros-*
sudo apt-get update
sudo apt-get install drcsim
edit flag offensive delete link more

Comments

That did not work either, i still get the same errors as before.

aqiruse gravatar imageaqiruse ( 2012-12-05 09:22:13 -0600 )edit

@aqiruse did each step (except for the last step of course) complete successfully without errors?

hsu gravatar imagehsu ( 2012-12-05 11:42:30 -0600 )edit

I get the following error when trying to do the "sudo apt-get remove ros":

sudo apt-get remove ros* Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package ros E: Unable to locate package ros-fuerte-desktop-full_1.0.0-s1352931027~

aqiruse gravatar imageaqiruse ( 2012-12-05 13:52:27 -0600 )edit

there should be a dash and an asterisk after ros in "sudo apt-get remove ros-*"

hsu gravatar imagehsu ( 2012-12-06 12:43:08 -0600 )edit
0

answered 2012-12-04 14:55:08 -0600

asomerville gravatar image

I'm going to guess that you have a package in the way (marked as a higher version, or forced to stay at a certain version) that the new repository wants to replace, but can't according to the rules.

12.10 I believe no longer automatically has synaptic package manager installed, but could help resolve the problem. sudo apt-get install synaptic and try to install drc via synaptic, it should show you more clearly why it cannot install. Then you can either unlock the offending package, or force the one that DRC wants.

edit flag offensive delete link more

Comments

When i installed the synaptic software and ran it i initially had the same error as before. However, when i looked further, i noticed that it said in the properties that it conflicts with drcsim. However the drcsim package was not installed. So i searched, purged, + removed the non-existent package.

aqiruse gravatar imageaqiruse ( 2012-12-04 15:38:53 -0600 )edit

Did it work?

asomerville gravatar imageasomerville ( 2012-12-04 15:45:54 -0600 )edit

No it didnt work. Still the same basic errors. Tons of packages with missing dependencies, and it says it will not install them. Synaptic still says drcsim conflicts with drcsim. even though drcsim is not installed, neither is gazebo or ros according to the dpkg, and apt-get remove/purge tools.

aqiruse gravatar imageaqiruse ( 2012-12-04 15:52:55 -0600 )edit

I am using 12.04 Ubuntu currently by the way.

aqiruse gravatar imageaqiruse ( 2012-12-04 15:56:37 -0600 )edit

Have you tried with `-f` install (`sudo apt-get install -f drcsim`)? That sometimes will fix broken dependencies.

asomerville gravatar imageasomerville ( 2012-12-04 15:59:50 -0600 )edit

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 b

aqiruse gravatar imageaqiruse ( 2012-12-04 16:07:04 -0600 )edit

I am sorry for the formatting. Something is wrong with the forums on my connection. It keeps posting the same thing multiple times and wont let me edit. Anyways, I have the same problem as before using the install -f drcsim switch. No luck yet.

aqiruse gravatar imageaqiruse ( 2012-12-04 16:09:07 -0600 )edit

Dpkg is one layer below apt. You might have more luck there dpkg -l drcsim will give you information about what dpkg thinks the state is. dpkg -r drcsim will attempt to remove it. --force may also help.

asomerville gravatar imageasomerville ( 2012-12-04 16:11:54 -0600 )edit

dev@dev-robotics:~$ sudo dpkg -l drcsim

dpkg-query: no packages found matching drcsim

dev@dev-robotics:~$ sudo dpkg -r drcsim

dpkg: warning: ignoring request to remove drcsim which isn't installed

aqiruse gravatar imageaqiruse ( 2012-12-04 16:14:09 -0600 )edit

I'm out of ideas. Sorry. I'd say theres some way to fix it with synaptic, but exactly how I don't know.

asomerville gravatar imageasomerville ( 2012-12-04 16:15:39 -0600 )edit
0

answered 2014-07-21 10:22:17 -0600

fislam gravatar image

I am using ubuntu 12.04 and I have the same problem. When I do "sudo apt-get install gazebo" I get the following output:

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:
 gazebo : Depends: libboost-thread1.49.0 but it is not installable
          Depends: libboost-signals1.49.0 but it is not installable
          Depends: libboost-system1.49.0 but it is not installable
          Depends: libboost-filesystem1.49.0 but it is not installable
          Depends: libboost-program-options1.49.0 but it is not installable
          Depends: libboost-regex1.49.0 but it is not installable
          Depends: libboost-iostreams1.49.0 but it is not installable
          Depends: libcegui-mk2-0.7.6 but it is not installable
          Depends: sdformat (>= 1.4.7~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I am stuck at this problem and really need help. I cannot re-install ubuntu for some reason.

Thanks in advance!

edit flag offensive delete link more
0

answered 2012-12-04 09:46:20 -0600

gerkey gravatar image

It could be a transient problem with the ROS package repository. Try updating and then installing:

sudo apt-get update
sudo apt-get install drcsim

Of course, make sure that you've first done the required setup, as suggested by @scpeters.

edit flag offensive delete link more

Comments

I tried to update and install. I still get the same errors.

aqiruse gravatar imageaqiruse ( 2012-12-04 14:37:48 -0600 )edit
0

answered 2012-12-04 09:29:32 -0600

scpeters gravatar image

Did you add the appropriate keys and repositories? These are steps 2 and 3 in the instructions at: http://gazebosim.org/wiki/1.3/install

  1. Configure your Ubuntu repositories to allow "restricted," "universe," and "multiverse." You can follow the [https://help.ubuntu.com/community/Repositories/Ubuntu Ubuntu guide] for instructions on doing this.

  2. Setup your computer to accept software from packages.osrfoundation.org.

    sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
    sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu precise main" > /etc/apt/sources.list.d/gazebo-latest.list'
    
  3. Retrieve and install the keys for the ROS and DRC repositories.

    wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
    wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
    
edit flag offensive delete link more

Comments

I have everything check marked as being downloadable. I have gotten the keys. I have the ros, drc, and gazebo as listed in the Other Software tab and they are check marked also. The ROS Builder ans OSRF deb-builder are listed in the Authentication tab as trusted sources. Still doesn't work.

aqiruse gravatar imageaqiruse ( 2012-12-04 14:35:21 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2012-12-04 03:38:32 -0600

Seen: 2,329 times

Last updated: Jul 21 '14