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
Odoo S.A. provides a repository that can be used to install the Community edition by executing the following commands:
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/19.0/nightly/deb/ ./' | sudo tee /etc/apt/sources.list.d/odoo.list
sudo apt-get update && sudo apt-get install odoo
After installation, open odoo using web browser with port 8069.
http://server-ip:8069/