Announcement

Collapse
No announcement yet.

Unable to install updates

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

    Unable to install updates

    After installing 15.04, am having problems doing system updates. Getting:

    -----------------------------------------------------------------------------------------------------
    :~$ sudo apt-get install -f
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    gnome-icon-theme-symbolic libinput0 libmagickcore5 libmagickcore5-extra
    libmagickwand5 libts-0.0-0 linux-headers-3.16.0-23 linux-headers-3.16.0-23-generic
    linux-headers-3.16.0-24 linux-headers-3.16.0-24-generic linux-headers-3.16.0-25
    linux-headers-3.16.0-25-generic linux-headers-3.16.0-28
    linux-headers-3.16.0-28-generic linux-headers-3.16.0-29
    linux-headers-3.16.0-29-generic linux-headers-3.16.0-31 linux-headers-3.19.0-18
    linux-headers-3.19.0-18-generic linux-headers-generic linux-image-3.16.0-23-generic
    linux-image-3.16.0-24-generic linux-image-3.16.0-25-generic
    linux-image-3.16.0-28-generic linux-image-3.16.0-29-generic
    linux-image-extra-3.16.0-23-generic linux-image-extra-3.16.0-24-generic
    linux-image-extra-3.16.0-25-generic linux-image-extra-3.16.0-28-generic
    linux-image-extra-3.16.0-29-generic thermald tsconf
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
    linux-image-extra-3.16.0-31-generic
    0 upgraded, 0 newly installed, 1 to remove and 123 not upgraded.
    3 not fully installed or removed.
    After this operation, 118 MB disk space will be freed.
    Do you want to continue? [Y/n] y
    (Reading database ... 368915 files and directories currently installed.)
    Removing linux-image-extra-3.16.0-31-generic (3.16.0-31.43) ...
    depmod: FATAL: could not load /boot/System.map-3.16.0-31-generic: No such file or directory
    run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.0-31-generic /boot/vmlinuz-3.16.0-31-generic
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.0-31-generic /boot/vmlinuz-3.16.0-31-generic
    update-initramfs: Generating /boot/initrd.img-3.16.0-31-generic
    grep: /boot/config-3.16.0-31-generic: No such file or directory
    WARNING: missing /lib/modules/3.16.0-31-generic
    Device driver support needs thus be built-in linux image!
    depmod: ERROR: could not open directory /lib/modules/3.16.0-31-generic: No such file or directory
    depmod: FATAL: could not search modules: No such file or directory
    depmod: WARNING: could not open /tmp/mkinitramfs_c5m0nX/lib/modules/3.16.0-31-generic/modules.order: No such file or directory
    depmod: WARNING: could not open /tmp/mkinitramfs_c5m0nX/lib/modules/3.16.0-31-generic/modules.builtin: No such file or directory

    gzip: stdout: No space left on device
    E: mkinitramfs failure cpio 141 gzip 1
    update-initramfs: failed for /boot/initrd.img-3.16.0-31-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-extra-3.16.0-31-generic (--remove):
    subprocess installed post-removal script returned error exit status 1
    Errors were encountered while processing:
    linux-image-extra-3.16.0-31-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    -----------------------------------------------------------------------------------------------------

    Is the problem that it can't find missing libs or that there's not enough space in tmp ?

    Thanks

    #2
    What's the output of
    Code:
    df /tmp
    
    dpkg -l | grep 'linux-'
    Last edited by SteveRiley; Jun 14, 2015, 01:18 PM.

    Comment


      #3
      Unable to install updates

      Sorry for the long delay. Not local to this box.

      This is what I get:
      ==============================================
      Code:
      ntuple@zbz:~$ df /tmp
      Filesystem                   1K-blocks     Used Available Use% Mounted on
      /dev/mapper/kubuntu--vg-root [URL="tel:151316668 13064744"]151316668 13064744[/URL] 130542436  10% /
      ntuple@zbz:~$ 
      ntuple@zbz:~$ dpkg -l | grep 'linux-'
      ii  linux-firmware                               1.143.1                                    all          Firmware for Linux kernel drivers
      ii  linux-headers-3.16.0-23                      3.16.0-23.31                               all          Header files related to Linux kernel version 3.16.0
      ii  linux-headers-3.16.0-23-generic              3.16.0-23.31                               i386         Linux kernel headers for version 3.16.0 on 32 bit x86 SMP
      ii  linux-headers-3.16.0-24                      3.16.0-24.32                               all          Header files related to Linux kernel version 3.16.0
      ii  linux-headers-3.16.0-24-generic              3.16.0-24.32                               i386         Linux kernel headers for version 3.16.0 on 32 bit x86 SMP
      ii  linux-headers-3.16.0-25                      3.16.0-25.33                               all          Header files related to Linux kernel version 3.16.0
      ii  linux-headers-3.16.0-25-generic              3.16.0-25.33                               i386         Linux kernel headers for version 3.16.0 on 32 bit x86 SMP
      ii  linux-headers-3.16.0-28                      3.16.0-28.38                               all          Header files related to Linux kernel version 3.16.0
      ii  linux-headers-3.16.0-28-generic              3.16.0-28.38                               i386         Linux kernel headers for version 3.16.0 on 32 bit x86 SMP
      ii  linux-headers-3.16.0-29                      3.16.0-29.39                               all          Header files related to Linux kernel version 3.16.0
      ii  linux-headers-3.16.0-29-generic              3.16.0-29.39                               i386         Linux kernel headers for version 3.16.0 on 32 bit x86 SMP
      ii  linux-headers-3.16.0-30                      3.16.0-30.40                               all          Header files related to Linux kernel version 3.16.0
      ii  linux-headers-3.16.0-30-generic              3.16.0-30.40                               i386         Linux kernel headers for version 3.16.0 on 32 bit x86 SMP
      ii  linux-headers-3.16.0-31                      3.16.0-31.43                               all          Header files related to Linux kernel version 3.16.0
      ii  linux-headers-3.19.0-18                      3.19.0-18.18                               all          Header files related to Linux kernel version 3.19.0
      ii  linux-headers-3.19.0-18-generic              3.19.0-18.18                               i386         Linux kernel headers for version 3.19.0 on 32 bit x86 SMP
      ii  linux-headers-generic                        3.19.0.18.17                               i386         Generic Linux kernel headers
      ii  linux-image-3.16.0-23-generic                3.16.0-23.31                               i386         Linux kernel image for version 3.16.0 on 32 bit x86 SMP
      ii  linux-image-3.16.0-24-generic                3.16.0-24.32                               i386         Linux kernel image for version 3.16.0 on 32 bit x86 SMP
      ii  linux-image-3.16.0-25-generic                3.16.0-25.33                               i386         Linux kernel image for version 3.16.0 on 32 bit x86 SMP
      ii  linux-image-3.16.0-28-generic                3.16.0-28.38                               i386         Linux kernel image for version 3.16.0 on 32 bit x86 SMP
      ii  linux-image-3.16.0-29-generic                3.16.0-29.39                               i386         Linux kernel image for version 3.16.0 on 32 bit x86 SMP
      ii  linux-image-3.16.0-30-generic                3.16.0-30.40                               i386         Linux kernel image for version 3.16.0 on 32 bit x86 SMP
      ii  linux-image-extra-3.16.0-23-generic          3.16.0-23.31                               i386         Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
      ii  linux-image-extra-3.16.0-24-generic          3.16.0-24.32                               i386         Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
      ii  linux-image-extra-3.16.0-25-generic          3.16.0-25.33                               i386         Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
      ii  linux-image-extra-3.16.0-28-generic          3.16.0-28.38                               i386         Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
      ii  linux-image-extra-3.16.0-29-generic          3.16.0-29.39                               i386         Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
      iF  linux-image-extra-3.16.0-30-generic          3.16.0-30.40                               i386         Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
      rH  linux-image-extra-3.16.0-31-generic          3.16.0-31.43                               i386         Linux kernel extra modules for version 3.16.0 on 32 bit x86 SMP
      ii  linux-sound-base                             1.0.25+dfsg-0ubuntu4                       all          base package for ALSA and OSS sound systems
      ii  syslinux-common                              3:6.03+dfsg-5ubuntu1                       all          collection of bootloaders (common)
      ii  syslinux-legacy                              2:3.63+dfsg-2ubuntu6                       i386         Bootloader for Linux/i386 using MS-DOS floppies
      Originally posted by SteveRiley View Post
      What's the output of
      Code:
      df /tmp
      
      dpkg -l | grep 'linux-'
      Last edited by Snowhog; Sep 20, 2015, 08:02 AM. Reason: fixed CODE tages

      Comment


        #4
        Hi ntuple (are you a math guy/gal, btw? -- asking because of the "n-tuple," Euclidean n-space and all that).

        It would help the helpers if you place your command and the output between "code" tags. You can easily do that by highlighting everything including "ntuple@zbz:~$ dpkg -l | grep 'linux-'" to and including the last line of output ("ii syslinux-legacy 2:3.63+dfsg-2ubuntu6 i386 Bootloader for Linux/i386 using MS-DOS floppies"), while highlighted, press that # button on the posting-edit menu (at the far right). (You can edit your post that way, if you so wish.)
        An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

        Comment


          #5
          Hi Qqmike,

          I'm a fan of David Gelernter and of his many contributions to Computer Science including his work on n-space that underlies a variety of distributed computing ideas such as in Java.

          Pressing the star only takes me to that post in the thread and I can't get the code tag working properly but will try again.

          Still having the issue of installing updates. May go to 15.10 to solve the problem.

          Comment

          Working...
          X