Install and Configure Odoo 16 on Ubuntu 22.04 with Easy Steps
In this tutorial, we want to teach you to Install and Configure Odoo 16 on Ubuntu 22.04. Odoo is an integrated software solution that can handle most business processes in one system. Odoo’s modular structure is fully mature and includes more than 2,500 modules.
Because of the optimized interfaces, all Odoo modules communicate easily with each other, which means you get the best overview of your business and the fastest data processing to manage your daily tasks.
The flexibility that Odoo offers is unmatched on the market. No matter how complex and multi-layered a company is, Odoo can adapt to each company’s unique needs and budget.
In particular, Odoo has perfected digitization, integration, and automation. You can now follow the guide steps below on the Orcacore website to complete the Install and Configure Odoo 16 on Ubuntu 22.04.
Odoo has a few installation options such as from the APT repository, using docker, or installing in a virtual environment. In this article, you will learn to install Odoo in a Python virtual environment.
Before you start Odoo 16 installation in Ubuntu 22.04, you need some requirements first. You must log in to your server as a non-root user with sudo privileges and set up a basic firewall. To do these, you can follow our article about the Initial Server Setup with Ubuntu 22.04.
Now follow the steps below to start Odoo 16 installation in Ubuntu 22.04.
1. Dependencies For Odoo on Ubuntu 22.04
First, you need to update and upgrade your local package index with the following command:
sudo apt update && sudo apt upgrade -y
Now you can run the following command to install dependencies for Odoo 16 installation in Ubuntu 22.04:
sudo apt install -y build-essential wget git python3-pip python3-dev python3-venv python3-wheel libfreetype6-dev libxml2-dev libzip-dev libsasl2-dev python3-setuptools libjpeg-dev zlib1g-dev libpq-dev libxslt1-dev libldap2-dev libtiff5-dev libopenjp2-7-dev
2. Install PostgreSQL For Odoo 16
Odoo only supports PostgreSQL in storing its data. At this point, you need to install PostgreSQL by using the command below:
sudo apt install postgresql -y
When your installation is completed, you need to create a new PostgreSQL user for your Odoo 16. To do this, run the command below:
sudo su - postgres -c "createuser -s odoo16"
3. Install the wkhtmltopdf Tool on Ubuntu 22.04
wkhtmltopdf is an open-source command-line tool that supports the rendering of HTML pages into PDF and other similar formats. You can easily install it by using the command below:
sudo apt install wkhtmltopdf -y
Verify your installation by checking its version:
wkhtmltopdf --version
**Output**
wkhtmltopdf 0.12.6
4. Odoo 16 installation in Ubuntu 22.04
Here you should create a new system user and group with a home directory under the /opt/odoo16
that will need to be able to run an Odoo service. To do this, run the following command:
sudo useradd -m -d /opt/odoo16 -U -r -s /bin/bash odoo16
You need to change the user to odoo16 with the following command:
sudo su - odoo16
Then, clone the Odoo16 official source code from GitHub with the following command:
git clone https://www.github.com/odoo/odoo --depth 1 --branch 16.0 odoo16
Next, you need to create a new Python virtual environment for Odoo with the following command:
python3 -m venv odoo-venv
Activate it with the command below:
source odoo-venv/bin/activate
Now from the virtual environment, install all required Python modules with pip3 with the following command:
(odoo-venv) $ pip3 install wheel
(odoo-venv) $ pip3 install -r odoo16/requirements.txt
This will take some time to complete.
When you are done, deactivate the environment with the following command:
(odoo-venv) $ deactivate
Here you need to create a new directory in the /opt/odoo16
path. It will contain third-party add-ons that you are going to include in the configuration.
mkdir /opt/odoo16/odoo16/custom-addons
You will add this directory to the configuration file that you will create below. This will define a list of directories where Odoo will search for modules.
Now exit from the odoo16 user:
exit
Create the configuration file with your favorite text editor, here we use the vi editor:
sudo vi /etc/odoo16.conf
Paste the following contents to the file:
[options]
admin_passwd = StrongPassword
db_host = False
db_port = False
db_user = odoo16
db_password = False
addons_path = /opt/odoo16/odoo16/addons,/opt/odoo16/odoo16/custom-addons
xmlrpc_port = 8069
Remember to choose a strong password.
When you are done, save and close the file.
Now you can start to access the Odoo dashboard.
5. Manage Odoo 16 Service on Ubuntu 22.04
At this step of Odoo 16 installation in Ubuntu 22.04, you need to create a service unit file called odoo16.service in the /etc/systemd/system/
directory with the following command:
sudo vi /etc/systemd/system/odoo16.service
Paste the following configuration in the file:
[Unit]
Description=Odoo16
Requires=postgresql.service
After=network.target postgresql.service
[Service]
Type=simple
SyslogIdentifier=odoo16
PermissionsStartOnly=true
User=odoo16
Group=odoo16
ExecStart=/opt/odoo16/odoo-venv/bin/python3 /opt/odoo16/odoo16/odoo-bin -c /etc/odoo16.conf
StandardOutput=journal+console
[Install]
WantedBy=multi-user.target
When you are finished, save and close the file.
To apply the changes, reload systemd with the following command:
sudo systemctl daemon-reload
Now start and enable the Odoo 16 on Ubuntu 22.04 with the following command:
sudo systemctl enable --now odoo16
Verify that your service is active and running with the following command:
sudo systemctl status odoo16
In your output you will see:

