Erro ao instalar dependencias

Iniciado por Ceetros, 09 de Setembro de 2015, 17:48

tópico anterior - próximo tópico

Ceetros

Eu to tendo um erro no linux:

  Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 2.6.32-32-pve x86_64)

* Documentation:  https://help.ubuntu.com/
Last login: Wed Sep  9 16:44:40 2015 from 187.84.143.132
root@167:~# 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:
  libboost1.54-dev libboost1.54-tools-dev
Suggested packages:
  libboost1.54-doc libboost-coroutine.54-dev libboost-log.54-dev
  libmpfrc++-dev libntl-dev xsltproc doxygen docbook-xml docbook-xsl
  default-jdk fop
The following NEW packages will be installed:
  libboost1.54-dev libboost1.54-tools-dev
0 upgraded, 2 newly installed, 0 to remove and 112 not upgraded.
103 not fully installed or removed.
Need to get 0 B/6730 kB of archives.
After this operation, 101 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 40387 files and directories currently installed.)
Preparing to unpack .../libboost1.54-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost1.54-dev (1.54.0-4ubuntu3.1) ...
dpkg: error processing archive /var/cache/apt/archives/libboost1.54-dev_1.54.0-4ubuntu3.1_amd64.deb (--unpack):
trying to overwrite '/usr/include/boost/numeric/ublas/symmetric.hpp', which is also in package libboost1.40-dev 1.40.0-4ubuntu4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libboost1.54-tools-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost1.54-tools-dev (1.54.0-4ubuntu3.1) ...
dpkg: error processing archive /var/cache/apt/archives/libboost1.54-tools-dev_1.54.0-4ubuntu3.1_amd64.deb (--unpack):
trying to overwrite '/usr/share/boostbook/dtd/1.1/boostbook.dtd', which is also in package libboost1.40-dev 1.40.0-4ubuntu4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libboost1.54-dev_1.54.0-4ubuntu3.1_amd64.deb
/var/cache/apt/archives/libboost1.54-tools-dev_1.54.0-4ubuntu3.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)root@167:~#       


Como arrumo?

zekkerj

Tente executar estes comandos:

sudo apt-get remove libboost1.54-dev  libboost1.54-tools-dev
sudo dpkg --configure -a
sudo apt-get -f install


Isso deve trazer seu sistema de volta a uma "normalidade". Na próxima vez que tentar instalar esse pacote, remova primeiro o "libboost1.40dev", que parece ter arquivos conflitando com este pacote que vc quer instalar.
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D