Não é possível instalar o Cassandra no Ubuntu 16.04

1

Correndo para este erro ao instalar o cassandra

Unpacking python-setuptools (30.3.0) ...
dpkg: error processing archive /var/cache/apt/archives/python-setuptools_30.3.0_all.deb (--unpack):
 trying to overwrite '/usr/lib/python2.7/dist-packages/pkg_resources/extern/__init__.py', which is also in package python-pkg-resources 20.7.0-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/python-setuptools_30.3.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Não consigo limpar os recursos python-pkg

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 python-aptdaemon : Depends: python-pkg-resources but it is not going to be installed
 python-chardet : Depends: python-pkg-resources but it is not going to be installed
 python-cryptography : Depends: python-setuptools (>= 11.3) but it is not going to be installed
 python-zope.interface : Depends: python-setuptools but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
aditya@konoha2:/var/lib/dpkg/info$ 

Estou preso, incapaz de instalar qualquer coisa ou até mesmo limpar a instalação atual. Qualquer ajuda será apreciada.

    
por Aditya 06.03.2017 / 16:09

1 resposta

1

Este foi um problema de repositórios conflitantes. Eu tinha alguns repositórios apontando para o Ubunto 12.04 (Precise). Com base nesta resposta link

Uma vez eu os removi e corri

sudo apt-get update
sudo apt-get -f install

Funcionou bem

Get:1 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 python-setuptools all 20.7.0-1 [169 kB]
Fetched 169 kB in 3s (47.0 kB/s)            
(Reading database ... 348605 files and directories currently installed.)
Preparing to unpack .../python-setuptools_20.7.0-1_all.deb ...
Unpacking python-setuptools (20.7.0-1) ...
Setting up python-setuptools (20.7.0-1) ...
Setting up python-cryptography (1.6) ...
Setting up python-zope.interface (4.3.2) ...

A instalação da cassandra depois disso também funcionou bem quando a dependência foi classificada.

Esta é a política do apt-cache após a instalação bem-sucedida

sudo apt-cache policy python-setuptools python-pkg-resources
python-setuptools:
  Installed: 20.7.0-1
  Candidate: 20.7.0-1
  Version table:
 *** 20.7.0-1 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://in.archive.ubuntu.com/ubuntu xenial/main i386 Packages
        100 /var/lib/dpkg/status
python-pkg-resources:
  Installed: 20.7.0-1
  Candidate: 20.7.0-1
  Version table:
 *** 20.7.0-1 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://in.archive.ubuntu.com/ubuntu xenial/main i386 Packages
        100 /var/lib/dpkg/status
    
por gap_j 06.03.2017 / 16:44

Tags