Score:0

Error installing NS-3 in Ubuntu 21.04

tr flag

I am trying to install NS-3 in my ubuntu-21.04-desktop-amd64.iso, but during the attempted installation, when I run the following command:

sudo apt-get install gir1.2-goocanvas-2.0 python-gi python-gi-cairo python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3

I get this error:

E: Package 'python-gi' has no installation candidate
E: Unable to locate package python-gi-cairo
in flag
[Looks like that package is only available for LTS releases](https://packages.ubuntu.com/search?keywords=python-gi)
Knud Larsen avatar
by flag
NS-3 basic requirements `sudo apt install g++ python3 python3-dev pkg-config sqlite3 python3-setuptools git` https://www.nsnam.org/wiki/Installation#Ubuntu.2FDebian.2FMint ..... and for Netnim `qtbase5-dev qt5-qmake`
Score:1
sa flag

python-gi, python-cairo, and python3-gi-cairo packages are not available in the default Ubuntu 21.04 repositories. Install python-gi, python-cairo, and python3-gi-cairo from Ubuntu 20.04 in Ubuntu 21.04. After that, install gir1.2-goocanvas-2.0, python3-gi, python3-gi-cairo, python3-pygraphviz, gir1.2-gtk-3.0, and ipython3.

Open the terminal and type:

wget -c http://mirrors.kernel.org/ubuntu/pool/universe/p/pygobject/python-gi_3.36.0-1_amd64.deb http://mirrors.kernel.org/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb http://mirrors.kernel.org/ubuntu/pool/universe/p/pygobject/python-gi-cairo_3.36.0-1_amd64.deb
sudo apt update   
sudo apt install python2   
sudo apt install ./python-gi_3.36.0-1_amd64.deb 
sudo apt install ./python-cairo_1.16.2-2ubuntu2_amd64.deb
sudo apt install ./python-gi-cairo_3.36.0-1_amd64.deb
sudo apt install gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.