xls2ods command not found

In this troubleshooting guide we learn how to fix xls2ods command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

xls2ods: command not found

or when using sudo you get the following error message

sudo: xls2ods: command not found

Solutions to xls2ods: command not found

How To Fix xls2ods: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xls2ods is provided by unoconv package.

unoconv is:

This package provides a commandline utility which can convert from any document format that LibreOffice can import to any document format it can export. It uses LibreOffice’s UNO bindings for non-interactive conversion of documents.

Supported document formats include Open Document format, MS Word, MS Office Open/MS OOXML, PDF, HTML, XHTML, RTF, DocBook, and more.

To fix this problem, we can install more using the command below.

sudo apt-get -y install unoconv

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install unoconv.

sudo apt -y install unoconv

Or if you have aptitude installed you can use the following command.

sudo aptitude install unoconv

Summary

In this tutorial we learn how to fix xls2ods command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.