ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I tried all the solution on this page none of them worked, even the last one. the last comment from @gvdhoorn inspired me to searched for remove broken package manually and I found this link: http://www.iasptk.com/ubuntu-fix-broken-package-best-solution/ I went to This file with "root" and do:
sudo nano /var/lib/dpkg/status (you can use vim or gedit instead of nano)
Locate the corrupt package, and remove the whole block of information about it and save the file.
in my case I find the ros-indigo-pckg and remove all of them as it described to the above link.
after that I do
sudo apt-get autoremove -f
and after that
sudo apt-get update && sudo apt-get install dpkg
and then I start over the ROS -indigo installation tutorial.
and everything get fixed.
another easier solution is if you are able to install ubuntu again, and start fresh, before install the
sudo apt-get install ros-indigo-desktop-full
do this:
sudo apt-get update && sudo apt-get install dpkg
Thank you Iman