file (libmagic) reporting wrong mime type on debian

0

On a debian buster server, I have an .avi file, which surely is an avi video.

However, file reports a wrong result:

$ file -i "myfile.avi"
myfile.avi: image/x-tga; charset=binary

What could be the reason?

The same file on my pc (rsynced) is correctly reported as a video.

Looking for a solution, I saw that:

$ sudo apt remove libmagic1 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.3-cgi : Depends: libmagic1 but it is not going to be installed
              Depends: php7.3-cli but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Does this thing help resolving my issue?

Paolo Benvenuto

Posted 2019-09-13T13:57:26.620

Reputation: 299

No answers