Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I cannot access Software Sources. Clicking it from the dash just doesn't show anything. Clicking it from the Ubuntu Software Center shows the Progress tab and remains busy briefly, but then when it's done, nothing happens. Trying Packages -> Repositories in Synaptic shows me the "Repositories changed" message and instructs me to click Reload, which I did three times and still got the same message.

Repeating any of this multiple times did not change the outcome. I suppose something got messed up because of a power failure when I was installing an app a while back.

Edit: When I run software-properties-gtk, I get the following output:

Traeback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 32, in <module>
    import aptsources
  File "/usr/lib/python3/dist-packages/aptsources/__init__.py", line 1, in <module>
    import apt_pkg
ImportError: No module named 'apt_pkg'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 64, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 4, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 21, in <module>
    import apt_pkg
ImportError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 32, in <module>
    import aptsources
  File "/usr/lib/python3/dist-packages/aptsources/__init__.py", line 1, in <module>
    import apt_pkg
ImportError: No module named 'apt_pkg'

Hmm, sounds like a module named apt_pkg is missing. I tried apt-get install --reinstall software-properties-gtk, but it didn't fix it.

Any help on what to do? Thanks.

share|improve this question
    
If this is a bug, then you should report it. Here's a link to help you report it: help.ubuntu.com/community/ReportingBugs . Skip to the 'How to report bugs.' Click the launchpad link. –  nerof61 Jan 18 '13 at 16:53
    
@vasa1: Yeah, right. I said bug but meant problem. Thanks for mentioning it. –  Yamaho Jan 18 '13 at 17:11
1  
Have your tried running it directly from the terminal? software-properties-gtk If you see an error message in the terminal, add it to your quesiton. –  chaskes Jan 18 '13 at 18:28
    
I wonder if I'm supposed to bump after so much time has lapsed and the question got no attention... –  Yamaho Jan 30 '13 at 4:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.