What a miss here in our docker Cobbler instance! When trying to import a new distro in Cobbler the import finished with failed task and multiple errors of:
running: /usr/bin/file /var/www/cobbler/ks_mirror/ubuntu-18.04.3-server-amd64-x86_64/dists/bionic/Release.gpg received on stdout: received on stderr: /bin/sh: /usr/bin/file: No such file or directory running: /usr/bin/file /var/www/cobbler/ks_mirror/ubuntu-18.04.3-server-amd64-x86_64/dists/bionic/main/binary-i386/Release received on stdout: received on stderr: /bin/sh: /usr/bin/file: No such file or directory
The “file”? Apparently, the Linux file command is missing and it is just possible because it is a docker container with the minimum installation of packages and dependencies.
Without the “file” command import will fail with “No signature matched” even you have synced with the latest signature just before the execution of the import command.
Install the package “file” in your server.
yum install -y file
apt install -y file