Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It appears that no yaml-cpp is installed

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

But when I try to install yaml-cpp I can not because apt-get all of a sudden remembers an old version of yaml-cpp that now conflicts.

sudo apt-get install yaml-cpp
The following NEW packages will be installed:
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 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:
E: Sub-process /usr/bin/dpkg returned an error code (1)
share|improve this question
up vote 3 down vote accepted

You need to remove yaml-cpp0.2.6-dev

apt-get remove yaml-cpp0.2.6-dev
share|improve this answer
Do you always have to specify the version number when removing packages? It is odd to me that it says "package not installed" instead of "please pick a version to remove" – johnjamesmiller Feb 7 '13 at 3:45
No, for some reason, that was the full package name. That shouldn't happen and points to a messed up package. – tgm4883 Feb 7 '13 at 4:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.