não consigo instalar o yaml-cpp porque ele está em conflito com o yaml-cpp?

1

Parece que nenhum yaml-cpp está instalado

sudo apt-get remove yaml-cpp
Package yaml-cpp is not installed, so not removed

Mas quando eu tento instalar o yaml-cpp eu não consigo porque o apt-get de repente se lembra de uma versão antiga do yaml-cpp que agora está em conflito.

sudo apt-get install yaml-cpp
The following NEW packages will be installed:
  yaml-cpp
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 205 kB of archives.
After this operation, 577 kB of additional disk space will be used.
Get:1 http://packages.ros.org/ros/ubuntu/ precise/main yaml-cpp i386 0.2.7-5precise-20120502-0513-+0000 [205 kB]
Fetched 205 kB in 0s (237 kB/s)   
(Reading database ... 342813 files and directories currently installed.)
Unpacking yaml-cpp (from .../yaml-cpp_0.2.7-5precise-20120502-0513-+0000_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/yaml-cpp_0.2.7-5precise-20120502-0513-+0000_i386.deb (--unpack):
 trying to overwrite '/usr/include/yaml-cpp/emitter.h', which is also in package yaml-cpp0.2.6-dev 0.2.6-4~oneiric
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/yaml-cpp_0.2.7-5precise-20120502-0513-+0000_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por johnjamesmiller 07.02.2013 / 04:31

1 resposta

3

Você precisa remover o yaml-cpp0.2.6-dev

apt-get remove yaml-cpp0.2.6-dev
    
por tgm4883 07.02.2013 / 04:33