Bug 303627 - update-mime-database complains about unknown media types
Summary: update-mime-database complains about unknown media types
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 250924 374640 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-16 19:42 UTC by minj4ever
Modified: 2018-05-11 20:36 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description minj4ever 2012-07-16 19:42:53 UTC
kdelibs5-data: /usr/share/mime/packages/kde.xml file contains invalid mime types that cause error messages during every apt-get operation:

[code]
Unknown media type in type 'chemical/x-alchemy'
Unknown media type in type 'chemical/x-cache'
Unknown media type in type 'chemical/x-cactvs-ascii'
Unknown media type in type 'chemical/x-cactvs-binary'
Unknown media type in type 'chemical/x-cactvs-table'
Unknown media type in type 'chemical/x-cdx'
Unknown media type in type 'chemical/x-cdxml'
Unknown media type in type 'chemical/x-chem3d'
Unknown media type in type 'chemical/x-cif'
Unknown media type in type 'chemical/x-cml'
Unknown media type in type 'chemical/x-daylight-smiles'
Unknown media type in type 'chemical/x-dmol'
Unknown media type in type 'chemical/x-gamess-input'
Unknown media type in type 'chemical/x-gamess-output'
Unknown media type in type 'chemical/x-gaussian-input'
Unknown media type in type 'chemical/x-gaussian-log'
Unknown media type in type 'chemical/x-genbank'
Unknown media type in type 'chemical/x-gulp'
Unknown media type in type 'chemical/x-hin'
Unknown media type in type 'chemical/x-inchi'
Unknown media type in type 'chemical/x-inchi-xml'
Unknown media type in type 'chemical/x-jcamp-dx'
Unknown media type in type 'chemical/x-macromodel-input'
Unknown media type in type 'chemical/x-mdl-molfile'
Unknown media type in type 'chemical/x-mdl-rdfile'
Unknown media type in type 'chemical/x-mdl-rxnfile'
Unknown media type in type 'chemical/x-mdl-sdfile'
Unknown media type in type 'chemical/x-mdl-tgf'
Unknown media type in type 'chemical/x-mmcif'
Unknown media type in type 'chemical/x-mol2'
Unknown media type in type 'chemical/x-mopac-graph'
Unknown media type in type 'chemical/x-mopac-input'
Unknown media type in type 'chemical/x-mopac-out'
Unknown media type in type 'chemical/x-msi-car'
Unknown media type in type 'chemical/x-msi-hessian'
Unknown media type in type 'chemical/x-msi-mdf'
Unknown media type in type 'chemical/x-msi-msi'
Unknown media type in type 'chemical/x-ncbi-asn1'
Unknown media type in type 'chemical/x-ncbi-asn1-binary'
Unknown media type in type 'chemical/x-ncbi-asn1-xml'
Unknown media type in type 'chemical/x-pdb'
Unknown media type in type 'chemical/x-shelx'
Unknown media type in type 'chemical/x-vmd'
Unknown media type in type 'chemical/x-xyz'
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 'interface/x-winamp-skin'
[/code]

