If your host computer is running ubuntu. Changeing the variable PACKAGE_CLASSES in local.conf. from package_rpm to package_deb made it work.
#PACKAGE_CLASSES ?= "package_rpm"
PACKAGE_CLASSES ?= "package_deb"
That was alot of headache!