You need the zookeeper 3.4.6 package for Ubuntu 14.04 LTS
wget http://apache.arvixe.com/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz
gzip -dc zookeeper-3.4.6.tar.gz | tar xf –
Remove
vi src/packages/deb/zookeeper.control/control
in file remove line
Depends: sun-java6-jre
You need a few packages to compile it
apt-get install python-setuptools libcppunit-dev build-essential libboost-all-dev cmake flex libtool ant
and then start build process
/zookeeper-3.4.6# ant deb
this takes a few minutes, the deb packe can be found under /build
And a complete build run
Some found here