# Error: Failure trying to run: chroot /var/cache/pbuilder/build/24081/. mount -t proc proc /proc

**URL:** <https://forum.ansible.com/t/error-failure-trying-to-run-chroot-var-cache-pbuilder-build-24081-mount-t-proc-proc-proc/23836>\
**Category:** Ansible Developer\
**Created:** [February 28, 2017, 4:06am UTC](https://forum.ansible.com/t/error-failure-trying-to-run-chroot-var-cache-pbuilder-build-24081-mount-t-proc-proc-proc/23836 "2017-02-28T04:06:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Kasberg](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@Dave\_Kasberg](https://forum.ansible.com/u/Dave_Kasberg)\
**Post date:** [February 28, 2017, 4:06am UTC](https://forum.ansible.com/t/error-failure-trying-to-run-chroot-var-cache-pbuilder-build-24081-mount-t-proc-proc-proc/23836/1 "2017-02-28T04:06:56Z")

</div>

When doing a ‘make deb’, more specifically ‘make DEB\_DIST=trusty deb’ I get the error shown in the subject line. Does anyone know what may be causing this?

Snippet of the output from the make. See the lines highlighted in red/bold about 12 above the end of the text below. There are ‘…’ lines where I’ve removed lines that did not seem relevant.

**make DEB\_DIST=trusty deb**

Cleaning up distutils stuff  
rm -rf build  
rm -rf dist  
rm -rf lib/ansible.egg-info/  
Cleaning up byte compiled python stuff  
find . -type f -regex “._.py[co]$" -delete  
Cleaning up editor backup files  
find . -type f -not -path ./test/units/inventory\_test\_data/group\_vars/noparse/all.yml~ ( -name "_~” -or -name “#_" ) -delete  
find . -type f ( -name "_.swp” ) -delete  
Cleaning up manpage stuff  
find ./docs/man -type f -name “_.xml" -delete  
find ./docs/man -type f -name "_.asciidoc” -delete  
find ./docs/man/man3 -type f -name "_.3" -delete  
Cleaning up output from test runs  
rm -rf test/test\_data  
Cleaning up RPM building stuff  
rm -rf MANIFEST rpm-build  
Cleaning up Debian building stuff  
rm -rf debian  
rm -rf deb-build  
rm -rf docs/json  
rm -rf docs/js  
Cleaning up authors file  
rm -f AUTHORS.TXT  
find . -type f -name '_.pyc’ -delete  
rm -f /test/units/.coverage\*  
Cleaning up docsite  
make -C docs/docsite clean  
make[1]: Entering directory `/home/test/ansible/docs/docsite' rm -rf htmlout rm -rf _build rm -f .buildinfo rm -f *.inv rm -rf *.doctrees Cleaning up minified css files find . -type f -name "*.min.css" -delete Cleaning up byte compiled python stuff find . -regex ".*\.py[co]$" -delete Cleaning up editor backup files find . -type f \( -name "*~" -or -name "#*" \) -delete find . -type f \( -name "*.swp" \) -delete Cleaning up generated rst rm rst/list_of_*.rst rm: cannot remove `rst/list\_of\__.rst’: No such file or directory  
make[1]: [clean] Error 1 (ignored)  
rm rst/_\_by\_category.rst  
rm: cannot remove `rst/*_by_category.rst': No such file or directory make[1]: [clean] Error 1 (ignored) rm rst/*_module.rst rm: cannot remove `rst/\*\_module.rst’: No such file or directory  
make[1]: [clean] Error 1 (ignored)  
rm rst/playbooks\_directives.rst  
rm: cannot remove `rst/playbooks_directives.rst': No such file or directory make[1]: [clean] Error 1 (ignored) make[1]: Leaving directory `/home/test/ansible/docs/docsite’  
make -C docs/api clean  
make[1]: Entering directory `/home/test/ansible/docs/api' rm -rf _build/* rm -rf rst/*.rst make[1]: Leaving directory `/home/test/ansible/docs/api’  
python setup.py sdist  
running sdist  
running egg\_info  
creating lib/ansible.egg-info  
writing requirements to lib/ansible.egg-info/requires.txt  
writing lib/ansible.egg-info/PKG-INFO  
writing top-level names to lib/ansible.egg-info/top\_level.txt  
writing dependency\_links to lib/ansible.egg-info/dependency\_links.txt  
writing manifest file ‘lib/ansible.egg-info/SOURCES.txt’  
reading manifest file ‘lib/ansible.egg-info/SOURCES.txt’  
reading manifest template ‘MANIFEST.in’  
no previously-included directories found matching ‘ticket\_stubs’  
no previously-included directories found matching ‘hacking’  
writing manifest file ‘lib/ansible.egg-info/SOURCES.txt’  
warning: sdist: standard file not found: should have one of README, README.rst, README.txt

running check  
creating ansible-2.3.0  
creating ansible-2.3.0/bin  
creating ansible-2.3.0/contrib  
creating ansible-2.3.0/contrib/inventory  
…  
creating ansible-2.3.0/test/utils/shippable  
creating ansible-2.3.0/test/utils/tox  
copying files to ansible-2.3.0…  
copying CHANGELOG.md → ansible-2.3.0  
copying COPYING → ansible-2.3.0  
copying MANIFEST.in → ansible-2.3.0  
copying Makefile → ansible-2.3.0  
copying README.md → ansible-2.3.0  
copying VERSION → ansible-2.3.0  
copying requirements.txt → ansible-2.3.0  
copying setup.py → ansible-2.3.0  
copying bin/ansible → ansible-2.3.0/bin  
copying bin/ansible-connection → ansible-2.3.0/bin  
…  
copying test/utils/tox/requirements-py3.txt → ansible-2.3.0/test/utils/tox  
copying test/utils/tox/requirements.txt → ansible-2.3.0/test/utils/tox  
Writing ansible-2.3.0/setup.cfg  
creating dist  
Creating tar archive  
removing ‘ansible-2.3.0’ (and everything under it)  
ansible-2.3.0/  
ansible-2.3.0/Makefile  
ansible-2.3.0/MANIFEST.in  
ansible-2.3.0/CHANGELOG.md  
ansible-2.3.0/PKG-INFO  
ansible-2.3.0/setup.py  
ansible-2.3.0/hacking/  
ansible-2.3.0/hacking/templates/  
ansible-2.3.0/hacking/templates/rst.j2  
…  
ansible-2.3.0/docs/docsite/variables.dot  
ansible-2.3.0/docs/docsite/rst\_common/  
ansible-2.3.0/docs/docsite/rst\_common/ansible\_ssh\_changes\_note.rst  
debuild: unknown dpkg-buildpackage/debuild option: --source-option=-I  
dpkg-buildpackage -rfakeroot -d -us -uc --source-option=-I -S  
dpkg-buildpackage: warning: using a gain-root-command while being root  
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security  
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D\_FORTIFY\_SOURCE=2  
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security  
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2  
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro  
dpkg-buildpackage: source package ansible  
dpkg-buildpackage: source version 2.3.0-100.git201702232159.c3150fb.devel~trusty  
dpkg-buildpackage: source changed by Ansible, Inc. [info@ansible.com](mailto:info@ansible.com)  
dpkg-source -I --before-build ansible-2.3.0  
fakeroot debian/rules clean  
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions  
pyversions: missing debian/pyversions file, fall back to supported versions  
test -x debian/rules  
dh\_testroot  
dh\_clean  
cd . &&   
python setup.py clean   
-a  
running clean  
‘build/lib.linux-i686-2.7’ does not exist – can’t clean it  
‘build/bdist.linux-i686’ does not exist – can’t clean it  
‘build/scripts-2.7’ does not exist – can’t clean it  
rm -rf debian/python-module-stampdir  
find “/home/test/ansible/deb-build/trusty/ansible-2.3.0” -name ‘_.py[co]’ -delete  
find “/home/test/ansible/deb-build/trusty/ansible-2.3.0” -name **pycache** -type d -empty -delete  
find “/home/test/ansible/deb-build/trusty/ansible-2.3.0” -prune -name '_.egg-info’ -exec rm -rf ‘{}’ ‘;’  
dpkg-source -I -b ansible-2.3.0  
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)  
dpkg-source: info: using source format `1.0’  
dpkg-source: info: building ansible in ansible\_2.3.0-100.git201702232159.c3150fb.devel~trusty.tar.gz  
dpkg-source: info: building ansible in ansible\_2.3.0-100.git201702232159.c3150fb.devel~trusty.dsc  
dpkg-genchanges -S \>…/ansible\_2.3.0-100.git201702232159.c3150fb.devel~trusty\_source.changes  
dpkg-genchanges: including full source code in upload  
dpkg-source -I --after-build ansible-2.3.0  
dpkg-buildpackage: source only upload: Debian-native package  
Now running lintian…  
warning: the authors of lintian do not recommend running it with root privileges!  
E: ansible changes: bad-distribution-in-changes-file trusty  
W: ansible source: native-package-with-dash-version  
W: ansible source: debian-revision-not-well-formed 2.3.0-100.git201702232159.c3150fb.devel~trusty  
W: ansible source: binary-nmu-debian-revision-in-source 2.3.0-100.git201702232159.c3150fb.devel~trusty  
Finished running lintian.

---

<div class="post-metadata">

**Author:** ![Matt\_Clay](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@Matt\_Clay](https://forum.ansible.com/u/Matt_Clay)\
**Post date:** [February 28, 2017, 6:09am UTC](https://forum.ansible.com/t/error-failure-trying-to-run-chroot-var-cache-pbuilder-build-24081-mount-t-proc-proc-proc/23836/2 "2017-02-28T06:09:08Z")

</div>

Dave,

Make sure you’re running the command as root to permit use of chroot.

- Matt
