mahasmb
June 18th, 2012, 05:37 AM
I can't update anything. I guess this happened because my computer was running really slowly and I interrupted an installation.
Running "sudo dpkg --configure -a" just stalls. As you can see below, I've tried a few things but nothing's helping. I've spent hours already Googling and trying anything that looks like it might help.
Please help. I need to install a few things and this is making it impossible unless I start from scratch, which I really don't want to have to resort to.
maha@maha-ubuntudesk:~$ sudo dpkg --configure -a
[sudo] password for maha:
Setting up linux-image-3.0.0-21-generic (3.0.0-21.35) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
^CFailed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.0.0-21-generic.postinst line 1010.
dpkg: error processing linux-image-3.0.0-21-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.0.0-21-generic-pae (3.0.0-21.35) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-21-generic-pae /boot/vmlinuz-3.0.0-21-generic-pae
Error! Your kernel headers for kernel 3.0.0-21-generic-pae cannot be found.
Please install the linux-headers-3.0.0-21-generic-pae package,
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 3.0.0-21-generic-pae cannot be found.
Please install the linux-headers-3.0.0-21-generic-pae package,
or use the --kernelsourcedir option to tell DKMS where it's located
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-21-generic-pae /boot/vmlinuz-3.0.0-21-generic-pae
update-initramfs: Generating /boot/initrd.img-3.0.0-21-generic-pae
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-21-generic-pae /boot/vmlinuz-3.0.0-21-generic-pae
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-21-generic-pae /boot/vmlinuz-3.0.0-21-generic-pae
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-21-generic-pae /boot/vmlinuz-3.0.0-21-generic-pae
^CFailed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.0.0-21-generic-pae.postinst line 1010.
dpkg: error processing linux-image-3.0.0-21-generic-pae (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.0.0-21-generic; however:
Package linux-image-3.0.0-21-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.0.0.21.25); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic-pae:
linux-image-generic-pae depends on linux-image-3.0.0-21-generic-pae; however:
Package linux-image-3.0.0-21-generic-pae is not configured yet.
dpkg: error processing linux-image-generic-pae (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-pae:
linux-generic-pae depends on linux-image-generic-pae (= 3.0.0.21.25); however:
Package linux-image-generic-pae is not configured yet.
dpkg: error processing linux-generic-pae (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-3.0.0-21-generic
linux-image-3.0.0-21-generic-pae
linux-image-generic
linux-generic
linux-image-generic-pae
linux-generic-pae
maha@maha-ubuntudesk:~$ sudo dpkg --audit
[sudo] password for maha:
Another process has locked the database for writing, and might currently be
modifying it, some of the following problems might just be due to that.
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-image-generic-pae Generic Linux kernel image
linux-headers-3.0.0-21-generic-pae Linux kernel headers for version 3.0.0 on x
linux-image-generic Generic Linux kernel image
linux-generic-pae Complete Generic Linux kernel
linux-generic Complete Generic Linux kernel
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
linux-image-3.0.0-21-generic Linux kernel image for version 3.0.0 on x86/x86_6
linux-image-3.0.0-21-generic-pae Linux kernel image for version 3.0.0 on x86
maha@maha-ubuntudesk:~$ sudo dpkg --configure linux-generic
dpkg: error: dpkg status database is locked by another process
maha@maha-ubuntudesk:~$ sudo dpkg --configure linux-generic
dpkg: error: dpkg status database is locked by another process
maha@maha-ubuntudesk:~$ sudo dpkg --configure linux-generic
dpkg: error: dpkg status database is locked by another process
maha@maha-ubuntudesk:~$ sudo dpkg --configure linux-generic
dpkg: error: dpkg status database is locked by another process
maha@maha-ubuntudesk:~$ sudo dpkg --audit
[sudo] password for maha:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-image-generic-pae Generic Linux kernel image
linux-headers-3.0.0-21-generic-pae Linux kernel headers for version 3.0.0 on x
linux-image-generic Generic Linux kernel image
linux-generic-pae Complete Generic Linux kernel
linux-generic Complete Generic Linux kernel
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
linux-image-3.0.0-21-generic Linux kernel image for version 3.0.0 on x86/x86_6
linux-image-3.0.0-21-generic-pae Linux kernel image for version 3.0.0 on x86
maha@maha-ubuntudesk:~$ dselect --help
The program 'dselect' is currently not installed. You can install it by typing:
sudo apt-get install dselect
maha@maha-ubuntudesk:~$ sudo apt-get install dselect
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
maha@maha-ubuntudesk:~$ sudo dpkg --configure -a
Setting up linux-image-3.0.0-21-generic (3.0.0-21.35) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
maha@maha-ubuntudesk:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.0.0-21-generic (3.0.0-21.35) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
Running "sudo dpkg --configure -a" just stalls. As you can see below, I've tried a few things but nothing's helping. I've spent hours already Googling and trying anything that looks like it might help.
Please help. I need to install a few things and this is making it impossible unless I start from scratch, which I really don't want to have to resort to.
maha@maha-ubuntudesk:~$ sudo dpkg --configure -a
[sudo] password for maha:
Setting up linux-image-3.0.0-21-generic (3.0.0-21.35) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
^CFailed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.0.0-21-generic.postinst line 1010.
dpkg: error processing linux-image-3.0.0-21-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.0.0-21-generic-pae (3.0.0-21.35) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-21-generic-pae /boot/vmlinuz-3.0.0-21-generic-pae
Error! Your kernel headers for kernel 3.0.0-21-generic-pae cannot be found.
Please install the linux-headers-3.0.0-21-generic-pae package,
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 3.0.0-21-generic-pae cannot be found.
Please install the linux-headers-3.0.0-21-generic-pae package,
or use the --kernelsourcedir option to tell DKMS where it's located
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-21-generic-pae /boot/vmlinuz-3.0.0-21-generic-pae
update-initramfs: Generating /boot/initrd.img-3.0.0-21-generic-pae
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-21-generic-pae /boot/vmlinuz-3.0.0-21-generic-pae
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-21-generic-pae /boot/vmlinuz-3.0.0-21-generic-pae
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-21-generic-pae /boot/vmlinuz-3.0.0-21-generic-pae
^CFailed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.0.0-21-generic-pae.postinst line 1010.
dpkg: error processing linux-image-3.0.0-21-generic-pae (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.0.0-21-generic; however:
Package linux-image-3.0.0-21-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.0.0.21.25); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic-pae:
linux-image-generic-pae depends on linux-image-3.0.0-21-generic-pae; however:
Package linux-image-3.0.0-21-generic-pae is not configured yet.
dpkg: error processing linux-image-generic-pae (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-pae:
linux-generic-pae depends on linux-image-generic-pae (= 3.0.0.21.25); however:
Package linux-image-generic-pae is not configured yet.
dpkg: error processing linux-generic-pae (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-3.0.0-21-generic
linux-image-3.0.0-21-generic-pae
linux-image-generic
linux-generic
linux-image-generic-pae
linux-generic-pae
maha@maha-ubuntudesk:~$ sudo dpkg --audit
[sudo] password for maha:
Another process has locked the database for writing, and might currently be
modifying it, some of the following problems might just be due to that.
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-image-generic-pae Generic Linux kernel image
linux-headers-3.0.0-21-generic-pae Linux kernel headers for version 3.0.0 on x
linux-image-generic Generic Linux kernel image
linux-generic-pae Complete Generic Linux kernel
linux-generic Complete Generic Linux kernel
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
linux-image-3.0.0-21-generic Linux kernel image for version 3.0.0 on x86/x86_6
linux-image-3.0.0-21-generic-pae Linux kernel image for version 3.0.0 on x86
maha@maha-ubuntudesk:~$ sudo dpkg --configure linux-generic
dpkg: error: dpkg status database is locked by another process
maha@maha-ubuntudesk:~$ sudo dpkg --configure linux-generic
dpkg: error: dpkg status database is locked by another process
maha@maha-ubuntudesk:~$ sudo dpkg --configure linux-generic
dpkg: error: dpkg status database is locked by another process
maha@maha-ubuntudesk:~$ sudo dpkg --configure linux-generic
dpkg: error: dpkg status database is locked by another process
maha@maha-ubuntudesk:~$ sudo dpkg --audit
[sudo] password for maha:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-image-generic-pae Generic Linux kernel image
linux-headers-3.0.0-21-generic-pae Linux kernel headers for version 3.0.0 on x
linux-image-generic Generic Linux kernel image
linux-generic-pae Complete Generic Linux kernel
linux-generic Complete Generic Linux kernel
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
linux-image-3.0.0-21-generic Linux kernel image for version 3.0.0 on x86/x86_6
linux-image-3.0.0-21-generic-pae Linux kernel image for version 3.0.0 on x86
maha@maha-ubuntudesk:~$ dselect --help
The program 'dselect' is currently not installed. You can install it by typing:
sudo apt-get install dselect
maha@maha-ubuntudesk:~$ sudo apt-get install dselect
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
maha@maha-ubuntudesk:~$ sudo dpkg --configure -a
Setting up linux-image-3.0.0-21-generic (3.0.0-21.35) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
maha@maha-ubuntudesk:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.0.0-21-generic (3.0.0-21.35) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-21-generic /boot/vmlinuz-3.0.0-21-generic