似乎没有安装 yaml-cpp
sudo apt-get remove yaml-cpp
Package yaml-cpp is not installed, so not removed
但是当我尝试安装 yaml-cpp 时,我无法安装,因为 apt-get 突然记得一个现在发生冲突的旧版本的 yaml-cpp。
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)
答案1
您需要删除 yaml-cpp0.2.6-dev
apt-get remove yaml-cpp0.2.6-dev