Announcement

Collapse
No announcement yet.

I can't open software sources

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [RESOLVED] I can't open software sources

    This happens to me, if I try to open it through Discover, it doesn't give me an error, but it doesn't open.

    So I went to Konsole, I entered:
    sudo /usr/bin/software-properties-qt
    And the result is:
    Code:
    Traceback (most recent call last):
    File "/usr/bin/software-properties-qt", line 36, in <module>
    from softwareproperties.qt.SoftwarePropertiesQt import SoftwarePropertiesQt
    File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 55, in <module>
    from UbuntuDrivers import detect
    ModuleNotFoundError: No module named 'UbuntuDrivers'
    I would like to comment that it worked before and I haven't made any changes of this type...​

    #2
    That looks like a Python problem. Do the directory /usr/lib/python3/dist-packages/UbuntuDrivers, and the file /usr/lib/python3/dist-packages/UbuntuDrivers/detect.py, exist? If they do, your Python set up is confused; I don't know how that is possible using sudo. If either doesn't, you could try reinstalling ubuntu-drivers-common or software-properties-qt.

    Because Ubuntu uses Python, if doing any Python install (for example, using pip install) I suggest always using a venv when doing your own Python stuff.
    Regards, John Little

    Comment


      #3
      Originally posted by jlittle View Post
      That looks like a Python problem. Do the directory /usr/lib/python3/dist-packages/UbuntuDrivers, and the file /usr/lib/python3/dist-packages/UbuntuDrivers/detect.py, exist? If they do, your Python set up is confused; I don't know how that is possible using sudo. If either doesn't, you could try reinstalling ubuntu-drivers-common or software-properties-qt.
      Absolutely right.
      The directory /usr/lib/python3/dist-packages/UbuntuDrivers did not exist, therefore, the .py file did not exist either.
      I have reinstalled software-properties-qt, it did not solve anything.
      I have gone to reinstall ubuntu-drivers-common and...surprise, it was not installed...
      I have installed it and then yes, the mentioned directory has been created and now it opens the software sources without problems.​

      Because Ubuntu uses Python, if doing any Python install (for example, using pip install) I suggest always using a venv when doing your own Python stuff.
      As far as I remember I have not installed anything with pip install, the only thing I have installed like this related to python has been Visual Studio...but I mention it because of the relationship with python, I have not installed anything with pip install as far as I remember...

      Thanks

      Comment

      Working...
      X