I wanted to install ROS on my PC and for that, I needed to make sure download from 'restricted', 'universe' and 'multiverse' repositories are allowed. For this, I need to change settings on 'Software & Update' app, but everytime I click on it, nothing happens. The same happens with the 'Software Updater' app. I tried multiple solutions recommended online to fix this like reinstalling update-manager, running sudo apt update, etc. But nothing worked.
I also tried using the command line to allow download from these repositories using this command: sudo add-apt-repository universe
. But I got the following error:
File "/usr/bin/add-apt-repository", line 12, in <module>
from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 68, in <module>
from gi.repository import Gio
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module>
from . import _gi
ImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/__init__.py)
Again, I tried installing gi repository and running the command but again, it did not work. I think this will be solved once I fix the 'Software & Updates' app. I am fairly new to linux. Please guide me with how I can solve this. Thanks a ton!
Edit: My OS is Ubuntu 20.04.5 LTS 64-bit. When I installed I think the default python version was 3.7 (not sure, where do I check this?). But now, python --version shows 3.10.4. COuld this cause the problem? How do I correct this?