Skip to content

How to Install Odoo in Debian or Ubuntu

Last updated April-15-2022 Once you are logged in, run the following command to update all installed packages to the latest available version apt-get update && apt upgrade 3. Install PostgreSQL server Odoo requires a…

Sohaib Khan2 min read
How to Install Odoo in Debian or Ubuntu — editorial illustration

Last updated April-15-2022

Once you are logged in, run the following command to update all installed packages to the latest available version

Shell1 line
apt-get update && apt upgrade

3. Install PostgreSQL server

Odoo requires a PostgreSQL database to store its information, so we will have to install the PostgreSQL server. We will install a PostgreSQL server using the following command:

Shell1 line
apt-get install postgresql

Once installed, start the PostgreSQL server and enable it to start at server boot.

PLAINTEXT2 lines
systemctl start postgresql
systemctl enable postgresql

3. Add repository and install Odoo

Odoo is not available in the official Ubuntu 16.04 repository, so in order to install it, we will need to add the Odoo repository to the server. In order to do it, run the following commands - Just add the source list based on the version you are looking to install

Odoo 10

Shell1 line
wget -O - https://nightly.odoo.com/odoo.key | apt-key add - echo "deb http://nightly.odoo.com/10.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list

Odoo 11

Shell1 line
wget -O - https://nightly.odoo.com/odoo.key | apt-key add - echo "deb http://nightly.odoo.com/11.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list

Odoo 12

Shell4 lines
wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/12.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list

Odoo 15
Shell2 lines
wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/15.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list

4. Install Odoo 10/11/12/15 on Ubuntu

Next, update the local package database

Shell1 line
apt-get update

and install Odoo using the apt package manager

Shell1 line
apt-get install odoo

This command will install Odoo, Python 3 and all necessary Python modules, create PostgreSQL user and start the Odoo instance. After the installation is completed, you can check the status of the Odoo service:

PLAINTEXT1 line
nano /etc/odoo/odoo.conf

Uncomment the ‘admin_passwrd’ line, and change the admin_password field with a strong password.

PLAINTEXT1 line
admin_passwd = STRONG_PASSWORD

Install wkhtmltopd

Shell3 lines
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
tar vxf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz 
cp wkhtmltox/bin/wk* /usr/local/bin/
PLAINTEXT1 line
systemctl restart odoo

You might get an error while creating a new database after once you login to http://ip\_:8069, You can solve that by clicking here

Was this worth your time?

Continue reading

Full archive