Eu sei que o python já está lá quando o Ubuntu está instalado.
Enquanto algum outro usuário usou minha máquina tentou instalar algumas outras ferramentas de terceiros (por exemplo: mockSSH etc) outra versão do Python foi instalada. E agora alguns softwares importantes como o meld não estão lá.
Quando tento instalá-los, ele me chama Unable to correct problems, you have held broken packages.
.
Erro:
me@my-pc:~$ sudo apt-get install meld
[sudo] password for me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
meld : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
Depends: python-gi (>= 3.8) but it is not going to be installed
Depends: python-gi-cairo but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Eu tentei várias maneiras (por exemplo: conserto quebrado, instalação com o aptitude, instalação de pacotes personalizados etc) mas nada funcionou.
Por exemplo:
1. Forçar a instalação
me@my-pc:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-headers-4.4.0-96 linux-headers-4.4.0-96-generic linux-headers-4.4.0-97 linux-headers-4.4.0-97-generic linux-image-4.4.0-31-generic
linux-image-4.4.0-96-generic linux-image-4.4.0-97-generic linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-96-generic linux-image-extra-4.4.0-97-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
- Instalando com o aptitude
me@my-pc:~$ sudo aptitude -f install meld
The following NEW packages will be installed:
meld python:i386{ab} python-cairo{a} python-gi{a} python-gi-cairo{a} python-minimal:i386{a} python2.7:i386{a}
python2.7-minimal:i386{a}
0 packages upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 2,447 kB of archives. After unpacking 8,988 kB will be used.
The following packages have unmet dependencies:
python : Conflicts: python:i386 but 2.7.11-1 is to be installed.
python:i386 : Conflicts: python but 2.7.13-1 is installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) meld [Not Installed]
2) python:i386 [Not Installed]
3) python-cairo [Not Installed]
4) python-gi [Not Installed]
5) python-gi-cairo [Not Installed]
Leave the following dependencies unresolved:
6) python-minimal:i386 recommends python:i386
Accept this solution? [Y/n/q/?]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Quando eu verifico python, ele lista isso.
me@my-pc:~$ python
python python2.7 python2-config python3.5 python3.5m python3-config python3m-config
python2 python2.7-config python3 python3.5-config python3.5m-config python3m python-config
Meu problema é, como consertar esses pacotes quebrados e instalar o python como deveria ser?