Install Odoo 11 on Ubuntu 16.04

Hello Everyone. Below you will find the easiest installation guide of odoo 11.  Hurry up ! Install Odoo 11 on your Ubuntu 16.04. EXPLORE AMAZING NEW FEATURES OF “Odoo 11″. To know What’s New in Odoo 11 Click Here

Step 1

Update apt source list

sudo apt-get update

Step 2

Install Updates

sudo apt-get -y upgrade
The -y flag will confirm that we are agreeing for all items to be installed.

Step 3

Install Python Dependencies for Odoo 11

sudo apt-get install python3-pip

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

Step 4

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 node-less

Step 5

Install PostgreSQL 9.6+

sudo apt-get install python-software-properties
sudo vim /etc/apt/sources.list.d/pgdg.list
add a line for the repository
deb xenial-pgdg main
wget --quiet -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.6

Step 6

Create Database user for Odoo

sudo su postgres
createuser -s odoo
createuser -s ubuntu_user_name

Step 7

Create Odoo user and group

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

Step 8

Install Gdata

cd /opt/odoo
sudo wget
sudo tar zxvf gdata-2.0.18.tar.gz
sudo chown -R odoo: gdata-2.0.18
sudo -s
cd gdata-2.0.18/
python install

Step 9

Odoo 11 Download from GitHub

Get lastest Odoo 11 from github repository. Download the Zip file from URL : “″ . Transfer the same file to /opt/odoo directory on server through ftp. Otherwise follow the below steps
cd /opt/odoo
sudo apt-get install git
sudo su - odoo -s /bin/bash
git clone --depth 1 --branch 11.0 --single-branch

Step 10

Create Odoo Log File

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

Step 11

Edit Odoo configuration file

sudo vim /etc/odoo.conf
#Copy and paste below content in config file , write correct addons paths
; 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

Save and Exit the file. Now run the below command on terminal to grant ownership.

sudo chown odoo: /etc/odoo.conf

Step 12

WKHTMLTOPDF ( Supported Version 0.12.1 ) for Odoo

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

Step 13

Now Start Odoo Server

cd /opt/odoo/odoo

Step 14

Go to web browser to access Odoo 11


Your Feedback will be Appreciated. Thanks


ISSUE 1 : E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

Recent Posts
Showing 18 comments
  • Abulbishr

    Good Job

    For the 13th step, i have an error with Pypdf2, i install it manual

  • Alouane

    Hi, thanks a lot for your tutorial.

    I have not access to the git repository for entreprise , instaed i have downloaded the Packaged installer for Deb and I have get this error :

    dpkg: dependency problems prevent configuration of odoo:
    odoo depends on python3-babel; however:
    Package python3-babel is not installed.
    odoo depends on python3-dateutil; however:
    Package python3-dateutil is not installed.
    odoo depends on python3-decorator; however:
    Package python3-decorator is not installed.
    odoo depends on python3-docutils; however:
    Package python3-docutils is not installed.
    odoo depends on python3-feedparser; however:
    Package python3-feedparser is not installed.
    odoo depends on python3-gevent; however:
    Package python3-gevent is not installed.
    odoo depends on python3-html2text; however:
    Package python3-html2text is not installed.
    odoo depends on python3-jinja2; however:
    Package python3-jinja2 is not installed.
    odoo depends on python3-lxml; however:
    Package python3-lxml is not installed.
    odoo depends on python3-mako; however:
    Package python3-mako is not installed.
    odoo depends on python3-mock; however:
    Package python3-mock is not installed.
    odoo depends on python
    dpkg: error processing package odoo (–install):
    dependency problems – leaving unconfigured
    Processing triggers for systemd (229-4ubuntu19) …
    Processing triggers for ureadahead (0.100.0-19) …
    Errors were encountered while processing:

    Can you please help ?

    Thanks a lot

  • Apisak Srihamat

    Dear Sumaiya,

    This is very helpful, many thanks for contribution.
    I have some minor suggestion, after completed step 9, we need to tell the beginer that they must do ‘exit’ :)

    • GetOpenERP

      Thanks for the feedback. Updated

  • arik

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

    then it ask for password. What password is this.

  • Etienne

    At the end of Step 9
    Missing exit

  • Jack

    I failed to install my Odoo 11 Last time two weeks ago. Thx u for ur tutorial and help, because this is the closest step that I have ever reached.

    I run into password problems in Step 10.
    System gives me the following messages right after I issuing commands in Step 10.

    odoo@ubuntu:~$ sudo mkdir /var/log/odoo <== my command
    [sudo] password for odoo:

    After several trials, I got
    sudo: 3 incorrect password attempts

    And I have to abort the installation process. (PS: I am a new user to this ubunto+odoo system. Please forgive me if I ask a stupid question.) I wonder where it went wrong.

    • GetOpenERP

      system is asking for login user password . If you forgot then reset it. Thanks

      • Jack

        Thank you very much. All thanks to you. My login user password has been reset and the problem is solved. Really appreciated!
        Everything goes so well, until I practice the odoo 11 installation process on a 2nd system (they are all with the same kind of hardware equipments) just to make sure that I can repeat the process.

        It shows that the 1st machine once lived now encounter an internal server error. The following is the message:

        “The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.”

        But the 2nd machine gets her chance to be successful when I hit http://localhost:8069 in the browser. I appreciated your command since they did work. And I need your advice about my first machine. Could I use the same E-mail for two different machines. Will that be a problem?

        • Jack

          Ha, They all come back to normal now…. Many many thanks.

  • Miguel Angel Morales Gonzalez

    Thank you
    it was very useful to do my homework,really,!!

    By the way step 12 didn’t worked for me
    instead i did
    sudo apt-get install wkhtmltopdf
    and worked for me
    Thanks anyway

  • Dennis Del Castillo

    Everything worked flawless, maybe in step 9 exit command should go at the end. Tested in Ubuntu 17.04. Thank you, really appreciate your effort!

    • GetOpenERP

      Thanks for the feedback

  • Taylan

    Thanks a lot ! works perfect !

  • Pallet Rack

    Thank you for the guide!

    I was stuck at the start of Step 9
    cd /opt/odoo
    I got no such file or directory.
    I manually created it but it didn’t work because /opt/odoo/odoo will be missing at the end of the process.

    I followed all the steps and repeated several times but end up with the same results.

    Please help?

    • GetOpenERP

      Kindly follow Step 7 & Step 8

  • Mojahid

    for step 9, I face an error:

    fatal: could not create work tree dir ‘odoo': Permission denied

    solved by running:

    sudo chmod 777 /opt/odoo

  • Ashutosh Dhongde

    Hello all,

    i done all the steps but it showing me network error when iam putting http://localhost:8069
    whta should i have to do for that.

Leave a Comment

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt
ONLINE HELPDESKodoo 11 Features