How To Install Odoo on Ubuntu 20.04 LTS

Install Odoo on Ubuntu 20.04

In this tutorial, we will show you how to install Odoo on Ubuntu 20.04 LTS. For those of you who didn’t know, Odoo is one of the most popular and most powerful Open Source ERP business software based on the Python programming language. It is a web-based fully-featured application and comes with Open Source CRM, Point of Sales, Human Resource Management, Point of Sales, Billing and Accounting, Event Management, Email Marketing, Order Tracking etc. This application is helpful to maintain ERP in any business.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step by step installation Odoo open-source ERP on a Ubuntu 20.04 (Focal Fossa) LTS. You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian based distribution like Linux Mint.

Install Odoo on Ubuntu 20.04 LTS Focal Fossa

Step 1. First, make sure that all your system packages are up-to-date by running these following apt commands in the terminal.

sudo apt update
sudo apt upgrade
sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less

Step 2. Installing PostgreSQL.

Install the PostgreSQL package using the apt command:

sudo apt install postgresql postgresql-client

By default, the PostgreSQL service is started automatically after the installation. You can confirm if it is running with the command:

systemctl status postgresql.service

PostgreSQL access graphical interface, you need to install pgAdmin:

sudo apt install pgadmin3

Next, create a PostgreSQL database user for Odoo:

sudo su postgres
createuser --createdb --username postgres --no-createrole --pwprompt USERNAME

Then, you might need to execute the following command to assign superuser rights to a new user:

postgres@ubuntu$ psql

postgres=# \du;
                                    List of roles
 Role name  |                         Attributes                         | 
 twink      | Create DB                                                  | {}
 postgres   | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

postgres=# \du;
                                    List of roles
 Role name  |                         Attributes                         | 
 twink      | Superuser, Create DB                                       | {}
 postgres   | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

postgres=# exit

Finally, the user is created as well as assigned superuser rights. Also, one more command you have to execute and exit it:

createdb stable --encoding=UNICODE

Step 3. Installing Odoo on Ubuntu 20.04.

First, Download Odoo 13 source code from Github:

git clone --depth 1 --branch 13.0 --single-branch

Once downloaded, You have to go to that directory. Here you see the requirement.txt file. Python dependencies listed in the requirements.txt file. You have to execute the below command to install depended on Python modules using pip3:

cd /13.0
sudo pip3 install -r requirements.txt

Step 4. Install wkhtmltopdf.

Now we download and install the Wkhtmltopdf package:

sudo apt install ./wkhtmltox_0.12.5-1.bionic_amd64.deb

Step 5. Start Odoo 13 Server.

You have to give the following access right to execute:

sudo chmod 775 odoo-bin

Finally, you have to execute the odoo-bin command to start Odoo 13 in your local machine:


Step 6. Accessing Odoo.

Odoo will be available on HTTP port 8069 by default. Open your favourite browser and navigate to or http://server-ip-address:8069.

Install Odoo on Ubuntu 20.04

Congratulations! You have successfully installed Odoo. Thanks for using this tutorial for installing Odoo 14 Open Source ERP on Ubuntu 20.04 Focal Fossa system. For additional help or useful information, we recommend you to check the official Odoo website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!