How to Install Odoo on Ubuntu Server 22.04?

How to Install Odoo on Ubuntu Server 22.04?

Odoo is one of the popular web-based open-source business management applications. The platform comes with a number of business tools, including a website builder, accounting, CRM, and warehouse management.

Although the Odoo Community edition for Ubuntu is free, you can upgrade to the Enterprise edition as necessary.

If you’re wondering how to install Odoo on Ubuntu or looking for a simple guide on Odoo installation in Ubuntu, the procedure to install Odoo on Ubuntu 22 is provided in this blog. So, without further ado, let’s dive into it!

Installing Odoo Enterprise

There are multiple ways to install Odoo, depending on your use case.

Online

The easiest way to test out or use Odoo in production.

Packaged installers

Appropriate for testing Odoo and building modules, and with further deployment and maintenance work, can be utilized for long-term production use.

Source install

Provides greater flexibility, e.g., allows multiple running Odoo versions on the same system. Good for developing modules and can be used as a base for production deployment.

Docker

If you usually use Docker for development or deployment, an official Docker base image is available.

This document will describe the packaged installer’s method to install Odoo on-premise. (In this guide, we use Ubuntu Server 22.04; it is on Digital Ocean.)

Before following the instructions below, I assume you have a Linux development environment with Ubuntu 22.04.

Odoo Enterprise Installation on Ubuntu 22.04 Using Package

Odoo provides packaged installers for Windows, deb-based distributions (Debian, Ubuntu, …), and RPM-based distributions (Fedora, CentOS, RHEL, …) for both the Community and Enterprise versions.

These packages automatically set up all dependencies (for the Community version) but may be difficult to keep up-to-date.

Both Community and Enterprise packages can be downloaded from our download page (you must be logged in as a paying customer or partner to download the Enterprise packages).

Step 1 – Install PostgreSQL

The default configuration for the Odoo ‘deb’ package is to use the PostgreSQL server on the same host as your Odoo instance.

Note: PostgreSQL serves as Odoo’s database. So, from the official Ubuntu repository, install PostgreSQL.

Execute the following command in order to install the PostgreSQL server:

$ sudo apt install postgresql -y
Step 2 – Install wkhtmltopdf ( 0.12.5 ).

The version of wkhtmltopdf available in Debian/Ubuntu repositories does not support headers and footers while we generate a PDF report in Odoo, so version 0.12.5 must be downloaded from the project’s page and is recommended for Odoo version 10 and later…

See the below screenshot from odoo wiki

Download the package

wget

Install the package

sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb

This probably fails with missing dependencies because wkhtmltopdf version 0.12.5 needs libssl1.1, but ubuntu 22.04 uses libssl3, so you have to manually set up libssl1.1

Fix dependencies

sudo apt install -f
Step 3 – Download and setup Odoo Enterprise editions

Enterprise editions can be downloaded from the official download page.

Download the enterprise edition for Ubuntu. Debian. You will be asked for your subscription code.

Enter your subscription code, and the download will start.

Upload the file to your server root folder.

And install the package using the command

$ dpkg -i path_to_installation_package

In my case its –

$ dpkg -i odoo_16.0+e.latest_all.deb

This command will fail with missing dependencies. Take a screenshot or list down the missing packages.

After that, to install the missing dependencies, run the command

apt-get install -f

If you encounter any error related to a specific package. List the package and install it manually.

Run the Installation command again

dpkg -i path_to_installation_package

All Done Now Navigate to url: https://your.ip:8069

And you will see something like

Fill in the details and press Create database.

You will be we navigated to the login page.

Fill in the details you entered while creating the database and logging in. You will be redirected to the home page.

Conclusion

Congratulations! You have successfully installed Odoo on Ubuntu Enterprise using the Packaged Installers Method. We hope you found this tutorial helpful. However, if you have any questions regarding Odoo installation in Ubuntu or need more clarity on how to install Odoo on Ubuntu, feel free to share your queries with us.

To Get in Touch With Our Consultant