Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Software center not opening

I think I've tried everything found. It is on just for a second. I can't even send an error report. What should I do? thanks in advance.

so this is what I get after typing software-center in terminal (sorry, not as a code):

2012-06-16 22:54:17,610 - - INFO - setting up proxy 'None'
2012-06-16 22:54:17,617 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True
2012-06-16 22:54:18,142 - - WARNING - Could not get usefulness from server, no username in config file
2012-06-16 22:54:18,697 - softwarecenter.db.pkginfo_impl.aptcache - INFO -
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/", line 243, in open
    self._cache = apt.Cache(GtkMainIterationProgress())
  File "/usr/lib/python2.7/dist-packages/apt/", line 102, in __init__
  File "/usr/lib/python2.7/dist-packages/apt/", line 149, in open
SystemError: E:Typ „ain“ je neznámy na riadku 2 v zozname zdrojov /etc/apt/sources.list.d/yannubuntu-boot-repair-precise.list
2012-06-16 22:54:21,916 - softwarecenter.db.enquire - ERROR - _get_estimate_nr_apps_and_nr_pkgs failed
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/db/", line 115, in _get_estimate_nr_apps_and_nr_pkgs
    tmp_matches = enquire.get_mset(0, len(self.db), None, xfilter)
  File "/usr/share/software-center/softwarecenter/db/", line 89, in __call__
    if (not pkgname in self.cache and
  File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/", line 263, in __contains__
    return self._cache.__contains__(k)
AttributeError: 'NoneType' object has no attribute '__contains__'
Traceback (most recent call last):
  File "/usr/bin/software-center", line 176, in
  File "/usr/share/software-center/softwarecenter/ui/gtk3/", line 1358, in run
  File "/usr/share/software-center/softwarecenter/ui/gtk3/", line 1288, in show_available_packages
  File "/usr/share/software-center/softwarecenter/ui/gtk3/session/", line 149, in set_active_view
  File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/", line 168, in init_view
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/", line 240, in __init__
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/", line 491, in build
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/", line 266, in _build_homepage_view
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/", line 430, in _append_whats_new
    whats_new_cat = self._update_whats_new_content()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/", line 419, in _update_whats_new_content
    docs = whats_new_cat.get_documents(self.db)
  File "/usr/share/software-center/softwarecenter/db/", line 124, in get_documents
  File "/usr/share/software-center/softwarecenter/db/", line 317, in set_query
  File "/usr/share/software-center/softwarecenter/db/", line 212, in _blocking_perform_search
    matches = enquire.get_mset(0, self.limit, None, xfilter)
  File "/usr/share/software-center/softwarecenter/db/", line 89, in __call__
    if (not pkgname in self.cache and
  File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/", line 263, in __contains__
    return self._cache.__contains__(k)
AttributeError: 'NoneType' object has no attribute '__contains__'

share|improve this question

marked as duplicate by jokerdino, Eliah Kagan, Jorge Castro, Mitch, Tom Brossman Sep 8 '12 at 11:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

try running in a terminal (Ctrl+Alt+t): 'software-center' and paste the output here – leousa Jun 16 '12 at 20:37
are you running it from a guest session or from your user session? – leousa Jun 16 '12 at 21:12
From user session.. – Noye Jun 16 '12 at 21:25
If you want to submit data to Launchpad and file a bug report on your 12.04 system, my answer here explains how. (That answer does not explain the cause of this crash, however--it is in no way specific to the particular Software Center problem you are experiencing.) – Eliah Kagan Jun 17 '12 at 8:43
I had the same problem removing the sources list solved the problem. Delete lists folder in /var/lib/apt/. Then it is recommended to run sudo apt-get update so the lists folder will be created again. – user126106 Jun 30 '14 at 11:12

You have an error with one PPA. Typing "sudo rm /etc/apt/sources.list.d/yannubuntu* && sudo apt-get update" should fix it.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.