Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
nothing changes, producing exactly the same output upon running the same command.
Code:
$ sudo aptitude update && sudo aptitude dist-upgrade -y
The following partially installed packages will be configured:
linux-headers-2.6.35-31-generic linux-headers-generic linux-image-2.6.35-31-generic linux-image-generic
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up linux-image-2.6.35-31-generic (2.6.35-31.63) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-31-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-31-generic /boot/vmlinuz-2.6.35-31-generic
* dkms: running auto installation service for kernel 2.6.35-31-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-31-generic /boot/vmlinuz-2.6.35-31-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-31-generic /boot/vmlinuz-2.6.35-31-generic
run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 10
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-31-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-31-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-headers-2.6.35-31-generic (2.6.35-31.63) ...
No apport report written because MaxReports is reached already
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.35-31-generic /boot/vmlinuz-2.6.35-31-generic
* dkms: running auto installation service for kernel 2.6.35-31-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 2.6.35-31-generic /boot/vmlinuz-2.6.35-31-generic
run-parts: /etc/kernel/header_postinst.d/nvidia-common exited with return code 10
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-2.6.35-31-generic.postinst line 110.
dpkg: error processing linux-headers-2.6.35-31-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-headers-generic:
linux-headers-generic depends on linux-headers-2.6.35-31-generic; however:
Package linux-headers-2.6.35-31-generic is not configured yet.
dpkg: error processing linux-headers-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-2.6.35-31-generic; however:
Package linux-image-2.6.35-31-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-image-2.6.35-31-generic
linux-headers-2.6.35-31-generic
linux-headers-generic
linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up linux-headers-2.6.35-31-generic (2.6.35-31.63) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.35-31-generic /boot/vmlinuz-2.6.35-31-generic
* dkms: running auto installation service for kernel 2.6.35-31-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 2.6.35-31-generic /boot/vmlinuz-2.6.35-31-generic
run-parts: /etc/kernel/header_postinst.d/nvidia-common exited with return code 10
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-2.6.35-31-generic.postinst line 110.
dpkg: error processing linux-headers-2.6.35-31-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-2.6.35-31-generic (2.6.35-31.63) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-31-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-31-generic /boot/vmlinuz-2.6.35-31-generic
* dkms: running auto installation service for kernel 2.6.35-31-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-31-generic /boot/vmlinuz-2.6.35-31-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-31-generic /boot/vmlinuz-2.6.35-31-generic
run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 10
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-31-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-31-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-headers-generic:
linux-headers-generic depends on linux-headers-2.6.35-31-generic; however:
Package linux-headers-2.6.35-31-generic is not configured yet.
dpkg: error processing linux-headers-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-2.6.35-31-generic; however:
Package linux-image-2.6.35-31-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-headers-2.6.35-31-generic
linux-image-2.6.35-31-generic
linux-headers-generic
Presuming that these packages listed do not relate to your currently running kernel (compare to uname -a) then I'd look to explicitly remove them and try again.
well the errors appear to relate directly to the versioned packages, so start with them first. You won't need the header packages for normal system use anyway.
After I uninstalled those packages, the errors went away. But when I installed kernel-generic again (because I'd like to have the latest stable kernel automatically) the error came back.
Last edited by Xl1NntniNH7F; 01-09-2012 at 10:34 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.