I am having the exact same issues, though I am not using envy for my nvidia drivers and my kernel and patches are straight from kernel.org.
---
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.27.4.tyro2.postinst line 1181.
dpkg: error processing linux-image-2.6.27.4.tyro2 (--install):
subprocess post-installation script returned error exit status 2
---
I am having the exact same issues, though I am not using envy for my nvidia drivers and my kernel and patches are straight from kernel.org.
--- postinst. d at /var/lib/ dpkg/info/ linux-image- 2.6.27. 4.tyro2. postinst line 1181. 2.6.27. 4.tyro2 (--install):
Failed to process /etc/kernel/
dpkg: error processing linux-image-
subprocess post-installation script returned error exit status 2
---