Installing Odoo on Ubuntu
This book will walk you through the installation procedure for Odoo on Ubuntu using the latest all-in-one nightly package. Depending on your Ubuntu installation and how you want to work with Odoo, there are alternative installation methods.
At the time of writing, Odoo is most commonly installed on Ubuntu version 16.04.
Modifying the sources.list file
Installing Odoo in Ubuntu is easy when you use the Debian repository. In order to perform these operations you may have to be the root user. If you have an account that has the permissions to do so you can temporarily change to the root user by entering sudo -s.
For better security and to guarantee you are installing the correct package, Odoo now signs their distributions. The following command adds the correct key to your Ubuntu installation so that it will recognize the Odoo package:
wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
Next we want to add the distribution to the /etc/apt/sources.list
file with the following command line: echo "deb http://nightly.odoo.com/10.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list
. This installs the package.
You can start the installation process by entering these commands into a terminal window:
sudo apt-get update
sudo apt-get install odoo
The Odoo packages will be first downloaded and then installed. This is an all-in-one installation and should set up all the necessary packages, PostgreSQL, and library dependencies required to run Odoo.
By default the deb installation will place the source in the following directory:
/usr/lib/python2.7/dist-packages/odoo
Testing your Odoo installation
Point your browser to http://localhost:8069
and you should see the Odoo database creation page appear.