You are not logged in.

#1 2026-03-22 08:46:59

archlinuxforever
Member
Registered: 2015-06-18
Posts: 91

warning: could not get file information for .../anki.xml

Hi

Last full system upgrade I got this warning: "warning: could not get file information for usr/share/mime/application/anki.xml". After the full system upgrade, the file still does not exist.

Can someone help me to solve this issue?

Offline

#2 2026-03-22 11:21:41

xerxes_
Member
Registered: 2018-04-29
Posts: 1,047

Re: warning: could not get file information for .../anki.xml

I got similar warning from time to time for file usr/share/mime/model/materialx.xml from package materialx when it is updated. For some reason pacman when updating this package is unable to extract/copy this file and with anki package probably is the same. Even if I manually unpack this file to desired directory it is deleted during package update. This happens every this package update. I don't see any negative impact, so I leave it without file as it is now, but if you need it then you have to manually unpack your missing file from anki package.

Offline

#3 2026-03-22 11:23:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,699

Re: warning: could not get file information for .../anki.xml

What does pacman-conf give you?

Online

#4 2026-03-22 11:45:44

xerxes_
Member
Registered: 2018-04-29
Posts: 1,047

Re: warning: could not get file information for .../anki.xml

For me I thing it gives nothing special, sane defaults:

$ pacman-conf
[options]
RootDir = /
DBPath = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
HookDir = /etc/pacman.d/hooks/
GPGDir = /etc/pacman.d/gnupg/
LogFile = /var/log/pacman.log
DownloadUser = alpm
HoldPkg = pacman
HoldPkg = glibc
Architecture = x86_64
CheckSpace
ParallelDownloads = 5
CleanMethod = KeepInstalled
SigLevel = PackageRequired
SigLevel = PackageTrustedOnly
SigLevel = DatabaseOptional
SigLevel = DatabaseTrustedOnly
LocalFileSigLevel = PackageOptional
LocalFileSigLevel = PackageTrustedOnly
[core]
Usage = All
Server = http://mirror.moson.org/arch/core/os/x86_64
Server = http://arch.jensgutermuth.de/core/os/x86_64
Server = https://mirror.osbeck.com/archlinux/core/os/x86_64
[extra]
Usage = All
Server = http://mirror.moson.org/arch/extra/os/x86_64
Server = http://arch.jensgutermuth.de/extra/os/x86_64
Server = https://mirror.osbeck.com/archlinux/extra/os/x86_64
[multilib]
Usage = All
Server = http://mirror.moson.org/arch/multilib/os/x86_64
Server = http://arch.jensgutermuth.de/multilib/os/x86_64
Server = https://mirror.osbeck.com/archlinux/multilib/os/x86_64

My problem is missing usr/share/mime/model/materialx.xml and warning during materialx package update, but I think that with OP usr/share/mime/application/anki.xml and anki package it's the same (I don't have that one).

Last edited by xerxes_ (2026-03-22 11:50:02)

Offline

#5 2026-03-22 11:52:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,699

Re: warning: could not get file information for .../anki.xml

If you have it manually extracted, does it get deleted when you run `/usr/bin/update-mime-database /usr/share/mime`?

Online

#6 2026-03-22 12:01:18

xerxes_
Member
Registered: 2018-04-29
Posts: 1,047

Re: warning: could not get file information for .../anki.xml

OK, done that. Now I will have to wait for next materialx package update to find out if it worked.

UPDATE
I checked once more /usr/share/mime/model/ directory and materialx.xml file is gone after runing '/usr/bin/update-mime-database /usr/share/mime'.
Maybe it is not needed in my system?

Last edited by xerxes_ (2026-03-22 12:28:39)

Offline

#7 2026-03-22 14:50:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,699

Re: warning: could not get file information for .../anki.xml

So that explains why it's disappearing, but I have no idea why update-mime-database would be deleting it, or even if that's expected behavior. You'd have to look into that program and see.

Online

#8 2026-03-22 16:50:56

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,432

Re: warning: could not get file information for .../anki.xml

What are the contents of /usr/share/mime/model/materialx.xml ?
Might be an invalid mime description - the other files in /usr/share/mime/model/ remain?

Offline

#9 2026-03-22 16:57:48

loqs
Member
Registered: 2014-03-06
Posts: 18,860

Re: warning: could not get file information for .../anki.xml

