Install libmagic1 by entering the following commands in the terminal:
sudo apt update sudo apt install libmagic1
Description:
Recognize the type of data in a file using "magic" numbers - library
This library can be used to classify files according to magic number tests. It implements the core functionality of the file command.
Homepage: http://www.darwinsys.com/file/
Version: 1:5.32-2
Section: libs