-Hi I'm trying to install ns3.34 in ubuntu in VMware workstation pro and when I typed the command :
$ 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.
- It got error like this :
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
- Can someone help me fix this error? I'm sorry in advance if my grammar and question are wrong somewhere, it's my first time learning about ns3 and virtual machines.
apt-cache search python | grep dev
andapt-cache search qt5 | less
to find the correct package names. Also, removepython-dev
andqt5-default
from your command, to install the un-complained packages. Dopython -v
sndpython3 -v
to see which version you're running. Had you specified which Ubuntu release you are running, I could have been more helpful. Please read https://askubuntu.com/help/how-to-ask and https://askubuntu.com/help/formatting – waltinator Oct 30 '22 at 03:27universe
is the obvious answer... but starting point is knowing your software stack (ie. what Ubuntu product & what release you're using) – guiverc Oct 30 '22 at 03:28