pycentral fails if a package configuration file is empty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-central (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-central
In some cases, a configuration file in the "/usr/share/
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg = DebPackage(
File "/usr/bin/
self.
File "/usr/bin/
self.
File "/usr/lib/
ConfigParse
File "/usr/lib/
raise NoSectionError(
ConfigParser.
The solution usually lies in forcing the reinstallation of the package with the defective configuration file, but the trace is not quite helpful in determining the real source of the error.
pycentral should handle the NoSectionError and at least give a hint about the buggy package (which name is stored in self.name). As a workaround, it is possible to use
grep -L pycentral /usr/share/
to find the configuration files without a "pycentral" section. The name of the file should then match closely to the name of the package to reinstall.