2 votos

Package 'Python-dev' and package 'qt5-default' has no installation candidate error in ubuntu terminal

-Hola estoy tratando de instalar ns3.34 en ubuntu en VMware workstation pro y cuando escribí el comando :

$ sudo apt install g++ python3 python3-dev \
python-dev pkg-config sqlite3 python3-setuptools git qt5-default \
gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz \
gir1.2-gtk-3.0 ipython3 openmpi-bin \
openmpi-common openmpi-doc libopenmpi-dev autoconf cvs bzr \
unrar openmpi-bin openmpi-common openmpi-doc \
libopenmpi-dev tcpdump wireshark libxml2 libxml2-dev.
  • Aparece un error como este :

    Reading package lists... Done Building dependency tree... Done Reading state information... Done Package python-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: python2-dev:i386 python2:i386 python2-dev python2 python-dev-is-python3

    Package qt5-default is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

    E: Package 'python-dev' has no installation candidate E: Package 'qt5-default' has no installation candidate

  • ¿Puede alguien ayudarme a solucionar este error? Lo siento de antemano si mi gramática y la pregunta están mal en alguna parte, es mi primera vez aprendiendo sobre ns3 y máquinas virtuales.

1voto

Sam Whited Puntos 142

Debes de estar siguiendo algún tutorial antiguo, que ya ha quedado obsoleto.

  1. Utilice python3-dev en lugar de python-dev .

  2. Según https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1926802 ya no necesitas qt5-default en versiones recientes de Ubuntu, ya que la versión 5 de Qt es la versión por defecto (Qt4 está ahora obsoleta). Puedes simplemente eliminarla de la lista de paquetes. Si necesitas instalar paquetes de desarrollo para qt, ejecuta

    sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools

EnMiMaquinaFunciona.com

EnMiMaquinaFunciona es una comunidad de administradores de sistemas en la que puedes resolver tus problemas y dudas.
Puedes consultar las preguntas de otros sysadmin, hacer tus propias preguntas o resolver las de los demás.

Powered by:

X