Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

This happen after the download of Ubuntu 13.04 and I can't even download stuff because of this problem:

root@Viktor-Dator:/home/viktor# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
The following packages have been kept back:
libboost-dev libboost-filesystem-dev libboost-regex-dev libboost-system-dev
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 1,646 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 264683 files and directories currently installed.)
Removing xserver-common-lts-raring ...
Removing 'diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-raring'
dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with
different file `/usr/lib/xorg/protocol-precise.txt', not allowed
dpkg: error processing xserver-common-lts-raring (--remove):
subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports is reached already
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Output off sudo apt-get check

viktor@Viktor-Dator:~$ sudo apt-get check
[sudo] password for viktor: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
share|improve this question
@Lucio: No, it's a different error –  Florian Diesch Mar 4 at 13:24
add comment

marked as duplicate by Avinash Raj, Ask, Florian Diesch, karel, Jobin Mar 11 at 15:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

Ok, since apparently is not any package that when bad, we must remove it manually without the help of apt-get:

sudo apt-get update
sudo apt-get -s --reinstall install xserver-common
sudo dpkg --purge --force-all xserver-common-lts-raring
sudo apt-get --reinstall install xserver-common
sudo apt-get autoremove

Now you may want to unhold the package that you have hold:

sudo dpkg --set-selections < echo "libboost-dev install"
sudo dpkg --set-selections < echo "libboost-filesystem-dev install"
sudo dpkg --set-selections < echo "libboost-regex-dev install"
sudo dpkg --set-selections < echo "libboost-system-dev install"
sudo dpkg --set-selections < echo "libboost-thread-dev install"

Do a final sudo apt-get check to verify that everything is ok.

share|improve this answer
add comment

first you need to clear your console so just try this command that will clear your fault dependency in your system. and you can install any plugin again.

sudo dpkg -r libjack-jackd2-0
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade

The commands remove the offending file, attempts to fix the broken dependency and updates your system.

share|improve this answer
Sorry, but I don't see that package anywhere giving problems. –  Braiam Nov 26 '13 at 14:20
add comment

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