Announcement

Collapse
No announcement yet.

Error when trying to update

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

    Error when trying to update

    Hi all!

    Kubuntu 14.04 LTS system on a Dell T7500 (48GB w/24 cores)

    I keep on getting the following errors when trying to update:

    An error occurred while applying changes:

    linux-image-3.13.0-113-generic subprocess installed post-installation script returned error exit status 2 linux-image-3.13.0-115-generic subprocess installed post-installation script returned error exit status 2 linux-image-3.13.0-116-generic subprocess installed post-installation script returned error exit status 2 linux-image-3.13.0-117-generic subprocess installed post-installation script returned error exit status 2 linux-image-3.13.0-44-generic package linux-image-3.13.0-44-generic is not ready for configuration cannot configure (current status `half-installed') linux-image-extra-3.13.0-117-generic dependency problems - leaving unconfigured linux-image-generic dependency problems - leaving unconfigured linux-generic dependency problems - leaving unconfigured linux-image-extra-3.13.0-113-generic dependency problems - leaving unconfigured linux-image-extra-3.13.0-115-generic package linux-image-extra-3.13.0-115-generic is not ready for configuration cannot configure (current status `half-installed') linux-image-extra-3.13.0-116-generic dependency problems - leaving unconfigured linux-image-extra-3.13.0-44-generic package linux-image-extra-3.13.0-44-generic is not ready for configuration cannot configure (current status `half-installed')



    Any help in fixing this would be most appreciated.

    Best,

    James

    #2
    It looks like you have some things that didnt get fully installed. Try to force dpkg to finish up the install process:
    Code:
    sudo dpkg --configure -a

    Comment


      #3
      This was the result.

      centurion030@KubuntuTower:~$ sudo dpkg --configure -a
      [sudo] password for centurion030:
      Setting up linux-image-3.13.0-116-generic (3.13.0-116.163) ...
      Running depmod.
      update-initramfs: deferring update (hook will be called later)
      Examining /etc/kernel/postinst.d.
      run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-116-generic /boot/vmlinuz-3.13.0-116-generic
      run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-116-generic /boot/vmlinuz-3.13.0-116-generic
      run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-116-generic /boot/vmlinuz-3.13.0-116-generic
      update-initramfs: Generating /boot/initrd.img-3.13.0-116-generic
      run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-116-generic /boot/vmlinuz-3.13.0-116-generic
      run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-116-generic /boot/vmlinuz-3.13.0-116-generic
      run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-116-generic /boot/vmlinuz-3.13.0-116-generic
      P: Checking for EXTLINUX directory... found.
      P: Writing config for /boot/vmlinuz-3.13.0-117-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-116-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-115-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-113-generic...
      P: Installing debian theme...cp: cannot stat ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such file or directory
      run-parts: /etc/kernel/postinst.d/zz-extlinux exited with return code 1
      Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-116-generic.postinst line 1025.
      dpkg: error processing package linux-image-3.13.0-116-generic (--configure):
      subprocess installed post-installation script returned error exit status 2
      dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-116-generic:
      linux-image-extra-3.13.0-116-generic depends on linux-image-3.13.0-116-generic; however:
      Package linux-image-3.13.0-116-generic is not configured yet.

      dpkg: error processing package linux-image-extra-3.13.0-116-generic (--configure):
      dependency problems - leaving unconfigured
      Setting up linux-image-3.13.0-117-generic (3.13.0-117.164) ...
      Running depmod.
      update-initramfs: deferring update (hook will be called later)
      Examining /etc/kernel/postinst.d.
      run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-117-generic /boot/vmlinuz-3.13.0-117-generic
      run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-117-generic /boot/vmlinuz-3.13.0-117-generic
      run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-117-generic /boot/vmlinuz-3.13.0-117-generic
      update-initramfs: Generating /boot/initrd.img-3.13.0-117-generic
      run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-117-generic /boot/vmlinuz-3.13.0-117-generic
      run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-117-generic /boot/vmlinuz-3.13.0-117-generic
      run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-117-generic /boot/vmlinuz-3.13.0-117-generic
      P: Checking for EXTLINUX directory... found.
      P: Writing config for /boot/vmlinuz-3.13.0-117-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-116-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-115-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-113-generic...
      P: Installing debian theme...cp: cannot stat ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such file or directory
      run-parts: /etc/kernel/postinst.d/zz-extlinux exited with return code 1
      Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-117-generic.postinst line 1025.
      dpkg: error processing package linux-image-3.13.0-117-generic (--configure):
      subprocess installed post-installation script returned error exit status 2
      dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-117-generic:
      linux-image-extra-3.13.0-117-generic depends on linux-image-3.13.0-117-generic; however:
      Package linux-image-3.13.0-117-generic is not configured yet.

      dpkg: error processing package linux-image-extra-3.13.0-117-generic (--configure):
      dependency problems - leaving unconfigured
      Setting up linux-image-3.13.0-113-generic (3.13.0-113.160) ...
      Running depmod.
      update-initramfs: deferring update (hook will be called later)
      Examining /etc/kernel/postinst.d.
      run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-113-generic /boot/vmlinuz-3.13.0-113-generic
      run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-113-generic /boot/vmlinuz-3.13.0-113-generic
      run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-113-generic /boot/vmlinuz-3.13.0-113-generic
      update-initramfs: Generating /boot/initrd.img-3.13.0-113-generic
      run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-113-generic /boot/vmlinuz-3.13.0-113-generic
      run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-113-generic /boot/vmlinuz-3.13.0-113-generic
      run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-113-generic /boot/vmlinuz-3.13.0-113-generic
      P: Checking for EXTLINUX directory... found.
      P: Writing config for /boot/vmlinuz-3.13.0-117-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-116-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-115-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-113-generic...
      P: Installing debian theme...cp: cannot stat ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such file or directory
      run-parts: /etc/kernel/postinst.d/zz-extlinux exited with return code 1
      Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-113-generic.postinst line 1025.
      dpkg: error processing package linux-image-3.13.0-113-generic (--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.13.0-117-generic; however:
      Package linux-image-3.13.0-117-generic is not configured yet.
      linux-image-generic depends on linux-image-extra-3.13.0-117-generic; however:
      Package linux-image-extra-3.13.0-117-generic is not configured yet.

      dpkg: error processing package linux-image-generic (--configure):
      dependency problems - leaving unconfigured
      Setting up linux-image-3.13.0-115-generic (3.13.0-115.162) ...
      Running depmod.
      update-initramfs: deferring update (hook will be called later)
      Examining /etc/kernel/postinst.d.
      run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
      run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
      run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
      update-initramfs: Generating /boot/initrd.img-3.13.0-115-generic
      run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
      run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
      run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
      P: Checking for EXTLINUX directory... found.
      P: Writing config for /boot/vmlinuz-3.13.0-117-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-116-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-115-generic...
      P: Writing config for /boot/vmlinuz-3.13.0-113-generic...
      P: Installing debian theme...cp: cannot stat ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such file or directory
      run-parts: /etc/kernel/postinst.d/zz-extlinux exited with return code 1
      Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-115-generic.postinst line 1025.
      dpkg: error processing package linux-image-3.13.0-115-generic (--configure):
      subprocess installed post-installation script returned error exit status 2
      dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-113-generic:
      linux-image-extra-3.13.0-113-generic depends on linux-image-3.13.0-113-generic; however:
      Package linux-image-3.13.0-113-generic is not configured yet.

      dpkg: error processing package linux-image-extra-3.13.0-113-generic (--configure):
      dependency problems - leaving unconfigured
      dpkg: dependency problems prevent configuration of linux-generic:
      linux-generic depends on linux-image-generic (= 3.13.0.117.127); however:
      Package linux-image-generic is not configured yet.

      dpkg: error processing package linux-generic (--configure):
      dependency problems - leaving unconfigured
      Errors were encountered while processing:
      linux-image-3.13.0-116-generic
      linux-image-extra-3.13.0-116-generic
      linux-image-3.13.0-117-generic
      linux-image-extra-3.13.0-117-generic
      linux-image-3.13.0-113-generic
      linux-image-generic
      linux-image-3.13.0-115-generic
      linux-image-extra-3.13.0-113-generic
      linux-generic
      centurion030@KubuntuTower:~$

      Comment


        #4
        Ok. We're getting somewhere. The packages can't be configured because you are missing dependencies. Try getting apt to take care of it:
        Code:
        sudo apt install -f

        Comment


          #5
          centurion030@KubuntuTower:~$ sudo apt install -f
          [sudo] password for centurion030:
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          The following packages were automatically installed and are no longer required:
          libxdo3 linux-image-extra-3.13.0-116-generic xdotool
          Use 'apt-get autoremove' to remove them.
          The following packages will be REMOVED:
          linux-image-extra-3.13.0-115-generic linux-image-extra-3.13.0-44-generic
          0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
          12 not fully installed or removed.
          Need to get 0 B/15.1 MB of archives.
          After this operation, 304 MB disk space will be freed.
          Do you want to continue? [Y/n] y
          (Reading database ... 877535 files and directories currently installed.)
          Removing linux-image-extra-3.13.0-115-generic (3.13.0-115.162) ...
          run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
          run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
          run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
          update-initramfs: Generating /boot/initrd.img-3.13.0-115-generic
          run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
          run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
          run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
          P: Checking for EXTLINUX directory... found.
          P: Writing config for /boot/vmlinuz-3.13.0-117-generic...
          P: Writing config for /boot/vmlinuz-3.13.0-116-generic...
          P: Writing config for /boot/vmlinuz-3.13.0-115-generic...
          P: Writing config for /boot/vmlinuz-3.13.0-113-generic...
          P: Installing debian theme...cp: cannot stat ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such file or directory
          run-parts: /etc/kernel/postinst.d/zz-extlinux exited with return code 1
          dpkg: error processing package linux-image-extra-3.13.0-115-generic (--remove):
          subprocess installed post-removal script returned error exit status 1
          Removing linux-image-extra-3.13.0-44-generic (3.13.0-44.73) ...
          depmod: FATAL: could not load /boot/System.map-3.13.0-44-generic: No such file or directory
          run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
          run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
          run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
          update-initramfs: Generating /boot/initrd.img-3.13.0-44-generic
          grep: /boot/config-3.13.0-44-generic: No such file or directory
          run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
          run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
          run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
          P: Checking for EXTLINUX directory... found.
          P: Writing config for /boot/vmlinuz-3.13.0-117-generic...
          P: Writing config for /boot/vmlinuz-3.13.0-116-generic...
          P: Writing config for /boot/vmlinuz-3.13.0-115-generic...
          P: Writing config for /boot/vmlinuz-3.13.0-113-generic...
          P: Installing debian theme...cp: cannot stat ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such file or directory
          run-parts: /etc/kernel/postinst.d/zz-extlinux exited with return code 1
          dpkg: error processing package linux-image-extra-3.13.0-44-generic (--remove):
          subprocess installed post-removal script returned error exit status 1
          Errors were encountered while processing:
          linux-image-extra-3.13.0-115-generic
          linux-image-extra-3.13.0-44-generic
          E: Sub-process /usr/bin/dpkg returned an error code (1)
          centurion030@KubuntuTower:~$

          Comment


            #6
            What kernel are you currently using?
            Code:
            uname -r

            Comment


              #7
              From the output of sudo dpkg --configure -a, it appears as if you have mixed some Debian Linux packages and/or included a Debian repository with your Ubuntu repositories:

              P: Installing debian theme...cp: cannot stat ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such file or directory

              It would be helpful to see what you have in /etc/apt/sources.list.d/
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                root@KubuntuTower:~# uname -r
                3.13.0-113-generic
                root@KubuntuTower:~#

                Comment


                  #9
                  root@KubuntuTower:~# cd /etc/apt/sources.list.d/
                  root@KubuntuTower:/etc/apt/sources.list.d# ls
                  gns3-ppa-trusty.list google-chrome.list winswitch.list yannubuntu-boot-repair-trusty.list
                  gns3-ppa-trusty.list.save google-chrome.list.save winswitch.list.save yannubuntu-boot-repair-trusty.list.save
                  root@KubuntuTower:/etc/apt/sources.list.d#

                  Comment


                    #10
                    the update is erring out hear
                    Code:
                    run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-115-generic /boot/vmlinuz-3.13.0-115-generic
                    P: Checking for EXTLINUX directory... found.
                    P: Writing config for /boot/vmlinuz-3.13.0-117-generic...
                    P: Writing config for /boot/vmlinuz-3.13.0-116-generic...
                    P: Writing config for /boot/vmlinuz-3.13.0-115-generic...
                    P: Writing config for /boot/vmlinuz-3.13.0-113-generic...
                    P: Installing debian theme...cp: cannot stat  ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such  file or directory
                    run-parts: /etc/kernel/postinst.d/zz-extlinux exited with return code 1
                    why did you install syslinux ,,,,,,,are you not using grub to boot .

                    this directory (/usr/share/syslinux) dose not exist @hear ,,,,,explane the purpose of your use for it .

                    VINNY
                    i7 4core HT 8MB L3 2.9GHz
                    16GB RAM
                    Nvidia GTX 860M 4GB RAM 1152 cuda cores

                    Comment


                      #11
                      At one time I must have.

                      Would it be safe to remove it?

                      It will remove unebootin-which I do use to create bootable USB drives.

                      Comment


                        #12
                        Okay, I removed it.

                        It was part of unebootin though.

                        Comment


                          #13
                          Is the problem solved?

                          Comment


                            #14
                            Yes!!!

                            Thank you all!

                            James

                            Comment


                              #15
                              Originally posted by Centurion030 View Post
                              Yes!!!

                              Thank you all!

                              James
                              good to hear ,,,,,try mkusb/guidus it is great at making bootable USB's and with persistence and with windows accessible storage ,,,,or even bootable windows drives.

                              https://launchpad.net/~mkusb/+archive/ubuntu/ppa

                              VINNY
                              i7 4core HT 8MB L3 2.9GHz
                              16GB RAM
                              Nvidia GTX 860M 4GB RAM 1152 cuda cores

                              Comment

                              Working...
                              X