Skip to main content

Installing Odoo 19 using Packaged installers on Ubuntu 24.04

Odoo provides packaged installers for Debian-based Linux distributions (Debian, Ubuntu, etc.), RPM-based Linux distributions (Fedora, CentOS, RHEL, etc.), and Windows for the Community and Enterprise editions.

Odoo needs a PostgreSQL server to run properly.

sudo apt install postgresql -y

Install wkhtmltopdf (with patched Qt), remove any old system package to avoid conflict.

sudo apt update
sudo apt remove --purge -y wkhtmltopdf

Install common dependencies and fonts (needed for rendering).

sudo apt install -y \
  xfonts-75dpi xfonts-base fontconfig libxrender1 libxext6 \
  libssl3 libc6 libstdc++6 wget ca-certificates \
  ttf-mscorefonts-installer

update font cache (helps avoid strange missing-font rendering problems).

sudo fc-cache -f -v

There are packaged builds that include the patched Qt. Use the packaging GitHub release binary for amd64 that is known to work with Ubuntu 22.04/24.04.

cd /tmp
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo apt --fix-broken install -y

Ensure binary is in standard PATH (some packages install to /usr/local/bin).

sudo ln -sf /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
sudo ln -sf /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
rm wkhtmltox_0.12.6.1-2.jammy_amd64.deb