Error "Algunos paquetes no se pudieron instalar" al instalar python3-pip en Ubuntu 16.04

Error "Algunos paquetes no se pudieron instalar" al instalar python3-pip en Ubuntu 16.04

Cuando ejecuto el comando sudo apt install python3-pipen Ubuntu 16.04, aparecen estos errores

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:
 python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1-2ubuntu0.4 is to be installed
               Recommends: python3-dev (>= 3.2) but it is not going to be installed
               Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Respuesta1

Simplemente retire el python-pip-whlpaquete e intente nuevamente:

sudo apt-get remove python-pip-whl

Respuesta2

Después de buscar mucho, finalmente pude instalar pip3 en mi máquina Ubuntu 16.04 simplemente ejecutando estos comandos

sudo apt-get install python3-setuptools
sudo easy_install3 pip

Respuesta3

Tienes paquetes rotos, así que sigue estos pasos:

  1. Reparar paquetes rotos:

    sudo apt -f install
    
  2. Actualizar:

    sudo apt update && sudo apt dist-upgrade
    
  3. Ahora instale normalmente:

    sudo apt install python3-pip
    
  4. Comprueba si está instalado:

    pip3 --version
    

Eso debería solucionarlo.

Respuesta4

Después de buscar mucho finalmente esto me funciona.

sudo apt-get install aptitude

Luego instale pip3 con este comando:

sudo aptitude install python3-pip

información relacionada