I can not remove broken package. Use the following command:
sudo apt-get -f install
but I get the following response:
Preparing to unpack .../nodejs_0.10.28-1chl1~trusty1_amd64.deb ... Unpacking nodejs (0.10.28-1chl1~trusty1) over (0.10.25~dfsg2-2ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/nodejs_0.10.28-1chl1~trusty1_amd64.deb (--unpack): trying to overwrite '/usr/share/man/man1/node.1.gz', which is also in package nodejs-legacy 0.10.25~dfsg2-2ubuntu1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Processing triggers for man-db (18.104.22.168-1) ... Errors were encountered while processing: /var/cache/apt/archives/nodejs_0.10.28-1chl1~trusty1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried various commands like
2015 sudo apt-get clean 2020 sudo dpkg --configure -a 2023 sudo apt-get autoremove 2034 sudo apt-get upgrade && sudo apt-get -f install
But i don't have any results I can't install synaptic What does it take to remove a broken package?
run this command to remove broken packages in ubuntu.
sudo dpkg --remove --force-remove-reinstreq package_name
after removing package update your system with command
sudo apt-get update
restart system after successfully updation.