分享

How to remove warnings like `Unknown media type …

 天才白痴书馆 2015-07-17
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Each time apt-get tries to process triggers for shared-mime-info, it reports warnings like:

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

I've checked /usr/share/mime-info but doesn't see any of them:

/usr/share/mime-info$ grep 'url/rtspu' *
(Got nothing)

So, how to clean up my system so it won't report these unknown media types?

3 Answers

up vote 8 down vote accepted

This was discussed in Why does update-mime-database complain about uri/rtspt and other unusual types? It is caused by kde.xml and they have not fixed it yet. Here is a bug report.

Also it's uri/rtspu, not url/rtspu you should be grepping.

answered May 4 '11 at 1:51
skfd
280312
 sudo mv /usr/share/mime/packages/kde.xml /usr/share/mime/packages/kde.xml.bkp
 sudo update-mime-database /usr/share/mime

Should fix the warnings.

answered May 24 '13 at 12:22
16  
What are the (other) consequences of removing this file? –  Sparhawk Mar 17 '14 at 11:06
1  
What harm could this do? –  Tim Dec 23 '14 at 18:34
1  
If concerned about the consequences, instead of removing kde.xml, move it to kde.xml.bak and you'll have a backup. Thus far I've had no adverse effects with this approach. another method would be to edit the file and remove the fake mime types as discussed at mapopa./2011/01/… –  Elder Geek Mar 26 at 14:22
    
Thanks, edited answer :) –  mirkobrankovic Mar 26 at 21:54

You should check /usr/share/mime/packages for the specific xml that contains the phrase you get .

For example, my problem was Unknown media type in type 'chemical/...... I found the file /usr/share/mime/packages/chemical-mime-data.xml.

Using cat on the file showed me that the package was the same chemical-mime-data V 0.94

So I ran:

sudo apt-get remove chemical-mime-data
answered Jun 7 at 20:34

Your Answer

Thanks for contributing an answer to Ask Ubuntu!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多