Install dictfmt by entering the following commands in the terminal:
sudo apt update sudo apt install dictfmt
utility to format a file for use by a dictd server
This package provides dictfmt. This utility can convert an input file to a dictionary database that conforms to the DICT protocol, and create a corresponding index file. . The package also provides dictunformat, which creates a raw database from a dictionary index and a dictionary database.