sudo apt-get install calibre

To actually convert the EPUB file you can use the following command:

ebook-convert file.epub file.pdf

(For details, check this other answer)

admin