You are using a very old and unsupported version of calibre. Uninstall it, and install the official binary from
https://calibre-ebook.com/download_linux if the error still occurs with that, then follow the instructions in:
https://www.mobileread.com/forums/sh...d.php?t=186697