chmod a+x udeb-files/lib/debian-installer.d/foo should help. It fixed my error. Hope I helped, Harish