Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The question very simple and short. I am following this article to install OpenOffice headless:

sudo apt-get install

And I get the following error :

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package
E: Couldn't find any package by regex ''


apt-cache search


share|improve this question
what is the output of apt-cache search – user61928 Sep 29 '12 at 9:18
Output is pretty huge. What should I find from there ? or should I paste it here ? – Subhransu Mishra Sep 29 '12 at 9:28
so sudo apt-get update then try installing adain – user61928 Sep 29 '12 at 9:55
THat does not helps, please check the output – Subhransu Mishra Sep 29 '12 at 10:43
up vote 9 down vote accepted

Install OpenOffice following the instruction given at their Website.

The installation procedure is as follows:

  1. First Download the all in one tar package.

  2. Then extract the .tar.gz file into a suitable directory. I downloaded in my home directory.

  3. Then open a terminal and go the the directory containing the .deb files. If you extracted in Home directory, the command is

    cd ~/en-US/DEBS/
  4. Then install all the .deb files with the command:

    sudo dpkg -i *.deb
  5. Since, OpenOffice 2.3 it can be started in headless mode. So, you can start it in headless mode with the command

    soffice --headless 

Hope this will help.

share|improve this answer
Thank you for your time. Your answer is indeed helpful. – Subhransu Mishra Oct 9 '12 at 7:28

Ubuntu switched to libreoffice instead of openoffice quite a while ago.

Install libreoffice-common, then you can run the libreoffice service by adding the "--headless" runtime argument.

$ /usr/bin/libreoffice --headless

The rest of that article should be compatible if you replace "" with "libreoffice" across the board.

share|improve this answer
I am intended to use openoffice for batch conversion by the use of PyODConverter . So could you provide possible solution to install openoffice ? – Subhransu Mishra Sep 30 '12 at 9:05
You can use the upstream packages ( Most distributions no longer offer it. – Eric Sep 30 '12 at 10:06
Thanks Eric for your time. – Subhransu Mishra Sep 30 '12 at 10:15
Eric is right, LibreOffice has replaced OpenOffice. It's just a fork of the same program, but without licensing restrictions. – Sepero Oct 3 '12 at 22:24
According to its github page, PyODConverter supports both LibreOffice and OpenOffice. – andrewsomething Oct 5 '12 at 23:48

Make sure that you have first completely removed LibreOffice, then follow Olive Twist's installation instructions and that should work for you.

share|improve this answer

Download open office headless from here

Although it is the Hardy package, but it should work for you

share|improve this answer Headless install:

apt-get install
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.