Experimente apt-get install -f
. Se isso ainda fornecer o erro das dependências, eu acho que você terá que remover e reinstalar o pacote.
Eu quero instalar o seguinte pacote no Ubuntu 14.4 LTS
libreadline-dev liblua5.2-dev libevent-dev python-dev
Mas quando quero instalar o erro libreadline-dev
, mostra:
The following packages have unmet dependencies:
libreadline-dev : Depends: libreadline6-dev (= 6.2-8) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
E quando eu quiser corrigi-lo, instale libreadline6-dev
error mostra:
The following packages have unmet dependencies:
libreadline6-dev : Depends: libreadline6 (= 6.2-8) but 6.3-4ubuntu2 is to be installed
Depends: libtinfo-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Instale também libevent-dev
mostra o erro:
The following packages have unmet dependencies:
libevent-dev : Depends: libevent-2.0-5 (= 2.0.16-stable-1ubuntu0.1) but 2.0.21-stable-1ubuntu1.14.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
E python-dev
erro mostra:
The following packages have unmet dependencies:
python-dev : Depends: python (= 2.7.3-0ubuntu2.2) but 2.7.5-5ubuntu3 is to be installed
Depends: python2.7-dev (>= 2.7.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Como posso corrigir isso?
Experimente apt-get install -f
. Se isso ainda fornecer o erro das dependências, eu acho que você terá que remover e reinstalar o pacote.