Re: [Bug 292606] Re: dkms - error when installing custom kernel

2009-09-14 Thread Mario Limonciello
Alberto:

I don't agree here that running this in the kernel postinst is going to
increase the likelihood of nvidia-common helping transition users.  The
order that the nvidia-common postisnt and kernel postinst would trigger
is irrelevant, because the message will be displayed either way, and the
user can't react to it until apt is done anyway.

If you are thinking that by trigger in the kernel postinst because of
changed filed in a modalias package to catch it before nvidia-common's
postinst, you should /really/ be doing that in the modalias postinst. 
That's just a hack to have it run in the kernel's.  The kernel hasn't
changed these modaliases at *all*.

Alberto Milone wrote:
 @Mario
 the kernel postinst exists because it can happen that the nvidia-common 
 postinst is triggered before the installation of the new (or updated) 
 modalias files takes place thus preventing nvidia-common from helping users 
 with the transition to a new driver.

 The kernel postinst gives nvidia-common a better chance to do its job by
 making sure that the postinst is triggered sooner or later during the
 upgrade.

   

-- 
Mario Limonciello
*Dell | Linux Engineering*
mario_limoncie...@dell.com

-- 
dkms - error when installing custom kernel
https://bugs.launchpad.net/bugs/292606
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 292606] Re: dkms - error when installing custom kernel

2008-11-13 Thread renald
I had to do the following:

sudo chmod -x /etc/kernel/postinst.d/nvidia-common
sudo apt-get remove nvidia-common

This completes the installation of the custom kernel. However, the
/etc/kernel/postinst.d/nvidia-common is still there. So, I, reinstalled it
 and then purged:

sudo apt-get install nvidia-common
sudo apt-get purge nvidia-common

After that, the file is gone.

Renald

On 11/11/08, dx9s [EMAIL PROTECTED] wrote:
 I have the same problem and I came to same conclusion that it was
 nvidia-common ... upon trying to figure out what package it came from...
 it comes from nvidia-common (quite simple).

 The weird thing is I didn't have that package installed.. so I installed
 it (and it also flagged other modaliases for different nvidia driver
 versions) ... then removed nvidia-common and the modaliases for the
 versions I didn't need (I must use 173.x as I have legacy nvidia
 hardware).

 That should remove the nvidia-common script in /etc/kernel/postinst.d
 (could also remove it manually or what I did early on to work-around:
 chmod -x nvidia-common to disable it from running).

 Make sure you have nvidia-common package installed (--reinstalled) if
 you need it or removed properly if not using it.

 That seems to fix it for me. I suspect there is an issue with properly
 installed/removing that package. If you are still having problems and
 you reinstalled the package... try removing execute permissions from
 that script before installing your custom kernel via the .deb method!

 --Doug

 --
 dkms - error when installing custom kernel
 https://bugs.launchpad.net/bugs/292606
 You received this bug notification because you are a direct subscriber
 of the bug.

 Status in Ubuntu: New

 Bug description:
 Hi

 After installing Envy (nvidia) in intrepid I have installed a custom kernel
 (based on linux-source package) .

 When I install the .deb file it does install correctly and correctly
 installs nvidia module. however I get the following error - also every time
 I do an apt-get upgrade it try to re-do this (and fails...)

 --

 Searching for default file ... found: /boot/grub/default
 Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
 Searching for splash image ... none found, skipping ...
 Found kernel: /vmlinuz-2.6.27.7-k8
 Found kernel: /vmlinuz-2.6.27-7-generic
 Found kernel: /memtest86+.bin
 Replacing config file /var/run/grub/menu.lst with new version
 Updating /boot/grub/menu.lst ... done

 Examining /etc/kernel/postinst.d.
 run-parts: executing /etc/kernel/postinst.d/dkms
 run-parts: executing /etc/kernel/postinst.d/nvidia-common
 run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 20
 Failed to process /etc/kernel/postinst.d at
 /var/lib/dpkg/info/linux-image-2.6.27.7-k8.postinst line 1181.
 dpkg: error processing linux-image-2.6.27.7-k8 (--install):
 subprocess post-installation script returned error exit status 2
 Setting up linux-headers-2.6.27.7-k8 (686) ...

 - Any ideas how to fix this ?


-- 
dkms - error when installing custom kernel
https://bugs.launchpad.net/bugs/292606
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs