Re: [Bug 787923] Re: package dictionaries-common 1.4.0ubuntu2 failed to install/upgrade: subprocess new pre-installation script returned error exit status 2
On Wed, 2011-05-25 at 09:00 +, era wrote: fastjar Tried your suggestion with a normal purge of fasjar, that failed, same as a purge -f, see results below: desktop:~$ sudo aptitude purge -f fastjar The following packages will be REMOVED: fastjar{p} The following partially installed packages will be configured: ant ant-gcj ant-optional ant-optional-gcj bsd-mailx build-essential default-jdk default-jre default-jre-headless eclipse-rcp g++ gnome-session icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-netx icedtea-plugin icedtea6-plugin junit4 libcommons-beanutils-java libcommons-el-java libcommons-logging-java libjetty-java liblucene2-java libservlet2.4-java libslf4j-java libxerces2-java linux-generic linux-headers-2.6.38-9-generic linux-headers-generic linux-image-2.6.38-9-generic linux-image-generic openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib rhino ubuntu-desktop 0 packages upgraded, 0 newly installed, 1 to remove and 32 not upgraded. Need to get 0 B of archives. After unpacking 152 kB will be freed. Do you want to continue? [Y/n/?] Y dpkg: error processing fastjar (--purge): Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Errors were encountered while processing: fastjar E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up g++ (4:4.5.2-1ubuntu3) ... update-alternatives: error: /var/lib/dpkg/alternatives/c++ corrupt: invalid status dpkg: error processing g++ (--configure): subprocess installed post-installation script returned error exit status 2 Setting up gnome-session (2.32.1-0ubuntu20) ... update-alternatives: error: /var/lib/dpkg/alternatives/x-session-manager corrupt: invalid status dpkg: error processing gnome-session (--configure): subprocess installed post-installation script returned error exit status 2 Setting up bsd-mailx (8.1.2-0.20100314cvs-1) ... update-alternatives: error: /var/lib/dpkg/alternatives/mailx corrupt: invalid status update-alternatives: error: /var/lib/dpkg/alternatives/mailx corrupt: invalid status dpkg: error processing bsd-mailx (--configure): subprocess installed post-installation script returned error exit status 2 Setting up linux-image-2.6.38-9-generic (2.6.38-9.43) ... Running depmod. update-initramfs: Generating /boot/initrd.img-2.6.38-9-generic Running postinst hook script /sbin/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.38-9-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 2.6.38-9-generic /boot/vmlinuz-2.6.38-9-generic * dkms: running auto installation service for kernel 2.6.38-9-generic * nvidia-current (270.41.06)... [ OK ] run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.38-9-generic /boot/vmlinuz-2.6.38-9-generic run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.38-9-generic /boot/vmlinuz-2.6.38-9-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.38-9-generic.postinst line 1010. dpkg: error processing linux-image-2.6.38-9-generic (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of ubuntu-desktop: ubuntu-desktop depends on gnome-session; however: Package gnome-session is not configured yet. dpkg: error processing ubuntu-desktop (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of build-essential: build-essential depends on g++ (= 4:4.4.3); however: Package g++ is not configured yet. dpkg: error processing build-essential (--configure): dependency problems - leaving unconfigured Setting up linux-headers-2.6.38-9-generic (2.6.38-9.43) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.38-9-generic /boot/vmlinuz-2.6.38-9-generic * dkms: running auto installation service for kernel 2.6.38-9-generic * nvidia-current (270.41.06)... [ OK ] run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 2.6.38-9-generic /boot/vmlinuz-2.6.38-9-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.38-9-generic.postinst line 110. dpkg: error processing linux-headers-2.6.38-9-generic (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of
Re[Bug 787923] Re: package dictionaries-common 1.4.0ubuntu2 failed to install/upgrade: subprocess new pre-installation script returned error exit status 2]
On Wed, 2011-05-25 at 09:00 +, era wrote: fastjar Tried your suggestion with a normal purge of fasjar, that failed, same as a purge -f, see results below: desktop:~$ sudo aptitude purge -f fastjar The following packages will be REMOVED: fastjar{p} The following partially installed packages will be configured: ant ant-gcj ant-optional ant-optional-gcj bsd-mailx build-essential default-jdk default-jre default-jre-headless eclipse-rcp g++ gnome-session icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-netx icedtea-plugin icedtea6-plugin junit4 libcommons-beanutils-java libcommons-el-java libcommons-logging-java libjetty-java liblucene2-java libservlet2.4-java libslf4j-java libxerces2-java linux-generic linux-headers-2.6.38-9-generic linux-headers-generic linux-image-2.6.38-9-generic linux-image-generic openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib rhino ubuntu-desktop 0 packages upgraded, 0 newly installed, 1 to remove and 32 not upgraded. Need to get 0 B of archives. After unpacking 152 kB will be freed. Do you want to continue? [Y/n/?] Y dpkg: error processing fastjar (--purge): Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Errors were encountered while processing: fastjar E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up g++ (4:4.5.2-1ubuntu3) ... update-alternatives: error: /var/lib/dpkg/alternatives/c++ corrupt: invalid status dpkg: error processing g++ (--configure): subprocess installed post-installation script returned error exit status 2 Setting up gnome-session (2.32.1-0ubuntu20) ... update-alternatives: error: /var/lib/dpkg/alternatives/x-session-manager corrupt: invalid status dpkg: error processing gnome-session (--configure): subprocess installed post-installation script returned error exit status 2 Setting up bsd-mailx (8.1.2-0.20100314cvs-1) ... update-alternatives: error: /var/lib/dpkg/alternatives/mailx corrupt: invalid status update-alternatives: error: /var/lib/dpkg/alternatives/mailx corrupt: invalid status dpkg: error processing bsd-mailx (--configure): subprocess installed post-installation script returned error exit status 2 Setting up linux-image-2.6.38-9-generic (2.6.38-9.43) ... Running depmod. update-initramfs: Generating /boot/initrd.img-2.6.38-9-generic Running postinst hook script /sbin/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.38-9-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 2.6.38-9-generic /boot/vmlinuz-2.6.38-9-generic * dkms: running auto installation service for kernel 2.6.38-9-generic * nvidia-current (270.41.06)... [ OK ] run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.38-9-generic /boot/vmlinuz-2.6.38-9-generic run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.38-9-generic /boot/vmlinuz-2.6.38-9-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.38-9-generic.postinst line 1010. dpkg: error processing linux-image-2.6.38-9-generic (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of ubuntu-desktop: ubuntu-desktop depends on gnome-session; however: Package gnome-session is not configured yet. dpkg: error processing ubuntu-desktop (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of build-essential: build-essential depends on g++ (= 4:4.4.3); however: Package g++ is not configured yet. dpkg: error processing build-essential (--configure): dependency problems - leaving unconfigured Setting up linux-headers-2.6.38-9-generic (2.6.38-9.43) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.38-9-generic /boot/vmlinuz-2.6.38-9-generic * dkms: running auto installation service for kernel 2.6.38-9-generic * nvidia-current (270.41.06)... [ OK ] run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 2.6.38-9-generic /boot/vmlinuz-2.6.38-9-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.38-9-generic.postinst line 110. dpkg: error processing linux-headers-2.6.38-9-generic (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of