auto close in software center in ubuntu

Asked by paul_joe_mick on 2010-01-11

when i open application>ubuntu software center. it does try to load but few seconds later it closed. i now cannot use software center. yesterday i can still use it. can someone answer me how to make it working again? I don't want to reinstall ubuntu as it is a last chance. am i infected by a virus?

Question information

Leo Arias (elopio) said : #1

It's not likely to be a virus.

Could you please open a terminal (applications>accessories>terminal) and run the ubuntu software center?
The program might print some useful information on the terminal, that you can copy here so we can help you spot the error.

The command to run the software center is:
software-center

paul_joe_mick (paul-joe-mick) said : #2

user@user-desktop:~$ software-center

(software-center:1726): GStreamer-WARNING **: adding type GstFourcc multiple times

(software-center:1726): GStreamer-WARNING **: adding type GstIntRange multiple times

(software-center:1726): GStreamer-WARNING **: adding type GstDoubleRange multiple times

(software-center:1726): GStreamer-WARNING **: adding type GstFractionRange multiple times

(software-center:1726): GStreamer-WARNING **: adding type GstValueList multiple times

(software-center:1726): GStreamer-WARNING **: adding type GstValueArray multiple times

(software-center:1726): GStreamer-WARNING **: adding type GstFraction multiple times

(software-center:1726): GStreamer-WARNING **: adding type gdouble multiple times

(software-center:1726): GStreamer-WARNING **: adding type gfloat multiple times

(software-center:1726): GStreamer-WARNING **: adding type gchararray multiple times

(software-center:1726): GStreamer-WARNING **: adding type gboolean multiple times

(software-center:1726): GStreamer-WARNING **: adding type GEnum multiple times

(software-center:1726): GStreamer-WARNING **: adding type GFlags multiple times

(software-center:1726): GStreamer-WARNING **: adding type gint multiple times

(software-center:1726): GStreamer-WARNING **: adding type gint64 multiple times

paul_joe_mick (paul-joe-mick) said : #3

(software-center:1726): GStreamer-WARNING **: adding type gulong multiple times
Could not initialize GStreamer: Error re-scanning registry , child terminated by signal
user@user-desktop:~$

Seems a known bug... https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/470564

As a workaround you can also try to install packages from menu System→Administration→Synaptic package manager or using terminal commands ask here if you are in trouble.

Hth

Best Leo Arias (elopio) said : #5

Here ( http://ubuntuforums.org/showthread.php?t=1343696 ) they say that removing a package made the software center work.

Run in the terminal:
sudo aptitude remove frei0r-plugins

paul_joe_mick (paul-joe-mick) said : #6

thankyou very much. it really help. i can use the center again. thanks

Notified also to the bug report as a work around...

Thank you

papukaija (papukaija) said : #8

This problem is related to bug 459940.

Yasir Arafat Hasib (arafatix) said : #9

My problem and what i did but still software section not working/visible
root@ecds-open:~# software-center

(software-center:2348): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgsttypefindfunctions.so': /usr/lib/gstreamer-0.10/libgsttypefindfunctions.so: invalid ELF header

(software-center:2348): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstaudioresample.so': /usr/lib/gstreamer-0.10/libgstaudioresample.so: invalid ELF header
Segmentation fault

root@ecds-open:~# sudo aptitude remove frei0r-plugins

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

when I tried opening ubuntu sofware centre from the terminal console, this is what the reply was what I pasted below , please what can I do?

  File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", 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>
    app.run(args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1422, in run
    self.show_available_packages(args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1352, in show_available_packages
    self.view_manager.set_active_view(ViewPages.AVAILABLE)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/session/viewmanager.py", line 154, in set_active_view
    view_widget.init_view()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/availablepane.py", line 171, in init_view
    self.apps_filter)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/catview_gtk.py", line 238, in __init__
    self.build(desktopdir)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/catview_gtk.py", line 511, in build
    self._build_homepage_view()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/catview_gtk.py", line 271, in _build_homepage_view
    self._append_whats_new()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/catview_gtk.py", line 450, in _append_whats_new
    whats_new_cat = self._update_whats_new_content()
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/catview_gtk.py", line 439, in _update_whats_new_content
    docs = whats_new_cat.get_documents(self.db)
  File "/usr/share/software-center/softwarecenter/db/categories.py", line 124, in get_documents
    nonblocking_load=False)
  File "/usr/share/software-center/softwarecenter/db/enquire.py", line 317, in set_query
    self._blocking_perform_search()
  File "/usr/share/software-center/softwarecenter/db/enquire.py", line 212, in _blocking_perform_search
    matches = enquire.get_mset(0, self.limit, None, xfilter)
  File "/usr/share/software-center/softwarecenter/db/appfilter.py", line 89, in __call__
    if (not pkgname in self.cache and
  File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 263, in __contains__
    return self._cache.__contains__(k)
AttributeError: 'NoneType' object has no attribute '__contains__'
koha@ubuntu:~$