Reproducible: Always
Comment 1 minj4ever 2012-07-16 19:49:36 UTC
sorry, the chemical/* stuff comes from gcu-bin
Comment 2 Shmerl 2014-05-05 07:51:26 UTC
This is still happening with KDE 4.12.4 in Debian testing.

I get less errors though:

Processing triggers for shared-mime-info (1.2-1) ...
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'

Related Debian bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525599

Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/289592
Comment 3 JKAbrams 2014-07-30 01:12:01 UTC
Should the spec be changed or the types removed from kde.xml?
What are the effects of removing them from the xml-file? Are they used by any KDE applications (comment )?

Gentoo's patches the file to remove the offending mimetypes:
https://bugs.gentoo.org/show_bug.cgi?id=261446
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.7.96-mimetypes.patch

Freedesktop, this feature request does however not solve the problem, only makes it possible to hide it (for packagers), so I guess they don't want to hardcode an exception for KDE (can the case be made that some kind of meta-mimetype be added to the specification?):
https://bugs.freedesktop.org/show_bug.cgi?id=16816

Here's the Debian bug for shared-mime-info:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469833

Same bug, but only for the "fonts/package"-mimetype, and thus marked as 'fixed':
https://bugs.kde.org/show_bug.cgi?id=250924
Comment 4 Christoph Feck 2014-08-16 12:02:57 UTC
*** Bug 250924 has been marked as a duplicate of this bug. ***
Comment 5 Heinrich Schuchardt 2014-09-06 00:28:24 UTC
Allowable media types are defined by IANA, see
http://www.iana.org/assignments/media-types/media-types.xhtml

If KDE needs media types not yet registered with IANA these should be preceded by "X-" as described in 
http://tools.ietf.org/html/rfc2046#section-6
Comment 6 Beco 2015-07-05 04:02:18 UTC
Date: 2015-Jul-07

Upgrading from Wheezy to Jessie

Still occurring:

--
Processing triggers for shared-mime-info (1.3-1) ...
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'
--

I'm confirming (still) the existence of this bug.
Comment 7 Elvis Angelaccio 2015-07-20 07:47:15 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Thierry Thomas 2015-12-23 21:00:14 UTC
Same problem with kdelibs-4.14.3 on FreeBSD:

Unknown media type in type 'chemical/x-alchemy'
Unknown media type in type 'chemical/x-cache'
Unknown media type in type 'chemical/x-cactvs-ascii'
Unknown media type in type 'chemical/x-cactvs-binary'
Unknown media type in type 'chemical/x-cactvs-table'
Unknown media type in type 'chemical/x-cdx'
Unknown media type in type 'chemical/x-cdxml'
Unknown media type in type 'chemical/x-chem3d'
Unknown media type in type 'chemical/x-cif'
Unknown media type in type 'chemical/x-cml'
Unknown media type in type 'chemical/x-daylight-smiles'
Unknown media type in type 'chemical/x-dmol'
Unknown media type in type 'chemical/x-gamess-input'
Unknown media type in type 'chemical/x-gamess-output'
Unknown media type in type 'chemical/x-gaussian-input'
Unknown media type in type 'chemical/x-gaussian-log'
Unknown media type in type 'chemical/x-genbank'
Unknown media type in type 'chemical/x-gulp'
Unknown media type in type 'chemical/x-hin'
Unknown media type in type 'chemical/x-inchi'
Unknown media type in type 'chemical/x-inchi-xml'
Unknown media type in type 'chemical/x-jcamp-dx'
Unknown media type in type 'chemical/x-macromodel-input'
Unknown media type in type 'chemical/x-mdl-molfile'
Unknown media type in type 'chemical/x-mdl-rdfile'
Unknown media type in type 'chemical/x-mdl-rxnfile'
Unknown media type in type 'chemical/x-mdl-sdfile'
Unknown media type in type 'chemical/x-mdl-tgf'
Unknown media type in type 'chemical/x-mmcif'
Unknown media type in type 'chemical/x-mol2'
Unknown media type in type 'chemical/x-mopac-graph'
Unknown media type in type 'chemical/x-mopac-input'
Unknown media type in type 'chemical/x-mopac-out'
Unknown media type in type 'chemical/x-msi-car'
Unknown media type in type 'chemical/x-msi-hessian'
Unknown media type in type 'chemical/x-msi-mdf'
Unknown media type in type 'chemical/x-msi-msi'
Unknown media type in type 'chemical/x-ncbi-asn1'
Unknown media type in type 'chemical/x-ncbi-asn1-binary'
Unknown media type in type 'chemical/x-ncbi-asn1-xml'
Unknown media type in type 'chemical/x-pdb'
Unknown media type in type 'chemical/x-shelx'
Unknown media type in type 'chemical/x-vmd'
Unknown media type in type 'chemical/x-xyz'
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'
Comment 9 Shmerl 2016-03-07 23:52:49 UTC
It still happens in KDE Plasma 5.4.3 (Debian testing), but now it's way smaller:

Processing triggers for shared-mime-info (1.5-2) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'

Are those even needed in /usr/share/mime/packages/kde.xml ?
Comment 10 jpcariaga 2016-04-28 01:55:25 UTC
I still have this on the latest KDE Plasma 5.6.3. Running Arch

Unknown media type in type 'chemical/x-alchemy'
Unknown media type in type 'chemical/x-cache'
Unknown media type in type 'chemical/x-cactvs-ascii'
Unknown media type in type 'chemical/x-cactvs-binary'
Unknown media type in type 'chemical/x-cactvs-table'
Unknown media type in type 'chemical/x-cdx'
Unknown media type in type 'chemical/x-cdxml'
Unknown media type in type 'chemical/x-chem3d'
Unknown media type in type 'chemical/x-cif'
Unknown media type in type 'chemical/x-cml'
Unknown media type in type 'chemical/x-daylight-smiles'
Unknown media type in type 'chemical/x-dmol'
Unknown media type in type 'chemical/x-gamess-input'
Unknown media type in type 'chemical/x-gamess-output'
Unknown media type in type 'chemical/x-gaussian-input'
Unknown media type in type 'chemical/x-gaussian-log'
Unknown media type in type 'chemical/x-genbank'
Unknown media type in type 'chemical/x-gulp'
Unknown media type in type 'chemical/x-hin'
Unknown media type in type 'chemical/x-inchi'
Unknown media type in type 'chemical/x-inchi-xml'
Unknown media type in type 'chemical/x-jcamp-dx'
Unknown media type in type 'chemical/x-macromodel-input'
Unknown media type in type 'chemical/x-mdl-molfile'
Unknown media type in type 'chemical/x-mdl-rdfile'
Unknown media type in type 'chemical/x-mdl-rxnfile'
Unknown media type in type 'chemical/x-mdl-sdfile'
Unknown media type in type 'chemical/x-mdl-tgf'
Unknown media type in type 'chemical/x-mmcif'
Unknown media type in type 'chemical/x-mol2'
Unknown media type in type 'chemical/x-mopac-graph'
Unknown media type in type 'chemical/x-mopac-input'
Unknown media type in type 'chemical/x-mopac-out'
Unknown media type in type 'chemical/x-msi-car'
Unknown media type in type 'chemical/x-msi-hessian'
Unknown media type in type 'chemical/x-msi-mdf'
Unknown media type in type 'chemical/x-msi-msi'
Unknown media type in type 'chemical/x-ncbi-asn1'
Unknown media type in type 'chemical/x-ncbi-asn1-binary'
Unknown media type in type 'chemical/x-ncbi-asn1-xml'
Unknown media type in type 'chemical/x-pdb'
Unknown media type in type 'chemical/x-shelx'
Unknown media type in type 'chemical/x-vmd'
Unknown media type in type 'chemical/x-xyz'
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Comment 11 deadlydud 2016-05-04 22:32:28 UTC
It seems that since 2008 this has been a irritation visual bug in kubuntu /ubuntu, even after fresh installs and after upgrading previous kubuntu releases.

Why not fix update-mime-database to NOT complain about all/all and all/allfiles ?
(should be simple enough ... if mime-type == all/all* ... don't moan about it...
(if it cannot be removed from  /usr/share/mime/packages/kde.xml for some good reason)
Since this looks like a issue introduced with kde.xml, maybe David Faure <faure at kde.org> could look at it?
Would be nice to solve a 8 year old bug.

during apt-get operations: displays warnings
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'

Saw other people mentioned it all over the place .. 
https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/289592
http://askubuntu.com/questions/39852/how-to-remove-warnings-like-unknown-media-type

some google threads claim it's "solved", yet it persists.

Maybe Kubuntu staff can contact the author listed in http://linux.die.net/man/1/update-mime-database and get this resolved?... Thomas Leonard<tal197 at users.sf.net> the author ? .. my 2c (I googled for a few minutes and couldn't find the source code for "update-mime-database" to look at source)
Comment 12 Luuk 2016-08-27 18:29:44 UTC
someon wrote 3 month ago "Would be nice to solve a 8 year old bug."
it would be nice that this would be solve before someone writes
"Would be nice to solve a 8.5 year old bug."
Comment 13 Luuk 2016-08-27 18:30:14 UTC
someon wrote 3 month ago "Would be nice to solve a 8 year old bug."
it would be nice that this would be solve before someone writes
"Would be nice to solve a 8.5 year old bug."
Comment 14 Elvis Angelaccio 2016-08-28 13:15:23 UTC
I'm taking the liberty to close this report (it was "confirmed" by my vote in the first place).

The fake mimetypes have been removed from kcoreaddons's kde5.xml file: https://github.com/KDE/kcoreaddons/commit/36ff1bf60c9b12c28ed4d7566abceac10cab345e

They still are defined in the old kdelibs package, but we cannot remove them because it would break all the kde4 apps that are still using them. While kdelibs4 is still being released with new bugfixes, most of those kde4 apps are not.
Comment 15 Luuk 2016-08-28 16:56:47 UTC
based on your comment, and on:
http://www.iana.org/assignments/media-types

it should not be RESOLVED WONTFIX 
but RESOLVED NOTABUG

@ELVIS: thanks for the quick explanation!
Comment 16 Elvis Angelaccio 2017-01-07 10:30:48 UTC
*** Bug 374640 has been marked as a duplicate of this bug. ***
Comment 17 Bastien Nocera 2018-04-23 10:05:13 UTC
(In reply to Elvis Angelaccio from comment #14)
> I'm taking the liberty to close this report (it was "confirmed" by my vote
> in the first place).
> 
> The fake mimetypes have been removed from kcoreaddons's kde5.xml file:
> https://github.com/KDE/kcoreaddons/commit/
> 36ff1bf60c9b12c28ed4d7566abceac10cab345e
> 
> They still are defined in the old kdelibs package, but we cannot remove them
> because it would break all the kde4 apps that are still using them. While
> kdelibs4 is still being released with new bugfixes, most of those kde4 apps
> are not.

Which means that shared-mime-info maintainers still get emails years after because those libraries are still in use, and not fixed.
Comment 18 Elvis Angelaccio 2018-04-25 12:06:24 UTC
(In reply to Bastien Nocera from comment #17)
> Which means that shared-mime-info maintainers still get emails years after
> because those libraries are still in use, and not fixed.

Sorry about that. These days we don't even release kdelibs anymore, so I don't really se what we can do from the KDE side.
Comment 19 Bastien Nocera 2018-04-25 12:16:51 UTC
(In reply to Elvis Angelaccio from comment #18)
> (In reply to Bastien Nocera from comment #17)
> > Which means that shared-mime-info maintainers still get emails years after
> > because those libraries are still in use, and not fixed.
> 
> Sorry about that. These days we don't even release kdelibs anymore, so I
> don't really se what we can do from the KDE side.

I really don't think that's an excuse when you're creating problems for others. I wouldn't mind one bit if only KDE was impacted, but that's creating a burden of work for me, and emails in my inbox.

It's really not fair for me to have to mop up problems KDE created in the first place. I've worked around the problem in shared-mime-info. I really shouldn't have had to.