This sequence of commands is a very useful fix (that I had trouble
tracking down) so it deserves to be highlighted somehow!!

The solution worked for me on LinuxMint-13 (Maya64) when software-center
would start but the 'Quick filter' field had no effect.  I assumed the
problem was similar as I had related errors when running:

$ update-apt-xapian-index -f

No handlers could be found for logger "softwarecenter.db.update"
Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 101, in <module>
    if not indexer.setupIndexing(force=opts.force, system=opts.pkgfile is None):
  File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 502, in 
setupIndexing
    values_seq = max(self.values.values()) + 1
ValueError: max() arg is an empty sequence

$ sudo rm /var/lib/apt-xapian-index/values 
$ sudo update-apt-xapian-index -f

No handlers could be found for logger "softwarecenter.db.update"
Reading .desktop files from /usr/share/app-install/desktop/: done.  
Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 101, in <module>
    if not indexer.setupIndexing(force=opts.force, system=opts.pkgfile is None):
  File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 513, in 
setupIndexing
    addon.obj.init(dict(values=self.values), self.progress)
  File "/usr/share/apt-xapian-index/plugins/cataloged_time.py", line 72, in init
    self._package_cataloged_time = 
cPickle.load(open(self._packages_cataloged_file))

$ sudo rm /var/lib/apt-xapian-index/cataloged_times.p 
$ sudo update-apt-xapian-index -f

Reading .desktop files from /usr/share/app-install/desktop/: done. 
...
Rebuilding Xapian index: done.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997532

Title:
  Software-center won't start

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/997532/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to