Não é possível instalar o bitcoind no sistema atualizado devido a conflitos de pacote

3

Eu estava usando o Ubuntu 10.04 e tentei instalar bitcoind . Isso falhou e eu atualizei para o Ubuntu 12.04. Quando executo o bitcoind , ainda não funciona:

$ bitcoind    
************************
EXCEPTION: 11DbException       
Db::open: Invalid argument       
bitcoin in AppInit()       

terminate called after throwing an instance of 'DbException'
  what():  Db::open: Invalid argument
Aborted (core dumped)

Além disso, tentar reinstalar não funciona:

$ sudo apt-get install bitcoind
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  bitcoind
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 981 kB of archives.
After this operation, 2,873 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu/ precise/main bitcoind amd64 0.8.5-precise1 [981 kB]
Fetched 981 kB in 7s (130 kB/s)                                                                                               
(Reading database ... 222704 files and directories currently installed.)
Unpacking bitcoind (from .../bitcoind_0.8.5-precise1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/bitcoind_0.8.5-precise1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/bitcoind', which is also in package bitcoin 0.3.24-ppa2~lucid
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/bitcoind_0.8.5-precise1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Como posso obter bitcoind funcionando? Eu não me importo de desinstalar e reinstalar se é isso que é necessário.

atualização 1

Eu tentei remover o pacote e instalar novamente, mas ainda sem sorte:

$ sudo apt-get remove --purge bitcoind
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package bitcoind is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

$ sudo apt-get install bitcoind
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  bitcoind
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 981 kB of archives.
After this operation, 2,873 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu/ precise/main bitcoind amd64 0.8.5-precise1 [981 kB]
Fetched 981 kB in 7s (136 kB/s)                                                                                               
(Reading database ... 222704 files and directories currently installed.)
Unpacking bitcoind (from .../bitcoind_0.8.5-precise1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/bitcoind_0.8.5-precise1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/bitcoind', which is also in package bitcoin 0.3.24-ppa2~lucid
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/bitcoind_0.8.5-precise1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por mulllhausen 16.09.2013 / 01:19

3 respostas

0

no final, essa foi a solução:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/bitcoind_0.8.5-precise1_amd64.deb
    
por mulllhausen 16.09.2013 / 14:10
2

Tente isso e veja se ele é instalado. Primeiro instale os pré-requisitos necessários para executar o bitcoind.

Basta pressionar Ctrl + Alt + T no seu teclado para abrir o Terminal. Quando se abre, execute o (s) comando (s) abaixo:

sudo apt-get purge bitcoind
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind

e então tudo está OK.

    
por Mitch 16.09.2013 / 08:07
1

O pacote bitcoin ainda está lá! Instalado!

O conjunto completo de comandos é:

sudo apt-get purge bitcoin*
sudo apt-get update
sudo apt-get install bitcoind

O problema é que você ainda tem um pacote chamado bitcoin que não foi desinstalado. Depois de fazer isso, sua instalação deve ficar bem.

Isso deve ser relatado como um bug para os gerenciadores de pacotes

    
por Braiam 17.09.2013 / 00:57