Binary package hint: software-center
On the most recent update, I got a spew of errors from software-center.postinst:
2011-03-22 17:53:04,286 - softwarecenter.db.update - WARNING - The file: '/usr/share/app-install/desktop/gdebi.desktop' could not be read correctly. The application associated with this file will not be included in the software catalog. Please consider raising a bug report for this issue with the maintainer of that application
2011-03-22 17:53:04,299 - softwarecenter.db.update - WARNING - The file: '/usr/share/app-install/desktop/gmult.desktop' could not be read correctly. The application associated with this file will not be included in the software catalog. Please consider raising a bug report for this issue with the maintainer of that application
2011-03-22 17:53:04,302 - softwarecenter.db.update - WARNING - The file: '/usr/share/app-install/desktop/horgand.desktop' could not be read correctly. The application associated with this file will not be included in the software catalog. Please consider raising a bug report for this issue with the maintainer of that application
2011-03-22 17:53:04,304 - softwarecenter.db.update - WARNING - The file: '/usr/share/app-install/desktop/gmchess.desktop' could not be read correctly. The application associated with this file will not be included in the software catalog. Please consider raising a bug report for this issue with the maintainer of that application
2011-03-22 17:53:04,307 - softwarecenter.db.update - WARNING - The file: '/usr/share/app-install/desktop/yabause-qt.desktop' could not be read correctly. The application associated with this file will not be included in the software catalog. Please consider raising a bug report for this issue with the maintainer of that application
2011-03-22 17:53:04,310 - softwarecenter.db.update - WARNING - The file: '/usr/share/app-install/desktop/crawl-tiles.desktop' could not be read correctly. The application associated with this file will not be included in the software catalog. Please consider raising a bug report for this issue with the maintainer of that application
2011-03-22 17:53:04,313 - softwarecenter.db.update - WARNING - The file: '/usr/share/app-install/desktop/eqsl.desktop' could not be read correctly. The application associated with this file will not be included in the software catalog. Please consider raising a bug report for this issue with the maintainer of that application
...and so on for every .desktop file on the system. This is because the catch-all exception handler in softwarecenter/db/update.py is being triggered. If I disable that handler, this is the crash that I get.
That exception handler should preferably be more specific so that it doesn't hide errors like this one.
ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: software-center 3.1.24 [modified: usr/share/software-center/softwarecenter/db/update.py]
ProcVersionSignature: Ubuntu 2.6.38-7.36-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
Architecture: amd64
Date: Tue Mar 22 18:22:44 2011
ExecutablePath: /usr/share/software-center/update-software-center
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/sbin/update-software-center
ProcEnviron:
LANG=en_US.UTF-8
LANGUAGE=en_GB:en
PATH=(custom, no user)
LC_COLLATE=C
SHELL=/bin/zsh
PythonArgs: ['/usr/sbin/update-software-center']
SourcePackage: software-center
Title: update-software-center crashed with TypeError in index_app_info_from_parser(): argument of type 'NoneType' is not iterable
UpgradeStatus: Upgraded to natty on 2011-02-10 (39 days ago)
UserGroups:
axi_values = parse_axi_ values_ file()
...
perseus:[~] PYTHONPATH= /usr/share/ software- center python db.database import parse_axi_ values_ file values_ file()
Python 2.7.1+ (r271:86832, Feb 24 2011, 15:00:15)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from softwarecenter.
>>> print parse_axi_
None
...
def parse_axi_ values_ file(filename= "/var/lib/ apt-xapian- index/values" ):
...
perseus:[~] less /var/lib/ apt-xapian- index/values apt-xapian- index/values: No such file or directory
/var/lib/
...which is because I don't have apt-xapian-index installed.