update-mime-database crashes on incorrect mime definition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shared-mime |
Fix Released
|
Medium
|
|||
shared-mime-info (Ubuntu) |
Fix Released
|
Medium
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: update-manager
When upgrading from Edgy to Feisty. I get these errors:
Preparing to replace shared-mime-info 0.18-0ubuntu1 (using .../shared-
Document `shared-mime-info' is not installed, cannot remove.
Document `shared-mime-info' is not installed, cannot remove.
Unpacking replacement shared-mime-info ...
* Wrong namespace on document element
* in '/usr/share/
* (should be http://
Aborted (core dumped)
dpkg: warning - old post-removal script returned error exit status 134
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/
subprocess new post-removal script returned error exit status 134
***
* Updating MIME database in /usr/share/mime...
Wrote 489 strings at 20 - 28d4
Wrote aliases at 28d4 - 2a88
Wrote 489 strings at 20 - 28d4
Wrote aliases at 28d4 - 2a88
Wrote parents at 2a88 - 347c
Wrote literal globs at 347c - 34e8
Wrote suffix globs at 34e8 - 6980
Wrote full globs at 6980 - 69a4Wrote magic at 69a4 - c280
Wrote namespace list at c280 - c290
Errors were encountered while processing:
/var/cache/
dpkg: error processing shared-mime-info (--configure):
package shared-mime-info is already installed and configured
shared-mime-info
ERROR:root:
update-manager: Fatal IO error 9 (Bad file descriptor) on X server :0.0.
ProblemType: Package
Date: Sat May 12 21:32:32 2007
ErrorMessage:
ErrorMessage: subprocess new post-removal script returned error exit status 134
Package: shared-mime-info
SourcePackage: shared-mime-info
Changed in shared-mime: | |
status: | Unknown → Confirmed |
Changed in shared-mime: | |
status: | Confirmed → Fix Released |
Changed in shared-mime: | |
importance: | Unknown → Medium |
Changed in shared-mime: | |
importance: | Medium → Unknown |
Changed in shared-mime: | |
importance: | Unknown → Medium |
It's actually not a problem with update-manager. The problem is with shared-mime-info configuration. I have to rewrite /usr/share/ mime/packages/ freemind. xml
<?xml version="1.0" encoding="UTF-8"?> www.freedesktop .org/standards/ shared- mime-info'> on/x-freemind" >
<comment xml:lang= "en">FreeMind Mindmap</comment>
<glob pattern="*.mm"/>
</mime- type>
<mime-info xmlns='http://
<mime-type type="applicati
</mime-info>