erro de instalação do python. python: i386 dependências não atendidas [duplicado]

0
$ sudo apt-get install python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:

The following packages have unmet dependencies:
python:i386 : Depends: python2.7:i386 (>= 2.7.5-1~) but it is not going to be installed
              Depends: python-minimal:i386 (= 2.7.5-5ubuntu3) but it is not going to be installed
              Depends: libpython-stdlib:i386 (= 2.7.5-5ubuntu3) but it is not going to be installed
python2.7 :   Depends: python2.7-minimal (= 2.7.12-1~trusty1) but it is not going to be installed
              Depends: libpython2.7-stdlib (= 2.7.12-1~trusty1) but it is not going to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Antes eu usava o comando sudo apt-get autoremove 'python.*' e agora estou recebendo problemas de instalação e dependências durante o download do Python 2.7.

Eu preciso baixar o Python 2.7.

    
por Safdar Mirza 18.04.2018 / 07:27

1 resposta

0

Para os mais técnicos, você pode criar seus próprios a partir do código-fonte.

1 - Faça o download e extraia v2.7.6 - link

wget https://www.python.org/ftp/python/2.7.5/Python-2.7.6.tar.xz && tar -xJvf Python-2.7.6.tar.xz

2 - Mova para o diretório

cd Python-2.7.6

3 - Configurar

./configure

4 - Criar & instalar

make && sudo make install

5 - Verifique

O comando

python deve exibir um prompt contendo algo como

Python 2.7.6 (default, Nov 23 2017, 15:49:48) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
    
por ggdx 19.04.2018 / 14:20