# Not able to build debian package for ansible 1.9.4

**URL:** <https://forum.ansible.com/t/not-able-to-build-debian-package-for-ansible-1-9-4/20312>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [January 22, 2016, 10:35am UTC](https://forum.ansible.com/t/not-able-to-build-debian-package-for-ansible-1-9-4/20312 "2016-01-22T10:35:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@Ankit\_Kulkarni](https://forum.ansible.com/u/Ankit_Kulkarni)\
**Post date:** [January 22, 2016, 10:35am UTC](https://forum.ansible.com/t/not-able-to-build-debian-package-for-ansible-1-9-4/20312/1 "2016-01-22T10:35:37Z")

</div>

Hi Guys,  
Quite for few times we have been using ansible 1.9.4 as CM and deployment tool( ansible-pull ) for our production systems ( Ubuntu 14.04 64bit devices) which are scattered around the world . Everything was working well until the [ppa-repo](https://launchpad.net/~ansible/+archive/ansible) for Ubuntu got updated with the latest version to 2.0.0 making 1.9.4 unavailable via apt-get method .

The installation using pip for 1.9.4 was not a good choice for us as the default installation directories for both the system is changed (apt method uses _/usr/bin_ while pip uses /usr/local/bin and now some of . I really want ansible to reside on _/usr/bin_ path rather then _/usr/local/bin_ .

The last method I wanted to try is to build a deb package from source and install via it .This is the first time I am building a debian package from source and followed instructions from [ansible docs](http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu) . Checked out in stable-1.9 branch and ran `make deb` .

However seems I got few errors while building from both the[ansible-1.9.4 tar ball](http://releases.ansible.com/ansible/ansible-1.9.4.tar.gz)from [http://releases.ansible.com/ansible/](http://releases.ansible.com/ansible/) and from the GitHub source code . I have tried compiling deb package on Ubuntu 14.04, 64 bit with gcc g++ 4.9.3 running on it .Kernel version - 3.19.0-37-generic

- From tar ball - (Complete log at - [http://pastebin.com/fXuKiHU3](http://pastebin.com/fXuKiHU3))

- cp: cannot stat ‘packaging/debian’: No such file or directory

- sed: can’t read deb-build/unstable/ansible-1.9.4/debian/changelog: No such file or directory

- From github source and checkout to stable-1.9 (Complete log - [http://pastebin.com/T40EZqyy](http://pastebin.com/T40EZqyy))

- build/lib.linux-x86\_64-2.7’ does not exist – can’t clean it

- dpkg-deb: building package `ansible' in `…/ansible\_1.9.4-0.git201601201800~unstable\_all.deb’.  
The second method built the deb package but built in unstable . I am pretty sure that it means the package is unstable . I did not got what did I missed . Is there a place from where I can get the pre built deb packages for these versions . Help appreciated .

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [January 22, 2016, 10:57pm UTC](https://forum.ansible.com/t/not-able-to-build-debian-package-for-ansible-1-9-4/20312/2 "2016-01-22T22:57:16Z")

</div>

You could install Ansible from the 16.04 universe repository[1], it works great on 14.04.

[1] [http://archive.ubuntu.com/ubuntu/pool/universe/a/ansible/ansible\_1.9.4-1\_all.deb](http://archive.ubuntu.com/ubuntu/pool/universe/a/ansible/ansible_1.9.4-1_all.deb)

---

<div class="post-metadata">

**Author:** ![Ankit\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@Ankit\_Kulkarni](https://forum.ansible.com/u/Ankit_Kulkarni)\
**Post date:** [January 23, 2016, 5:18am UTC](https://forum.ansible.com/t/not-able-to-build-debian-package-for-ansible-1-9-4/20312/3 "2016-01-23T05:18:20Z")

</div>

> > Quite for few times we have been using ansible 1.9.4 as CM and deployment  
> > tool( ansible-pull ) for our production systems ( Ubuntu 14.04 64bit  
> > devices) which are scattered around the world . Everything was working well  
> > until the ppa-repo \<[https://launchpad.net/~ansible/+archive/ansible](https://launchpad.net/~ansible/+archive/ansible)\> for  
> > Ubuntu got updated with the latest version to 2.0.0 making 1.9.4  
> > unavailable via apt-get method .
> 
> You could install Ansible from the 16.04 universe repository[1], it  
> works great on 14.04.
> 
> [1]  
> [http://archive.ubuntu.com/ubuntu/pool/universe/a/ansible/ansible\_1.9.4-1\_all.deb](http://www.google.com/url?q=http%3A%2F%2Farchive.ubuntu.com%2Fubuntu%2Fpool%2Funiverse%2Fa%2Fansible%2Fansible_1.9.4-1_all.deb&sa=D&sntz=1&usg=AFQjCNFsP6tnEDwfcxRAeCO4iI4uTLLQng)

Thanks a loto. That worked for us . The problem we were facing with pip installation method even after creating symlink of _/usr/local/bin/ansible_ to _/usr/bin/ansible_ was that pip by default do not creates the ansible.cfg file in /etc/ansible . Creating the directory and adding config to it also worked for us.
