Update: Unknown media type in type 'all/all'

Report Bugs, Issues and non- package Requests
Message
Author
Kulmbacher
Posts: 490
Joined: Fri Apr 27, 2018 2:47 pm

Update: Unknown media type in type 'all/all'

#1 Post by Kulmbacher »

today synaptic told me at the end of update:

Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'

Code: Select all

 full upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
   libqrencode3 (3.4.4-1+b2)
   libquazip5-1 (0.7.2-1)
   libsodium23 (1.0.16-2~mx17+1)
The following packages will be upgraded:
   keepassxc (2.3.4+dfsg.1-1~bpo9+1 => 2.4.1+dfsg.1-0.1~mx17+1)
1 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,088 kB of archives.
After this operation, 2,221 kB of additional disk space will be used.
Get:1 http://ftp.de.debian.org/debian stretch/main amd64 libqrencode3 amd64 3.4.4-1+b2 [34.3 kB]
Get:2 http://ftp.de.debian.org/debian stretch/main amd64 libquazip5-1 amd64 0.7.2-1 [74.1 kB]
Get:3 http://mirror.deace.id/mxlinux/mx/repo stretch/main amd64 libsodium23 amd64 1.0.16-2~mx17+1 [153 kB]
Get:4 http://mirror.deace.id/mxlinux/mx/repo stretch/main amd64 keepassxc amd64 2.4.1+dfsg.1-0.1~mx17+1 [1,826 kB]
Fetched 2,088 kB in 3s (551 kB/s)      
apt-listchanges: Reading changelogs...
Selecting previously unselected package libqrencode3:amd64.
(Reading database ... 185088 files and directories currently installed.)
Preparing to unpack .../libqrencode3_3.4.4-1+b2_amd64.deb ...
Unpacking libqrencode3:amd64 (3.4.4-1+b2) ...
Selecting previously unselected package libquazip5-1:amd64.
Preparing to unpack .../libquazip5-1_0.7.2-1_amd64.deb ...
Unpacking libquazip5-1:amd64 (0.7.2-1) ...
Selecting previously unselected package libsodium23:amd64.
Preparing to unpack .../libsodium23_1.0.16-2~mx17+1_amd64.deb ...
Unpacking libsodium23:amd64 (1.0.16-2~mx17+1) ...
Preparing to unpack .../keepassxc_2.4.1+dfsg.1-0.1~mx17+1_amd64.deb ...
Unpacking keepassxc (2.4.1+dfsg.1-0.1~mx17+1) over (2.3.4+dfsg.1-1~bpo9+1) ...
Setting up libquazip5-1:amd64 (0.7.2-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Setting up libqrencode3:amd64 (3.4.4-1+b2) ...
Setting up libsodium23:amd64 (1.0.16-2~mx17+1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for shared-mime-info (1.8-1+deb9u1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up keepassxc (2.4.1+dfsg.1-0.1~mx17+1) ...

full upgrade complete (or was canceled)
what`s going wrong? MX is working as usual ;-)

by the way:
How to search an exact phrase here in forum?

I used like everywhere: "Unknown media type in type"

result shows me all single words, but not the exact phrase, it`s not very useful.
they called him, the fish!

User avatar
Jerry3904
Administrator
Posts: 23474
Joined: Wed Jul 19, 2006 6:13 am

Re: Update: Unknown media type in type 'all/all'

#2 Post by Jerry3904 »

I use Google on the error message:
Unknown media type in type 'all/all' mx linux
In this case, it points to a short thread with a comment by Dolphin Oracle:
do you have kdenlive installed by chance?

there is no problem, its just annoying. I get it every time something wants to update mimetypes.
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
fehlix
Developer
Posts: 12882
Joined: Wed Apr 11, 2018 5:09 pm

Re: Update: Unknown media type in type 'all/all'

#3 Post by fehlix »

Kulmbacher wrote: Fri Apr 26, 2019 6:46 am Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
An old report from 2008 , with a nice explanation:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469833 wrote:Those fake mimetypes are installed by kdelibs with the file
/usr/share/mime/packages/kde.xml since long time ago. They are kept in
kde4libs.
In a recent version, update-mime-database became verbose about this unknown
types, and that is why you get this error when you update stuff and then
update-mime-database is run.
It is unlikely to be changed.
The file /usr/share/mime/packages/kde.xml is part of the package kdelibs5-data.
Solutions:
1. just ignore :confused:
2. fix it yourself :p
3. or shall we fix it as fixed mx package
I would suggest to ignore it,
To: fix
Either remove /usr/share/mime/packages/kde.xml
or delete both "unknown" dummy mimetypes within the file /usr/share/mime/packages/kde.xml itself.
:puppy:

Kulmbacher
Posts: 490
Joined: Fri Apr 27, 2018 2:47 pm

Re: Update: Unknown media type in type 'all/all'

#4 Post by Kulmbacher »

@ Jerry,
up to yesterday I`ve never seen this message here

@ felix
to 1. never ;-)
to 2. with your help, we will see if it works
to 3. not required, if i`m the only one with this message

so i renamed kde.xml to xxxkde.xml.txt and will see what happens tomorrow morning after reboot or next update ...
they called him, the fish!

User avatar
fehlix
Developer
Posts: 12882
Joined: Wed Apr 11, 2018 5:09 pm

Re: Update: Unknown media type in type 'all/all'

#5 Post by fehlix »

Kulmbacher wrote: Fri Apr 26, 2019 9:03 am to 2. with your help, we will see if it works
so i renamed kde.xml to xxxkde.xml.txt and will see what happens tomorrow morning after reboot or next update ...
Here a one-liner to fix Unknown media warnings from those mime-info definitions made in /usr/share/mime/packages/kde.xml :

Code: Select all

xmlstarlet ed --inplace -N ns="http://www.freedesktop.org/standards/shared-mime-info" --delete '//ns:mime-type[@type="all/all" or @type="all/allfiles"]'  /usr/share/mime/packages/kde.xml
The command would need to run with enhanced sudo privileges to fix/patch the xml-file.
Instead of the usual sed/grep combinations, which are always a bit risky to use with XMLfiles,
the above one-liner uses XPath query on all XML-nodes with attributes values matches "all/all" ... to remove the corresponding xml-nodes within given xml-namespace (ns) in one go.
( further infos here: http://xmlstar.sourceforge.net/doc/UG/ )
HTH
:puppy:
[Klare Sache und damit hopp.]

Kulmbacher
Posts: 490
Joined: Fri Apr 27, 2018 2:47 pm

Re: Update: Unknown media type in type 'all/all'

#6 Post by Kulmbacher »

$ sudo xmlstarlet ed --inplace -N ns="http://www.freedesktop.org/standards/shared-mime-info" --delete '//ns:mime-type[@type="all/all" or @type="all/allfiles"]' /usr/share/mime/packages/kde.xml
sudo: xmlstarlet: command not found

root@mx:/home/oo# xmlstarlet ed --inplace -N ns="http://www.freedesktop.org/standards/shared-mime-info" --delete '//ns:mime-type[@type="all/all" or @type="all/allfiles"]' /usr/share/mime/packages/kde.xml
bash: xmlstarlet: command not found

No starlet`s on board ;-)
they called him, the fish!

User avatar
Jerry3904
Administrator
Posts: 23474
Joined: Wed Jul 19, 2006 6:13 am

Re: Update: Unknown media type in type 'all/all'

#7 Post by Jerry3904 »

No starlet`s on board ;-)
So install it... :p

Code: Select all

sudo apt install xmlstarlet
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Post Reply

Return to “Bugs and Non-Package Requests Forum”