Unknown media type in type 'all/all' 问题解决方案

      在安装含有UI的linux deb文件时报错:

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'


解决方案:

cd /usr/share/mime/packages/

修改目录下的 kde.xml,可以事先备份。将里面<mime-type type="xxxx/xxxx"> to </mime-type>格式的语句全部删除。如:

<mime-type type="all/all">
    <comment>all files and folders</comment>
  </mime-type>
  <mime-type type="all/allfiles">
    <comment>all files</comment>
  </mime-type>
以上出错原因来自kde-libs

你可能感兴趣的:(linux,解决方案)