ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I had a similar problem, but just installing Gazebo 2 per the directions.
I'd had Gazebo running on Ubuntu 12.04 LTS. I wanted to upgrade Ubuntu to 14.04. The Ubuntu upgrade failed, due to a package conflict in ROS/Gazebo. (Ref: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1388511). So I had to uninstall ROS/Gazebo to upgrade Ubuntu. The Ubuntu upgrade went fine.
Then I tried to re-install ROS/Gazebo, following the directions at "http://wiki.ros.org/indigo/Installation/Ubuntu".
This produced errors: ... (Reading database ... 95% (Reading database ... 100% (Reading database ... 311085 files and directories currently installed.) Preparing to unpack .../libsdformat1_1.4.11-1ubuntu0.1_amd64.deb ... Unpacking libsdformat1:amd64 (1.4.11-1ubuntu0.1) ... dpkg: error processing archive /var/cache/apt/archives/libsdformat1_1.4.11-1ubuntu0.1_amd64.deb (--unpack): trying to overwrite '/usr/share/sdformat/1.4/projector.sdf', which is also in package sdformat 1.4.11-1~precise dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../libsdformat-dev_1.4.11-1ubuntu0.1_amd64.deb ... Unpacking libsdformat-dev:amd64 (1.4.11-1ubuntu0.1) ... dpkg: error processing archive /var/cache/apt/archives/libsdformat-dev_1.4.11-1ubuntu0.1_amd64.deb (--unpack): trying to overwrite '/usr/include/sdformat-1.4/sdf/SDFImpl.hh', which is also in package sdformat 1.4.11-1~precise Errors were encountered while processing: /var/cache/apt/archives/libsdformat1_1.4.11-1ubuntu0.1_amd64.deb /var/cache/apt/archives/libsdformat-dev_1.4.11-1ubuntu0.1_amd64.deb Error in function: dpkg: dependency problems prevent configuration of gazebo2: gazebo2 depends on libsdformat-dev (>= 1.4.11-1osrf1); however: Package libsdformat-dev:amd64 is not installed. gazebo2 depends on libsdformat-dev (<< 2.0.0); however: Package libsdformat-dev:amd64 is not installed.
dpkg: error processing package gazebo2 (--configure): dependency problems - leaving unconfigured
This put the package manager into an endless loop of trying to repair, failing to repair, and asking to try to repair again. I had to reboot and do "apt-get remove gazebo2" to get the package system into a valid state again.
Now what?