Reading list Switch to dark mode

    Odoo 13 installation on Ubuntu 18.04

    Updated 13 July 2020

    The Odoo version 13 is officially rolled out and has already created a buzz among the users. You can visit GitHub to find the Source Code for Odoo Community Edition.

    This blog will explain how to install Odoo version 13 (Community Edition) on Ubuntu 18.04.

    Installation steps for previous Ubuntu version(s) till version Ubuntu 16 are similar. You can visit the blog for Odoo 11 installation on ubuntu 16.04 to know the step by step installation of the previous version.

    Ubuntu 18.04 comes preinstalled with Python 3.6 which is compatible with Odoo 13. You need to run some commands in terminal for Odoo 13 installation on Ubuntu.

    Steps for Odoo 13 installation on Ubuntu

    1) Update apt source-lists.

    sudo apt update

    2) Add a new system user name “Odoo” that will own and run the application.

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

    3) Install and configure database server PostgreSQL.

    sudo apt install -y postgresql
    sudo systemctl start postgresql

    4) Setup a new PostgreSQL user.  The “Odoo” user will be used by Odoo to interact with the database.

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

    5) Clone the latest branch of Odoo, in our case it is 13.0 from Github:

    sudo su - odoo -s /bin/bash
    git clone --depth 1 --branch 13.0 --single-branch .

    6) System dependencies

    sudo apt install wget git python-pip gdebi-core python3-dev libxml2-dev libxslt-dev libldap2-dev libsasl2-dev

    Wkhtmltopdf is also required

    Searching for an experienced
    Odoo Company ?
    Find out More
    sudo dpkg -i wkhtmltox_0.12.1.4-2.bionic_amd64.deb

    Install Python3 dependencies for Odoo.

    cd /opt/odoo
    pip3 install -r requirements.txt

    7) Install Odoo Web dependencies.

    sudo apt install -y npm
    sudo npm install -g less less-plugin-clean-css
    sudo apt install -y node-less

    8) Create a directory to store Odoo logs and then change the ownership.

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

    9) Create a configuration file for Odoo.

    sudo nano /etc/odoo-server.conf

    Sample Configuration might look like this:

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

    Now, set the ownership.

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

    10) Create a boot script for Odoo.

    Now, we need a script which will let us start/stop Odoo as a service automatically, with the correct user. Click here to see get the script.

    Now, create a new file.

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

    Now, set the ownership.

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

    11) Start the Odoo Server.

    sudo /etc/init.d/odoo-server start
    • Using ‘status’, we can find information about all running odoo daemon servers.
    • Using ‘force-stop/force-restart’, we can kill all running Odoo daemon forcefully and can start fresh odoo-server daemon.
    • ‘Start/Stop’ will not allow more than one process per daemon.

    You can check logs using:

    tail -f /var/log/odoo/odoo-server.log

    Optionally, You can start Odoo server manually for debugging.

    sudo su - odoo -s /bin/bash
    ./odoo-bin -c /etc/odoo.conf

    If the log file looks OK, you can check Odoo server running on your browser with URL:



    Did you find the guide helpful? Please feel free to share your feedback in the comments below.

    If you still have any issues/queries regarding the module then please raise a ticket at

    For any doubt contact us at [email protected].

    Thanks for paying attention!!

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


  • Besma
    Good morning, I’d like to install Odoo13 on ubuntu 18.4 but the following error occurs:
    dpkg: error while cleaning up:
    installed odoo package post-installation script subprocess returned error exit status 1
    errors were incountred while processing:
    N:Ingoring file ‘odoo.listget’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    • Gurneesh Chahal (Moderator)
      You are trying to install odoo using debian package and in this blog post we have given instructions on installing odoo by cloning source from github. To resolve this issue you might have to remove odoo entries from /etc/apt/sources.list.d/
  • John Roy A. Geralde
    In Step 11 :sudo /etc/init.d/odoo-server start

    The following error occurs:
    Error in ODOO Daemon file: /opt/odoo/odoo-bin
    Possible error(s):
    * Daemon File doesn’t exists.
    * Daemon File is not set to executable.

    • Gurneesh Chahal (Moderator)
      Hi There,
      This error occurs if either user odoo doesn’t have ownership of odoo-bin or odoo-bin is not executable. Please attach the output of command: “ll /opt/odoo/odoo-bin”.
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home