/usr/share/mime/{all,application,audio,chemical,font,image,inode,message,model,multipart,text,x-content,x-epoc,video}/ are the output directories of update-mime-database that are cleaned before new files are generated.  Packages are expected to place a mime data file in /usr/share/mime/packages/. https://specifications.freedesktop.org/ … #s2_layout
Edit:

$ pacman -F usr/share/mime/{all,application,audio,chemical,font,image,inode,message,model,multipart,text,x-content,x-epoc,video}/
usr/share/mime/application/ is owned by extra/anki 25.09.2-6
usr/share/mime/model/ is owned by extra/materialx 1.39.4-3

Last edited by loqs (2026-03-22 17:14:28)

Offline

#10 2026-03-22 21:25:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,699

Re: warning: could not get file information for .../anki.xml

So that would be a packaging bug on both packages, as the PKGBUILD puts them there not the upstream build system. Need to be filed in Arch's gitlab .

Online

#11 2026-03-26 14:51:09

archlinuxforever
Member
Registered: 2015-06-18
Posts: 91

Re: warning: could not get file information for .../anki.xml

This is the output in my PC:

$ pacman -F usr/share/mime/{all,application,audio,chemical,font,image,inode,message,model,multipart,text,x-content,x-epoc,video}/
usr/share/mime/model/ está contenido en extra/materialx 1.38.10-6
$

Offline

#12 2026-03-26 15:01:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,432

Re: warning: could not get file information for .../anki.xml

https://gitlab.archlinux.org/archlinux/ … 1de8a9714f

https://gitlab.archlinux.org/archlinux/ … erialx.xml doesn't fit into packages, https://gitlab.archlinux.org/archlinux/ … rk_items/2 actually suggested the correct solution.


It's worse, this got fixed forth and back lol
=> https://gitlab.archlinux.org/archlinux/ … rk_items/5

Last edited by seth (2026-03-26 15:18:27)

Offline

#13 2026-03-26 17:18:02

xerxes_
Member
Registered: 2018-04-29
Posts: 1,047

Re: warning: could not get file information for .../anki.xml

Here

$ pacman -F usr/share/mime/{all,application,audio,chemical,font,image,inode,message,model,multipart,text,x-content,x-epoc,video}/

returns nothing, but there are other xml files in subdirectories, except materialx.xml file.

But what about OPs anki.xml?

Last edited by xerxes_ (2026-03-26 17:24:30)

Offline

#14 2026-03-26 20:39:58

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,432

Re: warning: could not get file information for .../anki.xml

We'd need to see

pacman -Qikk anki
pacman-conf

from the OP

about the materialx thing, svenstaro would like a working patch - I expect

