Hello people, another small adventure I was involved in the linux world, on my notebook with Ubuntu 9.04: it appears that in recent kernels, starting from version 2.6.27.x, there is a problem that prevents the proper installation of the customized versions . At the end of the compilation mode debian, at the time of installation, dpkg fails to load the nvidia-common package. The thing is not serious even if it were not for the continuous signal at the end of installation of any package.
Configure linux-image-2.6.28.9-m51se (2.6.28.9-m51se-10.00.Custom) …
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
initrd.img(/boot/initrd.img-2.6.28.9-m51se
) points to /boot/initrd.img-2.6.28.9-m51se
(/boot/initrd.img-2.6.28.9-m51se) — doing nothing at /var/lib/dpkg/info/linux-image-2.6.28.9-m51se.postinst line 588.
vmlinuz(/boot/vmlinuz-2.6.28.9-m51se
) points to /boot/vmlinuz-2.6.28.9-m51se
(/boot/vmlinuz-2.6.28.9-m51se) — doing nothing at /var/lib/dpkg/info/linux-image-2.6.28.9-m51se.postinst line 588.
Running postinst hook script update-grub.
Searching for GRUB installation directory … found: /boot/grub
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: /boot/vmlinuz-2.6.28.9-m51se
Found kernel: /boot/vmlinuz-2.6.28-11-generic
Found kernel: /boot/vmlinuz-2.6.24-24-generic
Found kernel: /boot/memtest86+.bin
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.28.9-m51se.postinst line 1186.
dpkg: error processing linux-image-2.6.28.9-m51se (–configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.28.9-m51se
E: Sub-process /usr/bin/dpkg returned an error code (1)
To resolve 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 and the problem is solved.
Bye!!!

No comments yet