Saturday, January 22, 2011

Fixing the Unknown media type in type 'interface/x-winamp-skin' while updating in ubuntu/debian

I think i have seen this error message while updating ubuntu/debian for years and wondered what it is and why is not solved :it's known bug but no one does nothing to fix it in debian/ubuntu/freedesktop/kde land
seems the worse idea to keep the mime types in xml format and is quite verbose for some errors

you can see the file and the package that contains it
 dpkg -S  /usr/share/mime/packages/kde.xml
kdelibs5-data: /usr/share/mime/packages/kde.xml

what i did is to delete the lines with the errors
vi /usr/share/mime/packages/kde.xml
and deleted the lines corresponding to the error

Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Unknown media type in type 'fonts/package'
Unknown media type in type 'interface/x-winamp-skin'

and here is the diff on my debian
after that the update-mime-database worked without errors

update-mime-database -V /usr/share/mime

Updating MIME database in /usr/share/mime...

Wrote 959 strings at 2c - 5418

Wrote aliases at 5418 - 594c

Wrote parents at 594c - 6d34

Wrote literal globs at 6d34 - 6dec

Wrote suffix globs at 6dec - ffc8

Wrote full globs at ffc8 - 10008

Wrote magic at 10008 - 19cf0

Wrote namespace list at 19cf0 - 19d30

Wrote icons list at 19d30 - 19d44

Wrote generic icons list at 19d44 - 1a818

Wrote types list at 1a818 - 1b414

No comments: