There is a new version of this tutorial available for Ubuntu 22.04 (Jammy Jellyfish).

How to install Odoo ERP Software on Ubuntu 15.04

Odoo is a web-based OpenSource enterprise resource planning and customer relationship software that can help you to organize and grow your business. Odoo was formerly named openERP and therefor TinyERP. There are many apps available to extend Odoo, for example: billing, accounting, manufacturing, purchasing, warehouse management, and project management.

Odoo is created by Fabien Pinckaers/Odoo S.A and written in python. It is available for many operating systems, including Linux, Windows and Mac OS X. I will use Ubuntu 15.04 for the server installation.


  • Ubuntu 15.04 - 64bit
  • 30GB disk
  • 2GB memory

What we will do in this tutorial:

  • Add the Odoo repository
  • Configure a user
  • Install and Configure Postgresql
  • Install dependencies needed by Odoo
  • Install Odoo
  • Configure Odoo

Step 1 - Add the Odoo repository

First you will have  to add the Odoo apt repository to your repository database /etc/apt/sources.list. First add the Odoo key with apt command:

wget -O - | apt-key add -

Then add the Odoo repository with echo command:

echo "deb ./" >> /etc/apt/sources.list

Note: >> = add the Odoo repository to the last line in sources.list file.

and update now:

apt-get update

Step 2 - Configure a Linux user

Create a new user called odoo with home directory /opt/odoo and the group is odoo. You can do it with this command:

sudo adduser --system --home=/opt/odoo --group odoo

and create a new directory for Odoo in the /var/lib/ directory.

mkdir -p /var/lib/odoo

Step 3 - Install and Configure PostgreSQL

Install postgreSQL with the apt-get command:

sudo apt-get install postgresql

and log into the PostgreSQL shell:

su - postgres

Now create a role for Odoo. This will allow Odoo to access/connect to the PostgreSQL server and to create, delete or modify the database. You will have to enter the password to ensure the security and keep it private.

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo

Finally type exit  to log out from the PostgreSQL shell.

Step 4 - Install dependencies needed

Odoo needs many python modules, just install all package below to fullfill its prerequisites:

sudo apt-get install python-cups python-dateutil python-decorator python-docutils python-feedparser \
python-gdata python-geoip python-gevent python-imaging python-jinja2 python-ldap python-libxslt1 \
python-lxml python-mako python-mock python-openid python-passlib python-psutil python-psycopg2 \
python-pybabel python-pychart python-pydot python-pyparsing python-pypdf python-reportlab python-requests \
python-simplejson python-tz python-unicodecsv python-unittest2 python-vatnumber python-vobject \
python-werkzeug python-xlwt python-yaml wkhtmltopdf

Step 5 - Install Odoo

Now you can install Odoo with the apt command:

sudo apt-get install odoo

When the installation is complete, Odoo will be running on port 8069. You can check it with the command:

netstat -plntu

Now you can access Odoo from your browser to configure the database and admin user. You can access Odoo on port 8069 ex:

Step 6 - Configure Odoo

Go to the tab "Password" and set a new master password. Default master password is "admin".

Set a new master password in Odoo.

Then go to the tab "Create" to create a new database and admin password.

Enter database details in Odoo.

Wait until the installation is been completed, then you can see the Odoo home page.

Odoo home page.

But wait, there is alert about the timezone and you need to fix it. Go to "Administrator" and click on "Preferences", then a popup will appear where you can change the timezone, finally click "save".

set the time zone in Odoo.

Now proceed to configure and install apps for your business in Odoo as administrator.


Odoo is an open source application that helps you to manage your business. Odoo / OpenERP is easy to install and configure and supports multiple operating systems. In Odoo, there are many applications available such as billing, accounting, manufacturing, purchasing, warehouse management, and project management. These apps can help you to manage and grow your business.

Share this page:

Suggested articles

9 Comment(s)

Add comment


By: Alex

There are many mistakes in this tutorial:

1. you need to write "sudo su" to become root and execute many of your commands (notice that you didn't write sudo in many of them)

2. Installation from repository creates the user, so your step 2 is not necessary. And if you install from git, the step 2 is wrong: the directory in "-home=/opt/odoo" have to be the same that the one in "mkdir -p /var/lib/odoo"

3. Installation from repository resolves dependencies, so your step 4 is not necessary.

By: Alex

Even your step 3 is not necessary when installing from repositories. Don't need step 2, 3 and 4. All you have to do is:

   sudo su   wget -O - | apt-key add -   echo "deb ./" >> /etc/apt/sources.list   apt-get update   apt-get install odoo


By: CokoTracy

Yes Alex, you are right, why so many command when 3 of them can conclude the Job.. better to understand things before post because saying  "mkdir -p /var/lib/odoo" while said before " the directory in "-home=/opt/odoo" " it confuses.

while being "root". 4 commands will do business.

# wget -O - | apt-key add -

# echo "deb ./" >> /etc/apt/sources.list

# apt-get update

# apt-get install odoo

Done !

 it and then browse : http://localhost:8069   , you get

By: ese986

Well CokoTracy, I just tried your 4 steps procedure, and guess what it didn't work...


I don't care if a procedure contains unnecessary, superfluous and even slightly wrong steps as long as the end result is something that works in any case.


By: PD

Guys I have ubuntu 15.10 is the installation any different?

By: afp

I followed all your steps and ended up with this error: Sub-process /usr/bin/dpkg returned an error code (1) dpkg: error processing package odoo (--configure)

By: valerie

So when i do the sudo apt-get install odoo it doesnt seem to be working on me there it is

[email protected] // :~$ sudo apt-get  install odooReading package lists... DoneBuilding dependency tree       Reading state information... DonePackage odoo is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package 'odoo' has no installation candidate

By: Kishore

Hi, where is the project repository located?

By: amir


in step 3 , when in try to run su - postgres ,it wants password , i don't knowe the password