We have depicted this article as the reference to install network simulator 3 in Ubuntu.
Phase: I
As the initial process, we have to download ns3 package through the URL which is mentioned below,
https://www.nsnam.com/2021/07/installing-ns-334-in-ubuntu-2004.html

Phase: II
Following that we have to install the basic required packages that are functional through the following commands.
sudo apt update
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

Phase: III
Additionally, we have to install the packages and that are implemented through following commands in Ubuntu 20.04 terminal window.
cd ns-allinone-3.34/
./build.py –enable-examples –enable-tests

Phase: IV
In addition, we have to configure the installed packages through the utilization of following commands.
cd ns-3.34/
./configure

Our research professionals will assist you to obtain the best results using the required and new techniques. In addition, you guys can contact us at any time to clarify your doubts.