Installing Odoo 10 (enterprise) on Ubuntu 16.04

Hi guys,

1. Introduction

In this tutorial I will learn you how to install Odoo 10 community or enterprise on Ubuntu 16.04. The script that you will use is based on the code from André Schenkels but has been updated, upgraded, improved and I’ve added Enterprise support. Do notice that if you want to install the enterprise version that you will need to be an official partner or that you need to have bought the Enterprise subscription from Odoo. Otherwise you will have no access to the Github repository for the Enterprise code!

2. Downloading the script

The first step is to download my script from Github and to add the code in a new .sh file on your Ubuntu machine, wherever you’d like this.
For example right under /home. Open up an Ubuntu terminal and cd to the directory where you’d like to keep the script and then create the file:

If you’re curious about how the whole code looks and works you can find it on my Github account.
Now open up the file and edit the parameters to your liking:

There are some things you can configure/change to your likings at the top of the script. You can choose if you wish to install Wkhtmltopdf or not, which version you’d like, where the location is and most importantly what the master admin password is.
Tip: always modify this for every Odoo you install!
If you want the enterprise version of V10 you should change the line IS_ENTERPRISE to true:

If you want the community version you can just continue and keep the IS_ENTERPRISE key on false (which is the case by default):

3. Making the Odoo installation file executable

The next step is to make this file executable. After you’ve made it executable you can execute it and everything will be installed automatically.
do this with the following command:

4.Running the script

Now that the code is in your file and the file is executable you simply have to execute it with the following command:

You will see that the script automatically starts updates, downloads required packages, creates the user, downloads the code from Github, … Eventually, if you’ve chosen to install the enterprise version, you will need to give in your Github credentials to download the Enterprise code (since this is a private repository). Fill in your details and let the script continue:
Odoo 9 Enterprise authentication
Give the script a few minutes to configure and install everything and eventually you will see something like this:
Result install script

You now have a fully functional Odoo V10 community or enterprise on your system! Congratulations.
Odoo V9 Enterprise

5. Extra information about Odoo 10 Enterprise

Since Odoo Enterprise uses code from both and we will separate the code with this script. This will make future upgrades easier and the code is nicely separated. This means that the default V10 code will be under /odoo/odoo-server/ and all the enterprise code will be under /odoo/enterprise/.

In the script you saw there was an option to change the Odoo port (OE_PORT). When you’d change this port number to 8070 in the install script it would be applied to /etc/your-config-file.conf and this would give you the ability to change the default port.
To apply these changes you should do the following:
Changing Odoo settings
The -c will change the configuration and memorize what you’ve changed under /etc/your-config-file.conf. Because my port was set to 8070 this is telling the Odoo that it should run on port 8070. When you would now open up your browser and navigate to http://localhost:8070/ you will see it is running there:
Odoo V9 alternative port

Has this tutorial helped you, do you have any feedback or questions? Post away!
Tutorial sponsored by Oocademy


