support Click to see our new support page.
support For sales enquiry!

Install Odoo 11 On Ubuntu 16.04


Muhamed YasirApril 28, 2018

how to install Odoo 11 on ubuntu 16.04

Odoo is an amazing Open ERP platform. It's version Odoo 11 is an astounding Open Source ERP business software version based on the Python programming language. Installation of  Odoo 11 on Ubuntu 16.04 is not a herculean task. You just need to follow the below steps to install Odoo 11 on Ubuntu 16.04 using github Odoo source code:

Step 1: 

Update apt source-lists:

sudo apt-get update

Step 2: 

Create the Odoo user that will own and then run the application.

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

Step 3: 

Install and then configure the database server, PostgreSQL.

sudo apt-get install -y postgresql

Once the PostgreSQL installation is completed, we need to create a postgres user to communicate with Odoo.

sudo service postgresql start
sudo su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo

Enter password for new role: *****

Enter it again: *****

Now exit from the postgres

sudo service postgresql restart

Step 4: 

Install the Python libraries and also other needed libraries required for Odoo:

Odoo 11 uses python 3.x and also python 3.5 is already installed on Ubuntu 16.04 by default. So in order to install all dependent libraries easily we`ll install pip3 in our server:

sudo apt-get install -y python3-pip

Once pip3 is installed on server,  now we can install other dependent libraries using pip3:

pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib Pillow psutil psycogreen psycopg2 pydot pyparsing PyPDF2 pyserial python-dateutil python-openid pytz pyusb PyYAML qrcode reportlab requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd

Next is to install Odoo Web Dependencies:

sudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css
sudo apt-get install -y node-less 

Step 5:

Install Odoo community version 11 which is available in GITHUB.

Below command to install GIT on your system. If it is already there, then you can ignore this.

sudo apt-get install -y git

Then switch to the Odoo user:

sudo su - odoo -s /bin/bash

Clone branch 11.0 of Odoo from Github:

git clone --depth 1 --branch 11.0 --single-branch .

Now exit from the odoo user account:


Step 6:

Create configuration file to run as a service.

sudo vim /etc/odoo-server.conf

A sample configuration file is as like this:

; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = False
logfile = /var/log/odoo/odoo-server.log
addons_path = /opt/odoo/addons,/opt/odoo/odoo/addons

Now set the ownership and permission of the configuration file:

sudo chown odoo: /etc/odoo-server.conf
sudo chmod 640 /etc/odoo-server.conf

Now create a directory for storing logs of Odoo server and assigning proper ownership to the directory:

sudo mkdir /var/log/odoo
sudo chown odoo:root /var/log/odoo

Step 7:

You can copy and paste the script to this file.

sudo vim /etc/init.d/odoo-server

Now change the ownership and permission of the file. The init script will be run by the root user.

sudo chmod 755 /etc/init.d/odoo-server
sudo chown root: /etc/init.d/odoo-server

Step 8:

Test the server running as service

To start the Odoo sever:

sudo /etc/init.d/odoo-server start

For stopping the Odoo server:

sudo /etc/init.d/odoo-server stop

To view the log file of odoo server:

tailf /var/log/odoo/odoo-server.log

Now, if you want to add this service to begin on boot up, you can simply use:

update-rc.d odoo-server defaults

To run manually:

Switch to odoo user

sudo su – odoo -s /bin/bash

Run the server


If everything is fine, then you can check Odoo server running on your browser with url:



If there is any error, you can see in the log.

Install wkhtmltopdf

If wkhtmltopdf is not installed in your system, you cannot print any pdf reports and it will show you the error 'Unable to find Wkhtmltopdf on this system'. To overcome this error, install the right version of wkhtmltopdf as below.

sudo wget
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin

Hope you have understood how to install odoo 11 on ubuntu 16.04 and also configured the Odoo 11 on Ubuntu 16.04 properly.

If you enjoy our content here, you’ll ❤️ the stuff we share on LinkedIn.


LinkedIn LinkedIn