I think the problem lies here:
adduser: Warning: The home directory `/var/lib/zookeeper' does not belong to the user you are currently creating.
But in the packaging:
debian/zookeeper.dirs:/var/lib/zookeeper
Since the package "owns" the dir, it will be owned by root, which is wrong.
So the fix is to remove that line from zookeeper.dirs. I don't believe this will have any ill effects, since the adduser will create it.
I am testing that change right now.
I think the problem lies here:
adduser: Warning: The home directory `/var/lib/ zookeeper' does not belong to the user you are currently creating.
But in the packaging:
debian/ zookeeper. dirs:/var/ lib/zookeeper
Since the package "owns" the dir, it will be owned by root, which is wrong.
So the fix is to remove that line from zookeeper.dirs. I don't believe this will have any ill effects, since the adduser will create it.
I am testing that change right now.