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

Possible Duplicate:
Software center not opening

Does anyone know how I can get my software center to stay open? It happened after trying to use Synaptic last night, don't know if that's what caused it, but I can't open that (synaptic) either. If it helps, when I try to open software center in the terminal I get:

$ software-center
2012-07-21 10:27:27,795 - - INFO - setting up proxy 'None'
2012-07-21 10:27:27,800 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True
2012-07-21 10:27:28,061 - - WARNING - Could not get usefulness from server, no username in config file
2012-07-21 10:27:28,195 - - INFO - show_available_packages: search_text is '', app is None.
2012-07-21 10:27:28,480 - 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:Type 'b' is not known on line 1 in source list /etc/apt/sources.list.d/danielrichter2007-grub-customizer-precise.list
2012-07-21 10:27:29,515 - 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 <module>
  File "/usr/share/software-center/softwarecenter/ui/gtk3/", line 1420, in run
  File "/usr/share/software-center/softwarecenter/ui/gtk3/", line 1350, in show_available_packages
  File "/usr/share/software-center/softwarecenter/ui/gtk3/session/", line 154, in set_active_view
  File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/", line 169, in init_view
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/", line 237, in __init__
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/", line 504, in build
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/", line 270, in _build_homepage_view
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/", line 443, in _append_whats_new
    whats_new_cat = self._update_whats_new_content()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/", line 432, 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 10:56

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.

This question should instead be filed as a bug report, and as such is off-topic, thanks! Instructions on filing a bug report are here. – Jjed Jul 24 '12 at 0:26

1 Answer 1

Open your terminal and type this:

sudo apt-get update
sudo apt-get install app-install-data

Then again try to open the software-center.

share|improve this answer
thanks alot, i found the solution to the problem though, apperently i had a file that i need to remove via sudo rm it was stoping me from opening both software center and synaptic – user78435 Jul 21 '12 at 15:52

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