Updated: 4 November 2026 · Applies to: Odoo 20 Community on Ubuntu 24.04 LTS
Odoo is a suite of open-source business apps (accounting, CRM, inventory, sales, website and more). This guide installs Odoo 20 Community on Ubuntu 24.04 LTS from Odoo's official package repository, together with PostgreSQL, and creates your first database. It replaces the old Odoo 14 on Ubuntu 20.04 guide, which is end of life.
Before you start
- A fresh Ubuntu 24.04 LTS server (Odoo's documentation lists Ubuntu 24.04 "Noble" as supported by the Odoo 20 package) with root or
sudoaccess. For a few users, 4 GB of RAM is a good start; more users need more. - Odoo's repository provides the Community edition. Odoo has no repository for Enterprise; download the Enterprise package from Odoo's download page instead.
- Note the version: to install another release, replace
20.0in the repository line with that release.
1. Update the server and install PostgreSQL
sudo apt update && sudo apt upgrade -y sudo apt install -y postgresql wget gnupg
The Odoo package uses the PostgreSQL server on the same machine by default and creates the database user odoo for you.
2. Add Odoo's repository and install Odoo
wget -q -O - https://nightly.odoo.com/odoo.key | sudo gpg --dearmor -o /usr/share/keyrings/odoo-archive-keyring.gpg echo 'deb [signed-by=/usr/share/keyrings/odoo-archive-keyring.gpg] https://nightly.odoo.com/20.0/nightly/deb/ ./' | sudo tee /etc/apt/sources.list.d/odoo.list sudo apt-get update && sudo apt-get install -y odoo
The download is several hundred MB. When it finishes, Odoo runs as a system service named odoo.
3. Check the service
sudo systemctl status odoo sudo systemctl enable odoo
It must be active (running). enable makes it start after every reboot. If it is not running, read the log: sudo tail -n 50 /var/log/odoo/odoo-server.log.
4. Open Odoo and create the database
- Open
http://YOUR-SERVER-IP:8069in your browser. If the page does not load, allow the port (sudo ufw allow 8069/tcp) until you have set up HTTPS (How to run Odoo behind Nginx with HTTPS (proxy mode)?). - The database creation page opens. Odoo shows a Master Password that it generated. Copy it and store it safely: it protects the database manager and is needed to create, back up or delete databases (How to reset the Odoo master password (admin_passwd)?).
- Enter a Database Name, the Email and Password of your first administrator user, the language and the country. Leave Demo data off for a real company.
- Click Create database. It takes a minute. You are then logged in to Odoo and can install your first apps.
5. Before you go live
- Use HTTPS. Put Odoo behind a proxy with a free certificate: How to run Odoo behind Nginx with HTTPS (proxy mode)?. Then close port 8069 to the internet.
- PDF reports: for correct headers and footers Odoo needs the patched
wkhtmltopdfversion 0.12.6. Odoo's documentation says it must be installed manually; follow the wkhtmltopdf downloads page for your system. - Backups: set up regular backups of the database and the filestore: How to back up and restore an Odoo database and filestore?.
- Updates: keep the server current with
sudo apt-get update && sudo apt-get upgrade. Read Odoo's upgrade notes before moving to a new major version.
Where things are
Configuration file, logs and data folders: Odoo on Ubuntu: configuration file, log file, service commands and useful settings.
Frequently asked questions
Does Odoo 20 work on Ubuntu 26.04?
Odoo's documentation names Ubuntu 24.04 for the Odoo 20 package. Use 24.04 for a supported installation.
Can I install it with Docker instead?
Yes. Odoo also provides an official Docker image. This guide uses the packages because they are simpler to update.
Can Ucartz host or install Odoo for me?
Yes, see below.
Official documentation: Odoo 20 documentation: Packages.
Need a server for Odoo, or a hand with the setup?
- Odoo hosting: cloud, VPS or dedicated servers for Odoo.
- KVM VPS with NVMe storage: full root access to install Odoo yourself.
Prefer a hand with the setup? Our engineers can do it for you: Hire an Expert, or use our on-demand server management.