How To Install Odoo Version 18 On Ubuntu 24.04 LTS Operating System.
In this blog you are going to see how to setup Odoo version 18 on ubuntu 24.04 lts os with easy way.
There are few steps you need to follow nothing else you need.
You need internet connection to download some applications as give in below detail.
1) Download get-pip python file. Click Here.
3) Download any of below editor.
Now you have don't need to download anything your self only below packages.
1) Python3.12 or higher version ubuntu already have so you don't need to download.
2) Check python version open terminal and type below command in case not available only this name try to double time press tab key, You will see list of python versions.
=> python
or
=> python3
2.1) You can auto login in python terminal and exit command.
=> exit()
3) Now try to install pip lib in terminal
=> python get-pip.py install
4) Create new Python virtual environment.
=> python -m -venv yourVEnvName
=> python -m venv odoov18env
6) Try to install below packages.
sudo apt-get install -y python3-dev libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev build-essential libssl-dev libffi-dev libmysqlclient-dev libjpeg-dev libpq-dev libjpeg8-dev liblcms2-dev libblas-dev libatlas-base-dev npm postgresql node-less git xfonts-75dpi7) Try to clone Odoo V18 in your specific path.
=> git clone --single-branch --depth=1 -b 18.0 https://github.com/odoo/odoo
8) Active virtual environment.
=> odoov18env/script/activate
11) Create odoo as super owner. Type below commands in terminal.
11.1) psql -d postgres
11.2) CREATE USER odoo WITH SUPERUSER PASSWORD '1234';
11.3) \q
12) Install wheel package in your virtual environment
=> python -m pip install wheel
=> python -m pip install wheel --upgrade
13) Go to odoo directory and install packages from requirements.txt
=> python -m pip install -r requitements.txt
14) In case you encounter any error during above step format. Try to find last command which having issue and remove from requirement.txt and execute the step 13 command.
15) Download wkhtml2pdf lib.
15.1) sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
15.2) sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
16) Run odoo service as below.
17) python odoo-bin -r odoo -w 1234
18) If you encounter any error try to resolve.
19) Once done try to open browser and execute below code.
=> localhost:8069
20) Try to create new database.
In case you need help please follow below video.