Announcement

Collapse
No announcement yet.

unknown media type

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] unknown media type

    I'm using the dev version of neon installed on top of Kubuntu 16.04 and so get a lot of updates every day. I use the Konsole instructions and while it is running along I often get the following message:

    Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
    Unknown media type in type 'all/all'
    Unknown media type in type 'all/allfiles'

    Just what might this be, and how do I find out? It does not seem to affect anything, but I'm curious nonetheless.

    #2
    http://askubuntu.com/questions/18806...-unusual-types

    Please Read Me

    Comment


      #3
      Thanks. I'll have to wait until I update again before I can mark this solved, however.

      Comment


        #4
        unknown media type

        In the kde.xml file, about 1/3rd the way down, is a section devoted to fake mime types. It begins with the comment section that starts with "<--" and ends with "-->".

        I moved the --> to the bottom of the section, commenting out the entire fake mime region.
        When ever I installed or removed an app there would be a 30-40s wait for the mime-type stuff to fail. Now I don't see that msg any more and installs and removals are a minute faster.
        Last edited by GreyGeek; Sep 16, 2016, 04:42 AM.
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          Originally posted by GreyGeek View Post
          In the kde.xml file, about 1/3rd the way down, is a section devoted to fake mime types. It begins with the comment section that starts with "<--" and ends with "-->".

          I moved the --> to the bottom of the section, commenting out the entire fake mime region.
          Where do I find the kde.xml file? How do I move the -->? Cut and paste?

          Comment


            #6
            stuart@office:~$ locate kde.xml

            Code:
            /usr/share/mime/packages/kde.xml
            To edit the file: kdesudo kwrite /usr/share/mime/packages/kde.xml

            The section in question begins with
            <!-- all/ fake mime types --> here it was line 1789 and ran to 1847 - it closes out with </mime-type>

            Please Read Me

            Comment


              #7
              No need to move it IMO, just comment it out.

              To do that, delete the --> at the top (right after "fake mime types" ) and put it after </mime-type> on line 1847 so it looks like

              </mime-type> -->

              Please Read Me

              Comment


                #8
                Originally posted by oldgeek View Post
                Where do I find the kde.xml file? How do I move the -->? Cut and paste?
                locate kde.xml
                /usr/share/mime/packages/kde.xml

                kdesudo kate /usr/share/mime/packages/kde.xml
                Cut the "-->", shown in red, at the beginning of the mime type "all/all"
                <!-- all/ fake mime types -->
                <mime-type type="all/all">
                <comment>all files and folders</comment>
                <comment xml:lang="ar">كل الملفات و المجلدات</comment>
                and paste it as shown below, which is at the end of the mime type "all/files"
                <comment xml:lang="zh_CN">全部文件</comment>
                <comment xml:lang="zh_TW">所有檔案</comment>
                </mime-type>
                -->
                Save.
                Close Kate.
                Here is what the whole thing looks like:
                Code:
                  <!-- all/ fake mime types 
                  <mime-type type="all/all">
                    <comment>all files and folders</comment>
                    <comment xml:lang="ar">كل الملفات و المجلدات</comment>
                    <comment xml:lang="ast">tolos ficheros y carpetes</comment>
                    <comment xml:lang="bg">всички файлове и папки</comment>
                    <comment xml:lang="bs">sve datoteke i direktorije</comment>
                    <comment xml:lang="ca">tots els fitxers i carpetes</comment>
                    <comment xml:lang="ca@valencia">tots els fitxers i carpetes</comment>
                    <comment xml:lang="cs">všechny soubory a složky</comment>
                    <comment xml:lang="da">alle filer og mapper</comment>
                    <comment xml:lang="de">Alle Dateien und Ordner</comment>
                    <comment xml:lang="el">Όλα τα αρχεία και οι φάκελοι</comment>
                    <comment xml:lang="en_GB">all files and folders</comment>
                    <comment xml:lang="es">todos los archivos y carpetas</comment>
                    <comment xml:lang="et">kõik failid ja kataloogid</comment>
                    <comment xml:lang="eu">fitxategi eta karpeta denak</comment>
                    <comment xml:lang="fi">kaikki tiedostot ja kansiot</comment>
                    <comment xml:lang="fr">Tous les fichiers et les dossiers</comment>
                    <comment xml:lang="ga">gach comhad agus fillteán</comment>
                    <comment xml:lang="gl">todos os ficheiros e cartafoles</comment>
                    <comment xml:lang="hr">sve datoteke i direktoriji</comment>
                    <comment xml:lang="hu">minden fájl és mappa</comment>
                    <comment xml:lang="ia">omne files e dossieres</comment>
                    <comment xml:lang="is">allar skrár og möppur</comment>
                    <comment xml:lang="it">tutti i file e le cartelle</comment>
                    <comment xml:lang="ja">すべてのファイルとフォルダ</comment>
                    <comment xml:lang="kk">бүкіл файлдар мен қапшықтар</comment>
                    <comment xml:lang="km">ឯកសារ និង​ថត​ទាំង​អស់</comment>
                    <comment xml:lang="ko">모든 파일과 폴더</comment>
                    <comment xml:lang="lt">visi failai ir aplankai</comment>
                    <comment xml:lang="lv">visi faili un mapes</comment>
                    <comment xml:lang="ml">എല്ലാ ഫയലും ഫോള്*ഡറുകളും</comment>
                    <comment xml:lang="mr">सर्व फाईल्स व संचयीका</comment>
                    <comment xml:lang="nb">al.le filer og mapper</comment>
                    <comment xml:lang="nds">All Dateien un Ornern</comment>
                    <comment xml:lang="nl">alle bestanden en mappen</comment>
                    <comment xml:lang="nn">alle filer og mapper</comment>
                    <comment xml:lang="pa">ਸਭ ਫਾਇਲਾਂ ਅਤੇ ਫੋਲਡਰ</comment>
                    <comment xml:lang="pl">wszystkie pliki i katalogi</comment>
                    <comment xml:lang="pt">todos os ficheiros e pastas</comment>
                    <comment xml:lang="pt_BR">todos os arquivos e pastas</comment>
                    <comment xml:lang="ro">toate fișierele și dosarele</comment>
                    <comment xml:lang="ru">все файлы и папки</comment>
                    <comment xml:lang="se">buot fiillat ja máhpat</comment>
                    <comment xml:lang="sk">všetky súbory a priečinky</comment>
                    <comment xml:lang="sl">vse datoteke in mape</comment>
                    <comment xml:lang="sr">сви фајлови и фасцикле</comment>
                    <comment xml:lang="sr@ijekavian">сви фајлови и фасцикле</comment>
                    <comment xml:lang="sr@ijekavianlatin">svi fajlovi i fascikle</comment>
                    <comment xml:lang="sr@latin">svi fajlovi i fascikle</comment>
                    <comment xml:lang="sv">alla filer och kataloger</comment>
                    <comment xml:lang="th">แฟ้มและโฟลเดอร์ทั้งหมด</comment>
                    <comment xml:lang="tr">tüm dosyalar ve dizinler</comment>
                    <comment xml:lang="ug">ھەممە ھۆججەت ۋە قىسقۇچلار</comment>
                    <comment xml:lang="uk">всі файли і теки</comment>
                    <comment xml:lang="zh_CN">全部文件和文件夹</comment>
                    <comment xml:lang="zh_TW">所有檔案與資料夾</comment>
                  </mime-type>
                  <mime-type type="all/allfiles">
                    <comment>all files</comment>
                    <comment xml:lang="ar">كل الملفات</comment>
                    <comment xml:lang="ast">tolos ficheros</comment>
                    <comment xml:lang="bg">всички файлове</comment>
                    <comment xml:lang="bs">sve datoteke</comment>
                    <comment xml:lang="ca">tots els fitxers</comment>
                    <comment xml:lang="ca@valencia">tots els fitxers</comment>
                    <comment xml:lang="cs">všechny soubory</comment>
                    <comment xml:lang="da">alle filer</comment>
                    <comment xml:lang="de">Alle Dateien</comment>
                    <comment xml:lang="el">Όλα τα αρχεία</comment>
                    <comment xml:lang="en_GB">all files</comment>
                    <comment xml:lang="es">todos los archivos</comment>
                    <comment xml:lang="et">kõik failid</comment>
                    <comment xml:lang="eu">fitxategi denak</comment>
                    <comment xml:lang="fi">kaikki tiedostot</comment>
                    <comment xml:lang="fr">Tous les fichiers</comment>
                    <comment xml:lang="ga">gach comhad</comment>
                    <comment xml:lang="gl">todos os ficheiros</comment>
                    <comment xml:lang="hr">sve datoteke</comment>
                    <comment xml:lang="hu">minden fájl</comment>
                    <comment xml:lang="ia">omne files</comment>
                    <comment xml:lang="is">allar skrár</comment>
                    <comment xml:lang="it">tutti i file</comment>
                    <comment xml:lang="ja">すべてのファイル</comment>
                    <comment xml:lang="kk">бүкіл файлдар</comment>
                    <comment xml:lang="km">ឯកសារ​ទាំង​អស់</comment>
                    <comment xml:lang="ko">모든 파일</comment>
                    <comment xml:lang="lt">visi failai</comment>
                    <comment xml:lang="lv">visi faili</comment>
                    <comment xml:lang="ml">എല്ലാ ഫയലും</comment>
                    <comment xml:lang="mr">सर्व फाईल्स</comment>
                    <comment xml:lang="nb">alle filer</comment>
                    <comment xml:lang="nds">All Dateien</comment>
                    <comment xml:lang="nl">alle bestanden</comment>
                    <comment xml:lang="nn">alle filer</comment>
                    <comment xml:lang="pa">ਸਭ ਫਾਇਲਾਂ</comment>
                    <comment xml:lang="pl">wszystkie pliki</comment>
                    <comment xml:lang="pt">todos os ficheiros</comment>
                    <comment xml:lang="pt_BR">todos os arquivos</comment>
                    <comment xml:lang="ro">toate fișierele</comment>
                    <comment xml:lang="ru">все файлы</comment>
                    <comment xml:lang="se">buot fiillat</comment>
                    <comment xml:lang="sk">všetky súbory</comment>
                    <comment xml:lang="sl">vse datoteke</comment>
                    <comment xml:lang="sr">сви фајлови</comment>
                    <comment xml:lang="sr@ijekavian">сви фајлови</comment>
                    <comment xml:lang="sr@ijekavianlatin">svi fajlovi</comment>
                    <comment xml:lang="sr@latin">svi fajlovi</comment>
                    <comment xml:lang="sv">alla filer</comment>
                    <comment xml:lang="th">แฟ้มทั้งหมด</comment>
                    <comment xml:lang="tr">tüm dosyalar</comment>
                    <comment xml:lang="ug">ھەممە ھۆججەتلەر</comment>
                    <comment xml:lang="uk">всі файли</comment>
                    <comment xml:lang="zh_CN">全部文件</comment>
                    <comment xml:lang="zh_TW">所有檔案</comment>
                  </mime-type>
                -->
                IF an update changes it you may have to redo it, although I haven't encountered that problem yet. This bug has been around since Qt4 and Plasma4 showed up, but it won't be fixed because to do so would break Plasma4, as I understand it.
                Last edited by GreyGeek; Sep 16, 2016, 02:50 PM.
                "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                – John F. Kennedy, February 26, 1962.

                Comment


                  #9
                  HA! I beat you!

                  Please Read Me

                  Comment


                    #10
                    Oops! kde.xml somehow ended up in Bleachbit. How did that happen? What do I do now?

                    steve@steve-desktop:~$ locate kde.xml
                    /usr/share/bleachbit/cleaners/kde.xml
                    steve@steve-desktop:~$ kdesudo kwrite /usr/share/mime/packages/kde.xml
                    QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
                    QFileSystemWatcher: failed to add paths: /home/steve/.config/ibus/bus
                    Bus:pen: Can not get ibus-daemon's address.
                    IBusInputContext::createInputContext: no connection to ibus-daemon

                    Comment


                      #11
                      Assuming, as you say, that kde.xml no longer exists the first step below isn't needed:
                      sudo mv -vi /usr/share/mime/packages/kde.xml /usr/share/mime/packages/kde.xml.bak
                      All you need to do is:
                      sudo update-mime-database /usr/share/mime
                      (Beat him! )
                      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                      – John F. Kennedy, February 26, 1962.

                      Comment


                        #12
                        Nothing like healthy competition for efficiency!

                        Comment


                          #13
                          I'll get you next time!


                          Please Read Me

                          Comment


                            #14
                            Originally posted by oshunluvr View Post
                            I'll get you next time!

                            I certainly wouldn't want to take advantage of your youth and inexperience!
                            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                            – John F. Kennedy, February 26, 1962.

                            Comment

                            Working...
                            X