Announcement

Collapse
No announcement yet.

Problems with apt-get failing

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problems with apt-get failing

    Dear all,

    I would appreciate your help to fix a problem with apt-get.

    apt-get fails because of an error message related to _deleted_ (but not uninstalled) kernels. Don't ask me _how_ I managed to accidentally delete my kernels, but still, I did. You can stop laughing now... no really, please! Stop laughing!! :-)

    I've got a booting kernel now, so that's no longer the issue. But I do have this problem with getting apt-get to work again.

    Anyway, when I execute any command other than "apt-get update" it fails to complete the command. Effectively, I think that apt-get tries to clean up the mess of the deleted kernels but cannot, fails and kicks out without executing any of the requested upgrades, installs or removals.

    The actual output of the command (whatever it is) barely varies, and a copy of the output is shown below. As far as I can make out, it tries to clean up my mess for me, but because it can't do it, it stops completely, and does not get as far as executing the requested upgrade. One thing that occasionally varies depending on the command I ask is that sometimes (although not below) it tells me that it could not create a log because MaxReports has been reached. I don't know if that has any bearing on it, although probably not.

    Can anyone tell me how to remove the cruft, or reset apt-get or do anything to get it past the issue of the deleted kernels? This would very much help me get back on the right track.

    Any help is very much appreciated.

    Many thanks,

    Bag.

    P.S. Code output is here:

    Code:
    Reading package lists...
    
    Building dependency tree...
    
    Reading state information...
    
    The following packages will be REMOVED
      
    linux-image-2.6.38-12-generic 
    linux-image-3.0.0-12-generic  
    linux-image-3.0.0-13-generic 
    linux-image-3.0.0-14-generic  
    linux-image-3.0.0-15-generic 
    linux-image-3.0.0-16-generic 
    linux-image-3.0.0-17-generic 
    linux-image-3.0.0-19-generic  
    linux-image-3.0.0-20-generic
    
    The following packages will be upgraded:
      firefox firefox-branding firefox-globalmenu firefox-locale-en libraptor
    15 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
    
    10 not fully installed or removed.
    
    Need to get 0 B/56.7 MB of archives.
    
    After this operation, 1,367 MB disk space will be freed.
    
    Do you want to continue [Y/n]? 
    (Reading database ... 
    (Reading database ... 5%
    (Reading database ... 10%
    (Reading database ... 15%
    (Reading database ... 20%
    (Reading database ... 25%
    (Reading database ... 30%
    (Reading database ... 35%
    (Reading database ... 40%
    (Reading database ... 45%
    (Reading database ... 50%
    (Reading database ... 55%
    (Reading database ... 60%
    (Reading database ... 65%
    (Reading database ... 70%
    (Reading database ... 75%
    (Reading database ... 80%
    (Reading database ... 85%
    (Reading database ... 90%
    (Reading database ... 95%
    (Reading database ... 100%
    (Reading database ... 375571 files and directories currently installed.)
    
    Removing linux-image-2.6.38-12-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.38-12-generic /boot/vmlinuz-2.6.38-12-generic
    update-initramfs: Deleting /boot/initrd.img-2.6.38-12-generic
    run-parts: executing /etc/kernel/postrm.d/zz-extlinux 2.6.38-12-generic /boot/vmlinuz-2.6.38-12-generic
    P: Checking for EXTLINUX directory... found.
    P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
    P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
    P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
    run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
    Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-2.6.38-12-generic.postrm line 328.
    dpkg: error processing linux-image-2.6.38-12-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    
    Removing linux-image-3.0.0-12-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
    update-initramfs: Deleting /boot/initrd.img-3.0.0-12-generic
    run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
    P: Checking for EXTLINUX directory... found.
    P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
    P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
    P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
    run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
    Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-12-generic.postrm line 328.
    dpkg: error processing linux-image-3.0.0-12-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    
    Removing linux-image-3.0.0-13-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic
    update-initramfs: Deleting /boot/initrd.img-3.0.0-13-generic
    run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic
    P: Checking for EXTLINUX directory... found.
    P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
    P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
    P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
    run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
    Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-13-generic.postrm line 328.
    dpkg: error processing linux-image-3.0.0-13-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    
    Removing linux-image-3.0.0-14-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-14-generic /boot/vmlinuz-3.0.0-14-generic
    update-initramfs: Deleting /boot/initrd.img-3.0.0-14-generic
    run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-14-generic /boot/vmlinuz-3.0.0-14-generic
    P: Checking for EXTLINUX directory... found.
    P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
    P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
    P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
    run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
    Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-14-generic.postrm line 328.
    dpkg: error processing linux-image-3.0.0-14-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    
    Removing linux-image-3.0.0-15-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-15-generic /boot/vmlinuz-3.0.0-15-generic
    update-initramfs: Deleting /boot/initrd.img-3.0.0-15-generic
    run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-15-generic /boot/vmlinuz-3.0.0-15-generic
    P: Checking for EXTLINUX directory... found.
    P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
    P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
    P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
    run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
    Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-15-generic.postrm line 328.
    dpkg: error processing linux-image-3.0.0-15-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    
    Removing linux-image-3.0.0-16-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-16-generic /boot/vmlinuz-3.0.0-16-generic
    update-initramfs: Deleting /boot/initrd.img-3.0.0-16-generic
    run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-16-generic /boot/vmlinuz-3.0.0-16-generic
    P: Checking for EXTLINUX directory... found.
    P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
    P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
    P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
    run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
    Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-16-generic.postrm line 328.
    dpkg: error processing linux-image-3.0.0-16-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    
    Removing linux-image-3.0.0-17-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-17-generic /boot/vmlinuz-3.0.0-17-generic
    update-initramfs: Deleting /boot/initrd.img-3.0.0-17-generic
    run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-17-generic /boot/vmlinuz-3.0.0-17-generic
    P: Checking for EXTLINUX directory... found.
    P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
    P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
    P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
    run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
    Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-17-generic.postrm line 328.
    dpkg: error processing linux-image-3.0.0-17-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    
    Removing linux-image-3.0.0-19-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-19-generic /boot/vmlinuz-3.0.0-19-generic
    update-initramfs: Deleting /boot/initrd.img-3.0.0-19-generic
    run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-19-generic /boot/vmlinuz-3.0.0-19-generic
    P: Checking for EXTLINUX directory... found.
    P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
    P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
    P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
    run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
    Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-19-generic.postrm line 328.
    dpkg: error processing linux-image-3.0.0-19-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    
    Removing linux-image-3.0.0-20-generic ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-20-generic /boot/vmlinuz-3.0.0-20-generic
    update-initramfs: Deleting /boot/initrd.img-3.0.0-20-generic
    run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-20-generic /boot/vmlinuz-3.0.0-20-generic
    P: Checking for EXTLINUX directory... found.
    P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
    P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
    P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
    run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
    Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-20-generic.postrm line 328.
    dpkg: error processing linux-image-3.0.0-20-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    
    Errors were encountered while processing:
     linux-image-2.6.38-12-generic
     linux-image-3.0.0-12-generic
     linux-image-3.0.0-13-generic
     linux-image-3.0.0-14-generic
     linux-image-3.0.0-15-generic
     linux-image-3.0.0-16-generic
     linux-image-3.0.0-17-generic
     linux-image-3.0.0-19-generic
     linux-image-3.0.0-20-generic

    #2
    I'm thinking that the kernels are gone, but some leftover config scripts might be confusing the package manager.

    What's the output of
    Code:
    dpkg -l | grep linux-image
    and
    Code:
    updatedb && locate 2.6.38-12
    Another possibility is that something might be horked with EXTLINUX, but let's see these outputs first.

    Comment


      #3
      Code:
      $ dpkg -l | grep linux-image
      pc  linux-image-2.6.35-22-generic                       2.6.35-22.35                               Linux kernel image for version 2.6.35 on x86/x86_64
      pc  linux-image-2.6.35-24-generic                       2.6.35-24.42                               Linux kernel image for version 2.6.35 on x86/x86_64
      pc  linux-image-2.6.35-25-generic                       2.6.35-25.44                               Linux kernel image for version 2.6.35 on x86/x86_64
      pc  linux-image-2.6.35-27-generic                       2.6.35-27.48                               Linux kernel image for version 2.6.35 on x86/x86_64
      pc  linux-image-2.6.35-28-generic                       2.6.35-28.50                               Linux kernel image for version 2.6.35 on x86/x86_64
      pc  linux-image-2.6.38-10-generic                       2.6.38-10.46                               Linux kernel image for version 2.6.38 on x86/x86_64
      pc  linux-image-2.6.38-11-generic                       2.6.38-11.50                               Linux kernel image for version 2.6.38 on x86/x86_64
      rH  linux-image-2.6.38-12-generic                       2.6.38-12.51                               Linux kernel image for version 2.6.38 on x86/x86_64
      pc  linux-image-2.6.38-8-generic                        2.6.38-8.42                                Linux kernel image for version 2.6.38 on x86/x86_64
      rH  linux-image-3.0.0-12-generic                        3.0.0-12.20                                Linux kernel image for version 3.0.0 on x86/x86_64
      rH  linux-image-3.0.0-13-generic                        3.0.0-13.22                                Linux kernel image for version 3.0.0 on x86/x86_64
      rH  linux-image-3.0.0-14-generic                        3.0.0-14.23                                Linux kernel image for version 3.0.0 on x86/x86_64
      rH  linux-image-3.0.0-15-generic                        3.0.0-15.26                                Linux kernel image for version 3.0.0 on x86/x86_64
      rH  linux-image-3.0.0-16-generic                        3.0.0-16.29                                Linux kernel image for version 3.0.0 on x86/x86_64
      rH  linux-image-3.0.0-17-generic                        3.0.0-17.30                                Linux kernel image for version 3.0.0 on x86/x86_64
      rH  linux-image-3.0.0-19-generic                        3.0.0-19.33                                Linux kernel image for version 3.0.0 on x86/x86_64
      rH  linux-image-3.0.0-20-generic                        3.0.0-20.34                                Linux kernel image for version 3.0.0 on x86/x86_64
      pHR linux-image-3.0.0-21-generic                        3.0.0-21.35                                Linux kernel image for version 3.0.0 on x86/x86_64
      and

      Code:
      ~$ updatedb && locate 2.6.38-12
      updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'
      Does that make any sense?

      Comment


        #4
        what does
        Code:
        sudo dpkg --audit
        say?
        FKA: tanderson

        Comment


          #5
          Have you tried the simple:
          Code:
          sudo apt-get -f install
          Boot Info Script

          Comment


            #6
            Blobfish,

            sudo dpkg --audit gives:

            Code:
            The following packages are in a mess due to serious problems during
            installation. They must be reinstalled for them (and any packages
            that depend on them) to function properly:
             linux-image-3.0.0-21-generic Linux kernel image for version 3.0.0 on x86/x86_6
            
            The following packages are only half installed, due to problems during
            installation. The installation can probably be completed by retrying it;
            the packages can be removed using dselect or dpkg --remove:                                                                                                      
             linux-image-3.0.0-19-generic Linux kernel image for version 3.0.0 on x86/x86_6                                                                                  
             linux-image-3.0.0-13-generic Linux kernel image for version 3.0.0 on x86/x86_6                                                                                  
             linux-image-2.6.38-12-generic Linux kernel image for version 2.6.38 on x86/x86                                                                                  
             linux-image-3.0.0-15-generic Linux kernel image for version 3.0.0 on x86/x86_6                                                                                  
             linux-image-3.0.0-16-generic Linux kernel image for version 3.0.0 on x86/x86_6                                                                                  
             linux-image-3.0.0-14-generic Linux kernel image for version 3.0.0 on x86/x86_6                                                                                  
             linux-image-3.0.0-12-generic Linux kernel image for version 3.0.0 on x86/x86_6                                                                                  
             linux-image-3.0.0-17-generic Linux kernel image for version 3.0.0 on x86/x86_6                                                                                  
             linux-image-3.0.0-20-generic Linux kernel image for version 3.0.0 on x86/x86_6
            Will try those suggestions later, and report back.

            Thanks,

            Bag

            Comment


              #7
              Verndog,

              From your query I get the original longer error messages, and fail... See output below.

              Code:
              ~$ sudo apt-get -f install
              Reading package lists... Done                                                                                                                                    
              Building dependency tree                                                                                                                                         
              Reading state information... Done                                                                                                                                
              The following packages will be REMOVED
                linux-image-2.6.38-12-generic linux-image-3.0.0-12-generic linux-image-3.0.0-13-generic linux-image-3.0.0-14-generic linux-image-3.0.0-15-generic
                linux-image-3.0.0-16-generic linux-image-3.0.0-17-generic linux-image-3.0.0-19-generic linux-image-3.0.0-20-generic
              0 upgraded, 0 newly installed, 9 to remove and 13 not upgraded.
              10 not fully installed or removed.
              Need to get 0 B/37.2 MB of archives.
              After this operation, 1,367 MB disk space will be freed.
              Do you want to continue [Y/n]? Y
              (Reading database ... 375571 files and directories currently installed.)
              Removing linux-image-2.6.38-12-generic ...
              Examining /etc/kernel/postrm.d .
              run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.38-12-generic /boot/vmlinuz-2.6.38-12-generic
              update-initramfs: Deleting /boot/initrd.img-2.6.38-12-generic
              run-parts: executing /etc/kernel/postrm.d/zz-extlinux 2.6.38-12-generic /boot/vmlinuz-2.6.38-12-generic
              P: Checking for EXTLINUX directory... found.
              P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
              P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
              P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
              run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
              Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-2.6.38-12-generic.postrm line 328.
              dpkg: error processing linux-image-2.6.38-12-generic (--remove):
               subprocess installed post-removal script returned error exit status 1
              Removing linux-image-3.0.0-12-generic ...
              Examining /etc/kernel/postrm.d .
              run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
              update-initramfs: Deleting /boot/initrd.img-3.0.0-12-generic
              run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-12-generic /boot/vmlinuz-3.0.0-12-generic
              P: Checking for EXTLINUX directory... found.
              P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
              P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
              P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
              run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
              Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-12-generic.postrm line 328.
              dpkg: error processing linux-image-3.0.0-12-generic (--remove):
               subprocess installed post-removal script returned error exit status 1
              Removing linux-image-3.0.0-13-generic ...
              Examining /etc/kernel/postrm.d .
              run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic
              update-initramfs: Deleting /boot/initrd.img-3.0.0-13-generic
              run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic
              P: Checking for EXTLINUX directory... found.
              P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
              P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
              P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
              run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
              Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-13-generic.postrm line 328.
              dpkg: error processing linux-image-3.0.0-13-generic (--remove):
               subprocess installed post-removal script returned error exit status 1
              Removing linux-image-3.0.0-14-generic ...
              Examining /etc/kernel/postrm.d .
              run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-14-generic /boot/vmlinuz-3.0.0-14-generic
              update-initramfs: Deleting /boot/initrd.img-3.0.0-14-generic
              run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-14-generic /boot/vmlinuz-3.0.0-14-generic
              P: Checking for EXTLINUX directory... found.
              P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
              P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
              P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
              run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
              Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-14-generic.postrm line 328.
              dpkg: error processing linux-image-3.0.0-14-generic (--remove):
               subprocess installed post-removal script returned error exit status 1
              No apport report written because MaxReports has already been reached
                                                                                  Removing linux-image-3.0.0-15-generic ...
              Examining /etc/kernel/postrm.d .
              run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-15-generic /boot/vmlinuz-3.0.0-15-generic
              update-initramfs: Deleting /boot/initrd.img-3.0.0-15-generic
              run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-15-generic /boot/vmlinuz-3.0.0-15-generic
              P: Checking for EXTLINUX directory... found.
              P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
              P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
              P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
              run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
              Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-15-generic.postrm line 328.
              dpkg: error processing linux-image-3.0.0-15-generic (--remove):
               subprocess installed post-removal script returned error exit status 1
              No apport report written because MaxReports has already been reached
                                                                                  Removing linux-image-3.0.0-16-generic ...
              Examining /etc/kernel/postrm.d .
              run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-16-generic /boot/vmlinuz-3.0.0-16-generic
              update-initramfs: Deleting /boot/initrd.img-3.0.0-16-generic
              run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-16-generic /boot/vmlinuz-3.0.0-16-generic
              P: Checking for EXTLINUX directory... found.
              P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
              P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
              P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
              run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
              Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-16-generic.postrm line 328.
              dpkg: error processing linux-image-3.0.0-16-generic (--remove):
               subprocess installed post-removal script returned error exit status 1
              No apport report written because MaxReports has already been reached
                                                                                  Removing linux-image-3.0.0-17-generic ...
              Examining /etc/kernel/postrm.d .
              run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-17-generic /boot/vmlinuz-3.0.0-17-generic
              update-initramfs: Deleting /boot/initrd.img-3.0.0-17-generic
              run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-17-generic /boot/vmlinuz-3.0.0-17-generic
              P: Checking for EXTLINUX directory... found.
              P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
              P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
              P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
              run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
              Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-17-generic.postrm line 328.
              dpkg: error processing linux-image-3.0.0-17-generic (--remove):
               subprocess installed post-removal script returned error exit status 1
              No apport report written because MaxReports has already been reached
                                                                                  Removing linux-image-3.0.0-19-generic ...
              Examining /etc/kernel/postrm.d .
              run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-19-generic /boot/vmlinuz-3.0.0-19-generic
              update-initramfs: Deleting /boot/initrd.img-3.0.0-19-generic
              run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-19-generic /boot/vmlinuz-3.0.0-19-generic
              P: Checking for EXTLINUX directory... found.
              P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
              P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
              P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
              run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
              Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-19-generic.postrm line 328.
              dpkg: error processing linux-image-3.0.0-19-generic (--remove):
               subprocess installed post-removal script returned error exit status 1
              No apport report written because MaxReports has already been reached
                                                                                  Removing linux-image-3.0.0-20-generic ...
              Examining /etc/kernel/postrm.d .
              run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.0.0-20-generic /boot/vmlinuz-3.0.0-20-generic
              update-initramfs: Deleting /boot/initrd.img-3.0.0-20-generic
              run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.0.0-20-generic /boot/vmlinuz-3.0.0-20-generic
              P: Checking for EXTLINUX directory... found.
              P: Writing config for /boot/vmlinuz-3.0.0-21-generic...
              P: Writing config for /boot/vmlinuz-2.6.35-32-generic...
              P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory
              run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
              Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.0.0-20-generic.postrm line 328.
              dpkg: error processing linux-image-3.0.0-20-generic (--remove):
               subprocess installed post-removal script returned error exit status 1
              No apport report written because MaxReports has already been reached
                                                                                  Errors were encountered while processing:
               linux-image-2.6.38-12-generic
               linux-image-3.0.0-12-generic
               linux-image-3.0.0-13-generic
               linux-image-3.0.0-14-generic
               linux-image-3.0.0-15-generic
               linux-image-3.0.0-16-generic
               linux-image-3.0.0-17-generic
               linux-image-3.0.0-19-generic
               linux-image-3.0.0-20-generic
              W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ oneiric/partner amd64 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_oneiric_partner_binary-amd64_Packages)
              W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ oneiric/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_oneiric_partner_binary-i386_Packages)
              W: You may want to run apt-get update to correct these problems
              E: Sub-process /usr/bin/dpkg returned an error code (1)
              I'll try the output suggestions from Blobfish's comments and then get back to you all.

              Many thanks,

              Bag.

              Comment


                #8
                I suspect you have some config scripts hanging around that are failing because the installation packages are missing.

                I'm making my from Berkeley to Austin today so I can't investigate right now. Give me a day or so.

                Comment


                  #9
                  Let's get back to this. Remove the extlinux package -- I think it's interfering with the kernel's uninstall scripts. We can always put it back if you need it.
                  Code:
                  sudo apt-get purge extlinux
                  Then, try to remove one messed up kernel package. First, see if apt can now process it correctly:
                  Code:
                  sudo apt-get purge linux-image-2.6.38-12-generic
                  If that doesn't work, try this:
                  Code:
                  sudo dpkg -P linux-image-2.6.38-12-generic
                  These are baby steps to try. Please report back your results.

                  Comment

                  Working...
                  X