upgrade to fuerte, problem with yaml-cpp
Hi!
First I upgraded ubuntu to precise. Then I wanted to upgrade from ros-electric to ros-fuerte, with the deb line in sources.list.d/ros-latest.list changed (oneiric to precise).
There is a problem with the package yaml-cpp from ros-fuerte, and I was not able to uninstall the ros-electric version via apt-get remove yaml-cpp0.2.6-dev (apt errors see below). First my solution: for now I forced the installation of the precise package as follows:
dpkg -i --force-overwrite /var/cache/apt/archives/yaml-cpp_0.2.7-5precise-20120502-0513-+0000_amd64.deb
Status is now:
apt-cache policy yaml-cpp0.2.6-dev yaml-cpp0.2.6-dev: Installed: 0.2.6-4~oneiric Candidate: 0.2.6-4~oneiric Version table: * 0.2.6-4~oneiric 0 100 /var/lib/dpkg/status
apt-cache policy yaml-cpp yaml-cpp: Installed: 0.2.7-5precise-20120502-0513-+0000 Candidate: 0.2.7-5precise-20120502-0513-+0000 Version table: * 0.2.7-5precise-20120502-0513-+0000 0 500 http://packages.ros.org/ros/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status
then was able to apt-get remove ros-electric-common ros-electric-image-common yaml-cpp0.2.6-dev apt-get --reinstall install yaml-cpp
I would be glad to hear about a cleaner way or if there is some dependencies missing in the deb file ("provides", "conflicts") preventing a clean upgrade. Anyway a parallel installation of electric and fuerte would be nice, but not possible with this conflict.
Here the error while installing ros-fuerte-desktop-full
apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
yaml-cpp
The following NEW packages will be installed:
yaml-cpp
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
9 not fully installed or removed.
Need to get 0 B/204 kB of archives.
After this operation, 582 kB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 275638 files and directories currently installed.)
Unpacking yaml-cpp (from .../yaml-cpp_0.2.7-5precise-20120502-0513-+0000_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/yaml-cpp_0.2.7-5precise-20120502-0513-+0000_amd64.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
No apport report written because MaxReports is reached already
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_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)