113 thoughts on “Installing Odoo 10 (enterprise) on Ubuntu 16.04

    • Yenthe666 says:

      Hi Yousif,

      You’re welcome! It won’t be auto-updated, you will need to download the updates (sudo apt-get update) and then install it. The recommended version is still 9.5, both for Odoo 9 and Odoo 10.

  1. Thanks for this Yenthe!
    Any special difference on Odoo 10 Community?
    I’ve missed the development news and I see that Odoo 9 branch is kinda stopped right now, do you know where I can see the milestones? Thanks in advance

  2. Michel says:

    Hi Yenthe,

    Thank you for the manual!

    However I mistyped my paswoord of my Github account to fetch the enterprise sources.
    The installation script proceeded with the community version.
    Should I upgrade via the Odoo interface or can I upgrade via the command line?


    • Yenthe666 says:

      Hi Jussi,

      Thanks! The script will not work for other Debian versions since they work differently. The script works out of the box on Ubuntu 12.04, 14.04 and 16.04 however.

    • Yenthe666 says:

      Hi Graham,

      Thank you! Yes you’ll be able to update it. You can use any git command to update the Odoo from the source code (git fetch origin 10.0 for example)

    • Yenthe666 says:

      Hi Luis,

      You’re welcome! By default there is no automatic method to upgrade your Odoo version from one version to another. You’ll either need to use the upgrade service from Odoo ( or use the open source OpenUpgrade alternative to do it yourself.

      • Geoffrey says:

        Can you kindly give me an idea of how this open source openupgrade works? A script or a step by step how to with maybe pictures or commands would be very helpful. The official tutorial is very confusing and i have never been successful with it.

        • Yenthe666 says:

          Hi Geoffrey,

          I’m sorry but at this point I have no tutorial or step by step guide. The official docs are indeed confusing and do not clearly explain on what you should do.. I guess this might be something to add for me on the planning.

          • Burhan says:

            Hello Yenthe,

            Did you prepare a tutorial on how to use the OpenUpgrade script for Odoo base add-ons and custom add-ons?

          • Yenthe666 says:

            Hi Burhan,

            At this point I have no tutorial about it. It is on my to do / wishlist though!

  3. Claude says:

    Hello Yenthe,
    Your installation guide looks so great!
    I am new to odoo and would like to try it on a mac running on El Capitan.
    Do you happen to have an installation guide for it?

  4. Lars says:

    I tried the script on an IP based installation and couldn’t get it to work. Before I pay someone for enterprise does this include the studio and digital signatures module?

  5. Hello Yenthe!
    I’m trying to run Odoo 10 community from nightly source. I download the source files, I decompress it in a directory and I want to run it in a terminal from this directory.

    Everywhere on the web, it is written to run Odoo 10 from the source with the command ./odoo-bin

    But I don’t see this file in the downloaded files.

    Where is it??? How to run Odoo 10 community directly from the source files without using a install script?

    Thanks for your comments.

    • Yenthe666 says:

      Hi seibuzter,

      This means that you’re either not somebody with access to this repository (you’re not a partner) or that you didn’t have internet.

  6. Piot says:

    Hi, than You for great guide but an issue apper during final step – I cant create db at “”

    I ve got error:
    Database creation error: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) HINT: Use the same encoding as in the template database, or use template0 as template.

    Can You help solve the problem?

    • Piot says:

      Found solution:
      In console run psql:

      sudo -u postgres psql postgres
      then in psql console execute sequence of commands:

      update pg_database set datallowconn = TRUE where datname = ‘template0’;
      \c template0
      update pg_database set datistemplate = FALSE where datname = ‘template1’;
      drop database template1;
      create database template1 with template = template0 encoding = ‘UTF8’;
      update pg_database set datistemplate = TRUE where datname = ‘template1’;
      \c template1
      update pg_database set datallowconn = FALSE where datname = ‘template0’;
      (press Ctrl-D to quit from psql)

    • Yenthe666 says:

      Hi Peter, this is not a problem. When you’ve got two different postgres users and two different Odoo’s running on another port it’ll work just fine out of the box.

  7. Tried to modify the script to install Odoo v9 with Enterprise on Ubuntu 16.04, but it didn’t work correctly. Can you provide a script for installing v9 with Enterprise on Ubuntu? I do have access to the Enterprise repository, and your script worked perfectly for v10, just not v9. Thank you.

    • Yenthe666 says:

      Hi Adam,

      At this point I don’t have any tutorial for Nginx or subdomains, sorry.. You should create virtual hosts which you map to a specific port and domain in order to archieve this.

  8. Tide says:

    Hi Yenthe,

    Your script is very nice and easy to install, but do you think you will consider to make a script to use Nginx to install the server?

    • Yenthe666 says:

      Hi Tide,

      Thank you! It is in my wishlist, I just haven’t come around to it. It takes quite some time and since I do it for free & open source I’ve got to set priorities to what I do first. 😉 Sorry!

  9. Frankie Moses says:

    Hi Yenthe I need help on odoo enterprise i do deploy odoo all version on community but a client needs enterprise ….i have purchase it but my line of installation is the nightly or github ……but currently for odoo 10 i go with git clone on github …… i have downloaded the enterprise addon from odoo but i do not have github enterprise assess am trying to request but is it possible to just add the tar file i dowloaded from the enterprise to make it work or any work around i will be grateful thanks

  10. Anurag Nayar says:


    i installed enterprise v 10.0 with your script. the script ran fine. the only thing I changed was to Set Enterprise = True.

    after installation i tried accessing Odoo. but it gives below error :

    “The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.”

    • Yenthe666 says:

      Hi Anurag,

      Please have a look at your logfile under /var/log/your-odoo-name. The issue should be logged in there. Do you have acces to the repository though?( If you don’t have access to this repository this’ll the source of your issue.

  11. Vegeta456 says:

    Hello, I have follow your tutorial. The installation of the community version is ok. Now i try to install the enterpise version 10. I have a problem after the install. When i need to create the DB i have the following message… can you help me? 🙁

    I have buy the enterprise version, i have the code from odoo. I need to upload something on github?

    Database creation error: column does not exist LINE 1: SELECT count(1) FROM “res_lang” WHERE (“res_lang”.”active” =… ^

  12. Chauho says:

    Hi Yenthe666,

    Please advise how to verify whether or NOT the odoo 10.0 Enterprise installation is successful after using your script

    • Yenthe666 says:

      Hi Chauho,

      The easiest way is to navigate to the URL where it is installed for. For example localhost:8069. If this doesn’t work you should have a look at the Odoo logfile under /var/log/your-odoo-name.

  13. kristoff says:

    thanks for the script first of all. I installed and it was smooth going but when i go to the site it says this site cant be reached.i check the listening ports and odoo isnt there, any help would be good, thanks.

  14. Great Script! Is there a quick how to on creating an additional odoo site(domain) on the same machine? I have nginx vhosts already working, though my addl site is pointing to a generic index.html

    Do I rerun your script? cp odoo/odoo-server/odoo? or something completely different?

    a punt in the right direction, including RTFM, would be appreciated 🙂

    • Nevermind 🙂 I ended up rerunning your script with modifications: renaming odoo to odoo10 so as not to interfere with my initial install, used a dif port, and then I made changes to my nginx sites-available to upstream the odoo10 with associated port and everything is working well.
      thanks for your time.

  15. sebastien says:

    Your script is awesome, everything work like a charm !

    However, i’d like to know how i can redirect a subdomain name to the 8069 port used by Odoo ??
    I try VirtualHosts in Apache2 conf but it says that socket is already in use ? (excuse my lack of knowledge…).
    I’m pretty sure your script (and Odoo) doesn’t use apache cause it was not installed even if Odoo is fully functional 🙂

    Thanks for your help

    • Yenthe666 says:

      Hi Contoso11,

      You most likely do not have access to the Odoo Enterprise code then. Can you access and are you an Odoo partner? Otherwise you won’t be able to download it.

  16. AA34 says:

    Hi Thank you very much !

    But when I finish the installation, the link that I have guide me to the page of manage databases not to the interface of odoo .

    Thanks for your help

  17. Victor says:

    Hello Yenthe,

    I just wanted to thank you. I’ve installed odoo 10 twice using your script and it works flawlessly!

    Thanks for the time and effort!



  18. Jeff says:

    Hi Yenthe, thanks a lot for this script!
    Just a question, I don t manage to configure email on odoo when I use ubuntu 16.04 the error message is : connection test fails, 101
    Network is unreachable
    It works under ubuntu 14…
    is there something to install on ubuntu 16?
    Thanks by advance (couple of days I m searching…)

    • Yenthe666 says:

      Hi Jeff,

      Sorry for the delay on the response. I haven’t had any problems on my Ubuntu 16.04 servers so I don’t think so. You might want to do an upgrade of pip (if you have/use it) and do an sudo apt-get upgrade.

  19. Mohammed Salah says:

    Thank you for the script, its working, i have one question, after running the script a new users created, odoo and postgres, what is the password for this users

  20. Gianluca says:

    Hi Yahthee666, very nice script. I started study/using Odoo a few months ago and your guide has helped me a lot because in real 5 minutes you have a well made and installed instance.
    But have I not yet managed to understand Odoo that webserver uses, if Apache, Nginx or something else? I don’t know you could tell me what it is? Thank in advance

  21. Bill says:

    Hi Yahthee666, already using your odoo11, work so beautifully, but how can I amend the script to work with downloaded enterprise package?
    Many thanks

  22. Carlo says:


    I’ve used your script to deploy Odoo v10.

    How can I append parameters to startup, or how to enable debug mode to troubleshoot some problems I’m experiencing when I enable workers.

    • Yenthe666 says:

      Hi Carlo,

      You can configure everything you like in /etc/your-odoo-server.conf or in the init script. As for the debug mode: just add ?debug in the URL. 😉

    • Yenthe666 says:

      Hi Stephane,

      Of course. You can create a shell script (for example) that you attach to a cron which updates the Odoo source code every once in a while.

  23. Elikplim says:

    I have tried this script a countless number of times and it’ worked. But it seem not to be working on Ubuntu 18, can you check and see if there’s a fix.

  24. Faisal Siddiqui says:

    I am using your script from version 8 and its working 100% perfectly fine and saves a lot of time, in fact i have added many things in it as per my needs.

    I just have one question that if Odoo is installed using this script then can we have any way/command in which we can update a particular module using command line like for example something like.

    python odoo-bin -c /etc/odoo-server.conf -u module_name

    • Yenthe666 says:

      Hi Faisal,

      Happy to hear that! Actually the command you’ve added here is exactly the way to do it. You can call it from the service too.

  25. Hi Yenthe, I hope you don’t mind me asking a question about upgrading Ubuntu.
    I have Odoo10 Community installed on a Ubuntu 16.04 server. I would like to upgrade ubuntu to 18.04. if I run “do-release-upgrade” to upgrade ubuntu from 16.04 to 18.04, will it cause Odoo 10 server to malfunction?


Leave a Reply