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

Errors upgrading to the latest roscpp debs

asked 2014-01-09 16:32:48 -0500

ahendrix gravatar image

I'm seeing the following errors when upgrading to the latest versions of the roscpp debs:

$ sudo apt-get dist-upgrade

... snip ...

dpkg: error processing /var/cache/apt/archives/ros-hydro-cpp-common_0.3.17-0precise-20140108-0945-+0000_amd64.deb (--unpack):
 trying to overwrite '/opt/ros/hydro/include/ros/header.h', which is also in package ros-hydro-roscpp 1.9.50-0precise-20131015-1959-+0000

... snip ...

dpkg: error processing /var/cache/apt/archives/ros-hydro-roscpp-traits_0.3.17-0precise-20140108-0948-+0000_amd64.deb (--unpack):
 trying to overwrite '/opt/ros/hydro/include/ros/message_event.h', which is also in package ros-hydro-roscpp 1.9.50-0precise-20131015-1959-+0000

... snip ...

dpkg: error processing /var/cache/apt/archives/ros-hydro-rosbag-storage_1.9.52-0precise-20140108-1606-+0000_amd64.deb (--unpack):
 trying to overwrite '/opt/ros/hydro/include/rosbag/buffer.h', which is also in package ros-hydro-rosbag 1.9.50-0precise-20131015-2159-+0000

... snip ...

Errors were encountered while processing:
 /var/cache/apt/archives/ros-hydro-cpp-common_0.3.17-0precise-20140108-0945-+0000_amd64.deb
 /var/cache/apt/archives/ros-hydro-roscpp-traits_0.3.17-0precise-20140108-0948-+0000_amd64.deb
 /var/cache/apt/archives/ros-hydro-rosbag-storage_1.9.52-0precise-20140108-1606-+0000_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Has anyone else seen this before? Any suggestions for dealing with these upgrade errors or working around them?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-01-09 16:33:43 -0500

ahendrix gravatar image

Running sudo apt-get install -f fixed this for me.

edit flag offensive delete link more
0

answered 2014-01-23 19:47:30 -0500

Markus Bader gravatar image

I had the same problem an a very new installation ubuntu 12.04

ros@d01:~$ sudo apt-get upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 ros-hydro-roscpp : Depends: ros-hydro-cpp-common (>= 0.3.17) but 0.3.16-0precise-20131010-0127-+0000 is installed
                    Depends: ros-hydro-roscpp-traits (>= 0.3.17) but 0.3.16-0precise-20131010-0148-+0000 is installed
E: Unmet dependencies. Try using -f.

As ahendrix suggested

sudo apt-get install -f

fixed it but I don't know the source of this problem, because we hat the same problem also on a other comptuer

edit flag offensive delete link more

Comments

This is a problem introduced in the latest version of the ros debs, because some header files were moved from one package to another.

ahendrix gravatar image ahendrix  ( 2014-01-24 06:16:50 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-01-09 16:32:48 -0500

Seen: 315 times

Last updated: Jan 23 '14