Created attachment 21984 [details] fix for Ubuntu Karmic I tryed make deb-pkg in Ubuntu Karmic but packages were broekn so I have to do minor change to the scripts so there isn't errors. I don't know if this breaks any other deb based systems but at lest it works in Ubuntu for me.
Assigned to Max, cc Sam.
could you please post the errors you see on install?
Created attachment 22147 [details] Fixed patch export: 6: 2.6.31-rc1-17: bad variable name dpkg: error processing ../linux-image-2.6.31-rc1_2.6.31-rc1-18_i386.deb (--install): subprocess pre-installation script returned error exit status 2 export: 6: 2.6.31-rc1-17: bad variable name Parameter passed to scripts is like "configure 2.6.31-rc1-18" PS. Original patch was buggy and here is the fixed one.
please provide full log of dpkg -i ../linux-image-2.6.31-rc1_2.6.31-rc1-18_i386.deb sh -x /var/lib/dpkg/info/linux-image-2.6.31-rc1-18-i386.preinst sh -x /var/lib/dpkg/info/linux-image-2.6.31-rc1-18-i386.postinst i might didn't get the file name of the preinstall script right, please use tab completion. thanks.
Created attachment 22149 [details] output of dpkg -i and sh -x
ah ok so it seems this nvidia script does something. please post: find -type f /etc/kernel cat /etc/kernel/postinst.d/nvidia-common if you have other scripts around there please post too.
export DEB_MAINT_PARAMS=configure 2.6.30-rc1 export: 1: 2.6.30-rc1: bad variable name Problem is that. Another fix would be adding export DEB_MAINT_PARAMS="\"$@\"" to builddeb script
please don't search for ways disabling that export, but post output of: find -type f /etc/kernel cat /etc/kernel/postinst.d/nvidia-common
(In reply to comment #8) > please don't search for ways disabling that export, > but post output of: > > find -type f /etc/kernel > cat /etc/kernel/postinst.d/nvidia-common It's not about disabling it but fixing the problem where there is multiple parameters fro script which causes export line fail! I would like to point about that this bug report is strictly about problem where export VARIABLE=value1 value2 is failing. Only value1 is set to VARIABLE and value2 is considered as new variable name which caused failure because value2 include characters that are disallowed in variable names. So solution to problems is to make export understand that value1 and value2 both are part of value that should be set to VARIABLE. PS. the nvidia script never gets called when failure happens if you don't yet understand it.
Created attachment 22221 [details] tested patch
(In reply to comment #10) > Created an attachment (id=22221) [details] > tested patch Works for me too. Thanks.