diff --git a/PKGBUILD b/PKGBUILD
index fb2c49c..7a41c60 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -98,7 +98,7 @@ package() {
 
   mkdir -p ${pkgdir}/usr/share/{applications,mime/model,licenses/$pkgname}
   cp ${srcdir}/{materialx-grapheditor.desktop,materialx-view.desktop} ${pkgdir}/usr/share/applications
-  install -Dm644 ${srcdir}/materialx.xml ${pkgdir}/usr/share/mime/model/materialx.xml
+  install -Dm644 ${srcdir}/materialx.xml ${pkgdir}/usr/share/mime/packages/materialx.xml
   mv ${pkgdir}/usr/{LICENSE,THIRD-PARTY.md} ${pkgdir}/usr/share/licenses/materialx/
 
   # Remove empty dirs
diff --git a/materialx.xml b/materialx.xml
index 89ce770..d6957a2 100644
--- a/materialx.xml
+++ b/materialx.xml
@@ -1,8 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
-<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="model/materialx">
-  <comment>MaterialX Shading Network</comment>
-  <icon name="materialx"/>
-  <glob-deleteall/>
-  <glob pattern="*.MTLX"/>
-  <glob pattern="*.mtlx"/>
-</mime-type>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+  <mime-type type="model/materialx">
+    <comment>MaterialX Shading Network</comment>
+    <icon name="materialx"/>
+    <glob-deleteall/>
+    <glob pattern="*.MTLX"/>
+    <glob pattern="*.mtlx"/>
+  </mime-type>
+</mime-info>

to work but am not inclined to build or test that (i don't even know what materialx is and never have used ninja)

If you put

<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="model/materialx">
    <comment>MaterialX Shading Network</comment>
    <icon name="materialx"/>
    <glob-deleteall/>
    <glob pattern="*.MTLX"/>
    <glob pattern="*.mtlx"/>
  </mime-type>
</mime-info>

into /usr/share/mime/packages/materialx.xml and run

/usr/bin/update-mime-database /usr/share/mime

, do things work and you get a fancy new /usr/share/mime/model/materialx ?

Offline

#15 2026-03-26 22:32:54

xerxes_
Member
Registered: 2018-04-29
Posts: 1,047

Re: warning: could not get file information for .../anki.xml

No, this new materialx.xml after running /usr/bin/update-mime-database /usr/share/mime still disappears.

Other xml files from this subdirectory and from others don't have that <mime-info ...  </mime-info> outer sections. This may be something different.

I didn't check progs from this package earlier, as it was installed as some dependency, but I check it now 2 of them: MaterialXGraphEditor (opens and works; it's some simple model editor) and MaterialXView - crashes:

$ coredumpctl info /usr/bin/MaterialXView
           PID: 2831 (MaterialXView)
           UID: 1000 (user)
           GID: 1000 (user)
        Signal: 4 (ILL)
     Timestamp: Thu 2026-03-26 22:57:20 CET (1min 52s ago)
  Command Line: MaterialXView
    Executable: /usr/bin/MaterialXView
 Control Group: /user.slice/user-1000.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1000.slice
       Session: 1
     Owner UID: 1000 (user)
       Boot ID: 63644faf7b8942df9f53234d47e7f7ae
    Machine ID: 4e6eb13c33544bc2bce3efeaf0d12478
      Hostname: home
       Storage: none
       Message: Process 2831 (MaterialXView) of user 1000 terminated abnormally without generating a coredump.

I checked that signal 4 - SIGILL on x86 is Illegal Instruction. I didn't seen it before.

Offline

#16 2026-03-26 22:35:23

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,432

Re: warning: could not get file information for .../anki.xml

It disappears from /usr/share/mime/packages/materialx.xml ??
Or did you put it into /usr/share/mime/model/materialx.xml (where it has absolutely no business of being)

Offline

#17 2026-03-26 22:50:43

loqs
Member
Registered: 2014-03-06
Posts: 18,860

Re: warning: could not get file information for .../anki.xml

Perhaps also match by file contents in addition to extension which I believe is case insensitive on its second pass):

    <magic priority="80">
      <match type="string" offset="0:1024" value="&lt;materialx">
        <match type="string" offset="1:128" value="version="/>
      </match>
    </magic>
    <root-XML localName="materialx"/>

Offline

#18 2026-03-26 22:55:22

xerxes_
Member
Registered: 2018-04-29
Posts: 1,047

Re: warning: could not get file information for .../anki.xml

OK. Now I done it once more but right after I run /usr/bin/update-mime-database /usr/share/mime /usr/share/mime/model/materialx.xml file stays in directory, so it works!

Last edited by xerxes_ (2026-03-26 22:56:10)

Offline

#19 2026-03-26 23:33:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,432

Re: warning: could not get file information for .../anki.xml

For clarification, you previously put the new materialx.xml in /usr/share/mime/model again but when using /usr/share/mime/packages everything works as expected?

