Robotics StackExchange | Archived questions

libyaml-cpp-dev cannot be installed (dependencies)

Hi. I'm new to both, Linux and Ubuntu and am trying to install ROS-indigo following these two tutorials http://wiki.ros.org/indigo/Installation/Ubuntu and http://wiki.ros.org/turtlebot/Tutorials/indigo/Installation

I keep on having and issue with the libyaml-cpp-dev package.

~$ sudo apt-get install ros-indigo-ros
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-indigo-camera-calibration-parsers : Depends: libyaml-cpp-dev but it is not going to be installed
 ros-indigo-ros : Depends: ros-indigo-mk but it is not going to be installed
                  Depends: ros-indigo-rosbash but it is not going to be installed
                  Depends: ros-indigo-rosboost-cfg but it is not going to be installed
                  Depends: ros-indigo-roscreate but it is not going to be installed
                  Depends: ros-indigo-roslang but it is not going to be installed
                  Depends: ros-indigo-rosmake but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

whenever i try to fix it with sudo apt-get -f insall or try to install the libyaml-cpp-dev manualy, the following happenes

(Reading database ... 370013 files and directories currently installed.)
Preparing to unpack .../libyaml-cpp-dev_0.5.1-1_amd64.deb ...
Unpacking libyaml-cpp-dev (0.5.1-1) ...
dpkg: error processing archive /var/cache/apt/archives/libyaml-cpp-dev_0.5.1-1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/pkgconfig/yaml-cpp.pc', which is also in package yaml-cpp 0.2.7-5precise-20120502-0513-+0000
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libyaml-cpp-dev_0.5.1-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tiried removing ros and the yaml-cpp from the system, like some forum entries suggested, but nothing seems to help. I had fuerte installed before on Linux 12. recently i removed fuerte, upgraded the Linux to 14.04 and since then I'm trying to install indigo.

any ideas? :/

Asked by roselight on 2014-10-29 06:44:30 UTC

Comments

Answers

The problem got solved by simply reinstalling ubuntu. Apperently it didn't upgrade properly from 12.04 to 14.04. Somehow the yaml-cpp file was broken in a way, that it didn't allow me to remove or reinstall it. Many 32 Bit version programms didn't install and didn't run aswell. So it was quite a big problem.

Asked by roselight on 2014-11-10 03:52:45 UTC

Comments

I solved the problem without reinstalling, by issuing the dpgk -r yaml-cpp

Asked by Arnoud Visser on 2016-02-08 11:10:31 UTC

Confirmed, a sudo dpkg -r yaml-cpp fixed the problem for me, which was trying to install Indigo on a netbook I upgraded from 12.04 to 14.04. (I also had to do a sudo dpkg -r sdformat for a similar error.)

Asked by Alaina on 2016-12-11 19:01:10 UTC