6. Access Odoo 16 Web Interface
Now that you have finished the Odoo 16 installation in Ubuntu 22.04, open your web browser and type your IP address followed by 8069 to access the Odoo 16 dashboard:
http://Server_IP_address:8069
You should see the Odoo login interface as shown below:

In the “Master password” put the password that you have defined in the configuration file.
And enter other credentials to create the database. Then, you will see the following screen. Enter the email address and password you have defined on the login screen.

You should see your Oddo 16 dashboard on Ubuntu 22.04:

Odoo is easy to master due to its intuitive interface and straightforward user environment. It is feasible to train teams of different ages and levels.
You can add required applications and functionalities over time when your company increases or new departments open. Odoo is quite modular software to fit your specific strategies and initiatives.
It accompanies other systems like existing ERP or CRM to save time by training, implementing, and allowing growth and evolution inside the software.
Conclusion
At this point, you have learned to Install and Configure Odoo 16 on Ubuntu 22.04. Odoo will help you to manage all areas of your business. Please subscribe to us on Facebook and Twitter.
Hope you enjoy it. You may also like these articles:
Set up Ruby on Rails with rbenv on Ubuntu 22.04
Install and Configure OpenNMS on Ubuntu 22.04
Introduction to Ubuntu Core 24
Install Zoom in Ubuntu using the terminal
Install Syncthing on Ubuntu to Synchronize Files
Install of plex on Ubuntu server 22.04
Set Up a Private Git Server on Ubuntu Linux
Ubuntu Linux Change File Permissions Recursively
Alternative Solutions for Installing Odoo 16 on Ubuntu 22.04
While the virtual environment installation detailed above provides a good level of control and isolation, other methods offer different trade-offs. Here are two alternative approaches:
1. Installing Odoo 16 using Docker
Docker provides a containerization solution that simplifies deployment and ensures consistency across different environments. Using Docker to Install and Configure Odoo 16 on Ubuntu 22.04 is a popular choice due to its ease of use and portability.
Explanation:
Docker containers encapsulate an application and its dependencies, eliminating compatibility issues and simplifying deployment. This approach is particularly beneficial for managing multiple Odoo instances or for deploying Odoo across different servers.
Steps:
-
Install Docker and Docker Compose:
sudo apt update sudo apt install docker-compose docker.io -y sudo systemctl start docker sudo systemctl enable docker
-
Create a
docker-compose.yml
file:Create a new directory for your Odoo installation and create a
docker-compose.yml
file within it.mkdir odoo16_docker cd odoo16_docker nano docker-compose.yml
Paste the following content into the
docker-compose.yml
file:version: '3.8' services: db: image: postgres:14 environment: POSTGRES_USER: odoo POSTGRES_PASSWORD: odoo POSTGRES_DB: odoo volumes: - db_data:/var/lib/postgresql/data odoo: image: odoo:16.0 depends_on: - db ports: - "8069:8069" - "8072:8072" environment: ODOO_DB_HOST: db ODOO_DB_USER: odoo ODOO_DB_PASSWORD: odoo volumes: - odoo_data:/var/lib/odoo - ./config:/etc/odoo - ./addons:/mnt/extra-addons volumes: db_data: odoo_data:
-
Create a Configuration Directory and File:
mkdir config nano config/odoo.conf
Paste the following (or similar) content into
config/odoo.conf
:[options] admin_passwd = StrongPassword db_host = db db_port = 5432 db_user = odoo db_password = odoo addons_path = /mnt/extra-addons
-
Create an Addons Directory:
mkdir addons
-
Start the Odoo Instance:
sudo docker-compose up -d
This command will download the necessary images and start the Odoo and PostgreSQL containers in detached mode.
-
Access Odoo:
Open your web browser and navigate to
http://Server_IP_address:8069
.
2. Installing Odoo 16 from the APT Repository
Another alternative for Install and Configure Odoo 16 on Ubuntu 22.04 is to use the APT repository, though this might not always provide the latest version.
Explanation:
This method uses the Advanced Package Tool (APT) to install Odoo, which simplifies the installation process. However, it might not offer the flexibility of a virtual environment or the isolation of Docker. It’s important to note that the Odoo APT repository may not always be up-to-date with the very latest version.
Steps:
-
Add the Odoo Repository:
wget -O odoo.deb http://nightly.odoo.com/16.0/nightly/deb/odoo_16.0.latest_all.deb sudo apt install ./odoo.deb
-
Install Odoo:
sudo apt update sudo apt install odoo -y
-
Configure PostgreSQL User:
sudo su - postgres -c "createuser -s odoo"
-
Configure Odoo:
The Odoo configuration file is typically located at
/etc/odoo/odoo.conf
. You can edit this file to customize Odoo settings:sudo nano /etc/odoo/odoo.conf
Update the
admin_passwd
,db_user
, andaddons_path
as needed. -
Start and Enable Odoo Service:
sudo systemctl start odoo sudo systemctl enable odoo sudo systemctl status odoo
-
Access Odoo:
Open your web browser and navigate to
http://Server_IP_address:8069
.
These alternative methods provide different ways to Install and Configure Odoo 16 on Ubuntu 22.04, each with its own advantages and disadvantages. Docker offers portability and isolation, while the APT repository provides a simpler installation process. Choose the method that best suits your needs and technical expertise.