红联Linux门户
Linux帮助

安装deb软件包时出现Unknown media type in type **/**的解决办

发布时间:2015-11-04 09:49:36来源:linux网站作者:ROVAST

该问题的解决方法如下:


1、找到kde.xml文件,我这里的路径是: 

/usr/share/mime/packages/kde.xml


2、先对kde.xml文件进行备份:       

sudo cp /usr/share/mime/packages/kde.xml /usr/share/mime/packages/kde.xml.bak


3、修改kde.xml文件,找到如下内容将其删除或注释掉:

<!-- all/ fake mime types -->
<mime-type type="all/all">
<comment>all files and folders</comment>
</mime-type>
<mime-type type="all/allfiles">
<comment>all files</comment>
</mime-type>
 
<!-- uri/ fake mime types -->
<mime-type type="uri/mms">
<comment>mms: URIs</comment>
</mime-type>
<mime-type type="uri/mmst">
<comment>mmst: URIs</comment>
</mime-type>
<mime-type type="uri/mmsu">
<comment>mmsu: URIs</comment>
</mime-type>
<mime-type type="uri/pnm">
<comment>pnm: URIs</comment>
</mime-type>
<mime-type type="uri/rtspt">
<comment>rtspt: URIs</comment>
</mime-type>
<mime-type type="uri/rtspu">
<comment>rtspu: URIs</comment>
</mime-type>


4、将修改后的文件保存并退出。


5、重新安装需要安装的deb软件包。


WineQQ轻聊版64.deb软件包,资源占用超级低:http://www.linuxdiyf.com/linux/11920.html

在Ubuntu下改用Debian软件管理包Gdebi来安装DEB软件:http://www.linuxdiyf.com/linux/10030.html