This question already has an answer here:

I reinstalled the Amarok player in my Kubuntu 14.04 because it seemed buggy. I noticed this in the terminal:

david@EMACHINE:~$ sudo apt-get install --reinstall amarok
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 5,715 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirror.lstn.net/ubuntu/ trusty/universe amarok i386 2:2.8.0-0ubuntu3 [5,715 kB]
Fetched 5,715 kB in 2s (2,611 kB/s) 
(Reading database ... 128504 files and directories currently installed.)
Preparing to unpack .../amarok_2%3a2.8.0-0ubuntu3_i386.deb ...
Unpacking amarok (2:2.8.0-0ubuntu3) over (2:2.8.0-0ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
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'
Processing triggers for man-db (2.6.7.1-1) ...
Setting up amarok (2:2.8.0-0ubuntu3) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...

Look at all the unknowns. Could these be the cause of the player not working correctly? How can I fix this if it is, an error?

marked as duplicate by Byte Commander, Sergiy Kolodyazhnyy, Kevin Bowen, Eric Carvalho, David Foerster Aug 2 '16 at 8:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Is it working properly after the reinstall? – Lucio Apr 27 '14 at 4:36
  • @Lucio simply re-installing packages rarely fixes problems as reinstalling does not replace configuration files. – Panther Apr 29 '14 at 3:11
  • 6
    This question should not have been closed, as it is a useful source of information on this issue. Otherwise, just go ahead and close askubuntu.com. – mydoghasworms Jul 28 '15 at 16:37

it is a bug, see https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/289592

try

sudo rm /usr/share/mime/packages/kde.xml 
sudo update-mime-database /usr/share/mime
  • 2
    For me, the above throroughly broke an otherwise perfectly fine Ubuntu 14.04.4 desktop install, to the point of not being able to access it from the unity log-on screen anymore. After some groping "in the dark", I had to scratch-reinstall ubuntu-desktop from console. No biggy but beware nevertheless ... – Cbhihe Nov 11 '15 at 19:20
  • 1
    @Cbhihe those command should not have "broke an otherwise perfectly fine Ubuntu 14.04.4 desktop install". Details please, if it were perfectly fine whey did you run these commands ? How did it break ? ubuntu-desktop is a metapackage and does not install any packages, so what else was installed ? – Panther Nov 11 '15 at 19:23
  • 1
    Why it did spurred my curiosity too. I am stumped so far. Context ? I was busy w/ sudo apt-get wireshark wireshark-doc when I saw what OP described. I followed yr suggestion and then reversed it from my stored kde.xml_bak... bam!! . Unity started unraveling before my eyes. I first lost Skype and Psensor in the unity bar, then all the rest including desktop icons. Had to reboot from terminal. Reboot led to unity login loop... followed up by opening console (ALT+CTRL+F3) and desktop reinstall as said. As for ubuntu-desktop being a metapackage, it is a fact. – Cbhihe Nov 11 '15 at 19:37
  • 2
    FYI: Works on Arch Linux as well. – l0b0 May 23 '16 at 17:46

Not sure what the error means but I'll share with you what worked for me.

Basically just delete all the erroneous mime-types in the kde.xml file.

After that run:

sudo update-mime-database /usr/share/mime

The first two should look something like;

<mime-type type="all/all">
  <comment>all files and folders</comment>
  </mime-type>
  <mime-type type="all/allfiles">
  <comment>all files</comment>
</mime-type>

Do likewise with the rest, then logout/login as needed.

Source

Not the answer you're looking for? Browse other questions tagged or ask your own question.