If you're applying loqs' extension (and run update-mime-database to update /usr/share/mime/model/materialx), does mimetype handling still work (and does eg. file or mimetype from perl-file-mimeinfo correctly detect *.mtlx files?

<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="model/materialx">
    <comment>MaterialX Shading Network</comment>
    <icon name="materialx"/>
    <magic priority="80">
      <match type="string" offset="0:1024" value="&lt;materialx">
        <match type="string" offset="1:128" value="version="/>
      </match>
    </magic>
    <root-XML localName="materialx"/>
    <glob-deleteall/>
    <glob pattern="*.MTLX"/>
    <glob pattern="*.mtlx"/>
  </mime-type>
</mime-info>

Offline

#20 2026-03-27 13:35:23

xerxes_
Member
Registered: 2018-04-29
Posts: 1,047

Re: warning: could not get file information for .../anki.xml

seth wrote:

For clarification, you previously put the new materialx.xml in /usr/share/mime/model again but when using /usr/share/mime/packages everything works as expected?

Yes.

When I apply loqs' extension and run update-mime-database:

# update-mime-database -V /usr/share/mime/
Updating MIME database in /usr/share/mime...

Parsing source file /usr/share/mime/packages/application-x-xpraconfig.xml...
...
Parsing source file /usr/share/mime/packages/materialx.xml...
Error in type 'model/materialx' (in /usr/share/mime/packages/materialx.xml): Missing 'namespaceURI' attribute'.
Parsing source file /usr/share/mime/packages/okteta.xml...
...

So there is only one error when mangling all xml mime files, previously it wasn't.

And this is content of /usr/share/mime/model/materialx.xml file now:

<?xml version="1.0" encoding="utf-8"?>
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="model/materialx">
  <!--Created automatically by update-mime-database. DO NOT EDIT!-->
  <comment>MaterialX Shading Network</comment>
  <icon name="materialx"/>
</mime-type>

Run mimetype from perl-file-mimeinfo on *.mtlx files:

$ mimetype /usr/share/materialx/libraries/targets/*
/usr/share/materialx/libraries/targets/essl.mtlx:    model/materialx
/usr/share/materialx/libraries/targets/genglsl.mtlx: model/materialx
/usr/share/materialx/libraries/targets/genmdl.mtlx:  model/materialx
/usr/share/materialx/libraries/targets/genmsl.mtlx:  model/materialx
/usr/share/materialx/libraries/targets/genosl.mtlx:  model/materialx

Looks like it work. But file says that they are "XML 1.0 document, ASCII text" files.

Last edited by xerxes_ (2026-03-27 13:41:37)

Offline

#21 2026-03-27 14:14:38

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 392

Re: warning: could not get file information for .../anki.xml

If anyone would like to make an MR, I'd be happy to merge the fix. smile

Offline

#22 2026-03-27 17:07:43

loqs
Member
Registered: 2014-03-06
Posts: 18,860

Re: warning: could not get file information for .../anki.xml

With namespaceURI added and set to an empty string:

<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="model/materialx">
    <comment>MaterialX Shading Network</comment>
    <icon name="materialx"/>
    <magic priority="80">
      <match type="string" offset="0:1024" value="&lt;materialx">
      </match>
    </magic>
    <root-XML localName="materialx" namespaceURI=""/>
    <glob-deleteall/>
    <glob pattern="*.MTLX"/>
    <glob pattern="*.mtlx"/>
  </mime-type>
</mime-info>

Tested with

$ git clone https://github.com/AcademySoftwareFoundation/MaterialX.git
$ cd MaterialX/
$ find . -name "*.mtlx" -exec xdg-mime query filetype {} \;
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx

Offline

#23 2026-03-27 17:28:53

xerxes_
Member
Registered: 2018-04-29
Posts: 1,047

Re: warning: could not get file information for .../anki.xml

@loqs
For me version of materialx.xml from post #14 in this thread also works:

<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="model/materialx">
    <comment>MaterialX Shading Network</comment>
    <icon name="materialx"/>
    <glob-deleteall/>
    <glob pattern="*.MTLX"/>
    <glob pattern="*.mtlx"/>
  </mime-type>
</mime-info>

After copying it to /usr/share/mime/packages/ and running 'update-mime-database -V /usr/share/mime' mimetype command also recognize mtlx files:

$ mimetype /usr/share/materialx/libraries/targets/*
/usr/share/materialx/libraries/targets/essl.mtlx:    model/materialx
/usr/share/materialx/libraries/targets/genglsl.mtlx: model/materialx
/usr/share/materialx/libraries/targets/genmdl.mtlx:  model/materialx
/usr/share/materialx/libraries/targets/genmsl.mtlx:  model/materialx
/usr/share/materialx/libraries/targets/genosl.mtlx:  model/materialx

And it don't produce error like in post #20 (probably not much visible, but still):

Error in type 'model/materialx' (in /usr/share/mime/packages/materialx.xml): Missing 'namespaceURI' attribute'.

So I don't know what your other/next versions add? Can you describe?

Last edited by xerxes_ (2026-03-27 17:33:12)

Offline

#24 2026-03-27 20:29:35

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,432

Re: warning: could not get file information for .../anki.xml

Sorry, forgot to mention  that I posted a patch on https://gitlab.archlinux.org/archlinux/ … rk_items/5 (namespaceURI links the doc loqs posted earlier)

Offline

#25 2026-04-04 16:10:40

sekret
Member
Registered: 2013-07-22
Posts: 305

Re: warning: could not get file information for .../anki.xml

I had such a problem with ardour a while back. Here's the bug report, which also contains the fix: https://bugs.archlinux.org/task/72867

Offline

Board footer

Powered by FluxBB