Not able to print reports on Ubuntu 18.04

I am getting the following error when generating reports -

Traceback (most recent call last):
  File "/opt/tryton/lib/python35/site-packages/trytond-503-py35egg/trytond/wsgipy", line 73, in dispatch_request
    return endpoint(request, **requestview_args)
  File "/opt/tryton/lib/python35/site-packages/trytond-503-py35egg/trytond/protocols/dispatcherpy", line 46, in rpc
    request, database_name, *requestrpc_params)
  File "/opt/tryton/lib/python35/site-packages/trytond-503-py35egg/trytond/wsgipy", line 44, in auth_required
    return wrapped(*args, **kwargs)
  File "/opt/tryton/lib/python35/site-packages/trytond-503-py35egg/trytond/protocols/wrapperspy", line 122, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/opt/tryton/lib/python35/site-packages/trytond-503-py35egg/trytond/protocols/dispatcherpy", line 176, in _dispatch
    result = rpcresult(meth(*c_args, **c_kwargs))
  File "/opt/tryton/lib/python35/site-packages/trytond-503-py35egg/trytond/report/reportpy", line 182, in execute
    oext, content = cls_execute(records, data, action_report)
  File "/opt/tryton/lib/python35/site-packages/trytond-503-py35egg/trytond/report/reportpy", line 190, in _execute
    return clsconvert(action, clsrender(action, report_context))
  File "/opt/tryton/lib/python35/site-packages/trytond-503-py35egg/trytond/report/reportpy", line 318, in convert
    subprocesscheck_call(cmd)
  File "/usr/lib/python35/subprocesspy", line 576, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python35/subprocesspy", line 557, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python35/subprocesspy", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python35/subprocesspy", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'soffice'

Any idea for the same?

You need libreoffice installed on the server if you want to make format conversion (like odt → pdf).