Robotics StackExchange | Archived questions

Problem when installing ros-indigo-gazebo4-ros-pkgs

Hi, I am following the tutorial in: link text but I receive this error while installing the deb packages:

dpkg: error processing archive /var/cache/apt/archives/gazebo4_4.0.0-2~trusty_amd64.deb (--unpack):
trying to overwrite '/usr/share/icons/hicolor/scalable/apps/gazebo.svg', which is also in package gazebo3 3.1.0-1~trusty

I have the "default" gazebo version that came with ros indigo installed in my machine. Thank you for your help.

Enrico

Asked by Enrico Mingo on 2014-09-16 16:43:04 UTC

Comments

Answers

It looks like you also have a gazebo3 package installed that is conflicting with gazebo4.

That looks like a mistake in our debian metadata. I've created an issue about it.

In the meantime, can you try manually uninstalling gazebo3?

sudo apt-get update
sudo apt-get remove gazebo3
sudo apt-get install ros-indigo-gazebo4-ros-pkgs

There might need to be some sudo apt-get install -f commands in there too. Sorry about that.

Asked by scpeters on 2014-09-16 19:43:23 UTC

Comments

When apt-get turns picky, I use dpkg -r (which won't perform any check) and apt-get install -f after it.

Asked by Jose Luis Rivero on 2014-09-17 11:42:12 UTC

When I try to remove gazebo 3 I got the following error:

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:

gazebo3-plugin-base : Depends: gazebo3 (= 3.1.0-1~trusty)
gazebo4-plugin-base : Depends: gazebo4 (= 4.0.0-2~trusty)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Asked by Enrico Mingo on 2014-09-17 08:21:39 UTC

Comments

These can be tricky to resolve. I usually just try to remove packages that it complains about and mix in some sudo apt-get -f install commands to see if that helps. Sorry for the trouble. Jose is working to release a fixed package.

Asked by scpeters on 2014-09-17 11:41:40 UTC

With this release:

link text

I was able to install everything. Thank you!

Asked by Enrico Mingo on 2014-09-18 10:07:23 UTC

Comments