I\'m trying to add a repository to ppa with the add-apt-repository commands but the _gi module from Python is not found.
add-apt-repository
_gi
I did this command
Follow the below steps to solve the issue.
(1) ls -al /usr/bin | grep python
(2) sudo gedit /usr/bin/add-apt-repository
Then change the !/usr/bin/python3 to
!/usr/bin/python3.6