Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: apt-get update errors, /boot full, can't remove old kernels?

  1. #1
    Join Date
    Aug 2015
    Beans
    10

    apt-get update errors, /boot full, can't remove old kernels?

    Hi. I'm running Lubuntu, on Ubuntu 14.04.3 LTS. I've been having trouble getting updates. I think my problem is that my boot partition is full (full of old kernels), but I can't seem to remove old kernels. Am I reading these error messages correctly? Is there anything else I should try? I'd appreciate any help!

    When I run sudo apt-get upgrade, I see:

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these.
    The following packages have unmet dependencies:
     linux-image-extra-3.13.0-62-generic : Depends: linux-image-3.13.0-62-generic but it is not installed
     linux-image-generic : Depends: linux-image-3.13.0-62-generic but it is not installed
    E: Unmet dependencies. Try using -f.
    I've tried apt-get -f install as is suggests, but get:

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
      exo-utils libgarcon-1-0 libgarcon-common
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
      linux-image-3.13.0-62-generic
    Suggested packages:
      fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
    The following NEW packages will be installed:
      linux-image-3.13.0-62-generic
    0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
    4 not fully installed or removed.
    Need to get 0 B/14.7 MB of archives.
    After this operation, 32.9 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    (Reading database ... 366559 files and directories currently installed.)
    Preparing to unpack .../linux-image-3.13.0-62-generic_3.13.0-62.102_i386.deb ...
    Done.
    Unpacking linux-image-3.13.0-62-generic (3.13.0-62.102) ...
    dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-62-generic_3.13.0-62.102_i386.deb (--unpack):
     cannot copy extracted data for './boot/abi-3.13.0-62-generic' to '/boot/abi-3.13.0-62-generic.dpkg-new': failed to write (No space left on device)
    No apport report written because the error message indicates a disk full error
                                                                                  dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-62-generic /boot/vmlinuz-3.13.0-62-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-62-generic /boot/vmlinuz-3.13.0-62-generic
    Errors were encountered while processing:
     /var/cache/apt/archives/linux-image-3.13.0-62-generic_3.13.0-62.102_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    The apt-get autoremove command it suggests also doesn't work here.

    So I see it says it can't copy data to /boot because the device is full. Disks tells me my boot partition (dev/sda1, Linux bootable) is 255MB, 774KB free (99.7% full). So that seems to be a problem. My research so far led me to the suggestion to remove old kernels.
    https://help.ubuntu.com/community/Lu...moveOldKernels

    uname -r tells me my current kernel is 3.13.0-61-generic, and "dpkg -l | grep linux-image-" tells me I also have linux-image-3.13.0-[32, 39, 40, 43, 46, 48, 49, 52, 61]-generic. Actually, I also see I have linux-image-extra-3.13.0-62-generic. Is that a problem??

    So I try removing the oldest kernel using "sudo apt-get autoremove linux-image-extra-3.13.0-32-generic" and I get:

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package 'linux-image-extra-3.13.0-32-generic' is not installed, so not removed
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
     linux-image-extra-3.13.0-62-generic : Depends: linux-image-3.13.0-62-generic but it is not going to be installed
     linux-image-generic : Depends: linux-image-3.13.0-62-generic but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    I get the same result as I try to autoremove each of the other old kernels (not including -61-generic or -62-generic, I'm not trying to remove them). So I feel like I'm stuck in a loop. Is there something else I should do here? Please let me know if I can provide more details. Thanks!!

  2. #2
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: apt-get update errors, /boot full, can't remove old kernels?

    Hi, can you post the output of
    Code:
    ls -l /boot
    Thanks!
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  3. #3
    Join Date
    Aug 2015
    Beans
    10

    Re: apt-get update errors, /boot full, can't remove old kernels?

    Sure.

    Code:
    total 231323
    -rw-r--r-- 1 root root  1168764 Oct 28  2014 abi-3.13.0-39-generic
    -rw-r--r-- 1 root root  1168726 Nov 13  2014 abi-3.13.0-40-generic
    -rw-r--r-- 1 root root  1168937 Dec  8  2014 abi-3.13.0-43-generic
    -rw-r--r-- 1 root root  1169069 Mar 10 13:53 abi-3.13.0-46-generic
    -rw-r--r-- 1 root root  1168940 Mar 12 05:20 abi-3.13.0-48-generic
    -rw-r--r-- 1 root root  1168940 Apr 10 14:00 abi-3.13.0-49-generic
    -rw-r--r-- 1 root root  1168888 May  3 22:35 abi-3.13.0-52-generic
    -rw-r--r-- 1 root root  1169346 Jul 29 05:40 abi-3.13.0-61-generic
    -rw-r--r-- 1 root root   169782 Oct 28  2014 config-3.13.0-39-generic
    -rw-r--r-- 1 root root   169815 Nov 13  2014 config-3.13.0-40-generic
    -rw-r--r-- 1 root root   169815 Dec  8  2014 config-3.13.0-43-generic
    -rw-r--r-- 1 root root   169818 Mar 10 13:53 config-3.13.0-46-generic
    -rw-r--r-- 1 root root   169843 Mar 12 05:20 config-3.13.0-48-generic
    -rw-r--r-- 1 root root   169843 Apr 10 14:00 config-3.13.0-49-generic
    -rw-r--r-- 1 root root   169832 May  3 22:35 config-3.13.0-52-generic
    -rw-r--r-- 1 root root   169833 Jul 29 05:40 config-3.13.0-61-generic
    drwxr-xr-x 5 root root     1024 Aug  8 10:38 grub
    -rw-r--r-- 1 root root 19512616 Nov 23  2014 initrd.img-3.13.0-39-generic
    -rw-r--r-- 1 root root 19514346 Dec  1  2014 initrd.img-3.13.0-40-generic
    -rw-r--r-- 1 root root 19544062 Mar  1 14:12 initrd.img-3.13.0-43-generic
    -rw-r--r-- 1 root root 19552856 Mar 12 00:45 initrd.img-3.13.0-46-generic
    -rw-r--r-- 1 root root 19553520 Mar 25 19:48 initrd.img-3.13.0-48-generic
    -rw-r--r-- 1 root root 19554140 Apr 26 17:32 initrd.img-3.13.0-49-generic
    -rw-r--r-- 1 root root 19554831 Aug  6 18:53 initrd.img-3.13.0-52-generic
    -rw-r--r-- 1 root root 19559386 Aug  8 10:38 initrd.img-3.13.0-61-generic
    drwx------ 2 root root    12288 Nov 23  2014 lost+found
    -rw-r--r-- 1 root root   176500 Mar 12  2014 memtest86+.bin
    -rw-r--r-- 1 root root   178176 Mar 12  2014 memtest86+.elf
    -rw-r--r-- 1 root root   178680 Mar 12  2014 memtest86+_multiboot.bin
    -rw------- 1 root root  2697539 Oct 28  2014 System.map-3.13.0-39-generic
    -rw------- 1 root root  2697648 Nov 13  2014 System.map-3.13.0-40-generic
    -rw------- 1 root root  2699011 Dec  8  2014 System.map-3.13.0-43-generic
    -rw------- 1 root root  2699562 Mar 10 13:53 System.map-3.13.0-46-generic
    -rw------- 1 root root  2699351 Mar 12 05:20 System.map-3.13.0-48-generic
    -rw------- 1 root root  2699535 Apr 10 14:00 System.map-3.13.0-49-generic
    -rw------- 1 root root  2699822 May  3 22:35 System.map-3.13.0-52-generic
    -rw------- 1 root root  2701185 Jul 29 05:40 System.map-3.13.0-61-generic
    -rw------- 1 root root  5828720 Oct 28  2014 vmlinuz-3.13.0-39-generic
    -rw------- 1 root root  5830128 Nov 13  2014 vmlinuz-3.13.0-40-generic
    -rw------- 1 root root  5833296 Dec  8  2014 vmlinuz-3.13.0-43-generic
    -rw------- 1 root root  5836592 Mar 10 13:53 vmlinuz-3.13.0-46-generic
    -rw------- 1 root root  5837296 Mar 12 05:20 vmlinuz-3.13.0-48-generic
    -rw------- 1 root root  5836528 Apr 10 14:00 vmlinuz-3.13.0-49-generic
    -rw------- 1 root root  5837072 May  3 22:35 vmlinuz-3.13.0-52-generic
    -rw------- 1 root root  5843472 Jul 29 05:40 vmlinuz-3.13.0-61-generic

  4. #4
    Join Date
    Sep 2013
    Beans
    101

    Re: apt-get update errors, /boot full, can't remove old kernels?

    You can remove old kernels/headers/images from the ununtu software center by searching for 'linux-h' and 'linux-i' under the insalled tab, and selecting the ones you wish to remove (make sure at the bottom of the search results screen youve clicked where it says show ### technical items).

    Alternatively, you can uninstall them from the command line using apt-get remove

    Autoremove will only remove no-longer-needed packages that were used as dependencies for things that are no longer installed -- basically it sweeps out any trash left behind from uninstalls. Since the old kernels are still validly installed, autoremove will not do anything.

  5. #5
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: apt-get update errors, /boot full, can't remove old kernels?

    Lets give this a try...
    You're currently using 3.13.0-61-generic, lets remove everything else except for one kernel
    Code:
    sudo dpkg --purge linux-image-3.13.0-39-generic linux-image-3.13.0-40-generic linux-image-3.13.0-43-generic linux-image-3.13.0-46-generic linux-image-3.13.0-48-generic linux-image-3.13.0-49-generic linux-image-extra-3.13.0-39-generic linux-image-extra-3.13.0-40-generic linux-image-extra-3.13.0-43-generic linux-image-extra-3.13.0-46-generic linux-image-extra-3.13.0-48-generic linux-image-extra-3.13.0-49-generic
    sudo apt-get -f install
    Last edited by sandyd; August 23rd, 2015 at 01:25 AM. Reason: typo
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  6. #6
    Join Date
    Aug 2015
    Beans
    10

    Re: apt-get update errors, /boot full, can't remove old kernels?

    It says they're not installed??

    Code:
    sudo dpkg --purge linux-image-3.13.0-39 linux-image-3.13.0-40 linux-image-3.13.0-43 linux-image-3.13.0-46 linux-image-3.13.0-48 linux-image-3.13.0-49
    dpkg: warning: ignoring request to remove linux-image-3.13.0-39 which isn't installed
    dpkg: warning: ignoring request to remove linux-image-3.13.0-40 which isn't installed
    dpkg: warning: ignoring request to remove linux-image-3.13.0-43 which isn't installed
    dpkg: warning: ignoring request to remove linux-image-3.13.0-46 which isn't installed
    dpkg: warning: ignoring request to remove linux-image-3.13.0-48 which isn't installed
    dpkg: warning: ignoring request to remove linux-image-3.13.0-49 which isn't installed

  7. #7
    Join Date
    Aug 2015
    Beans
    10

    Re: apt-get update errors, /boot full, can't remove old kernels?

    Hi XBNCPRk. With Lubuntu, I don't have the Ubuntu Software Center. I don't know how different the Lubuntu Software Center is, but on the Installed Software tab, when I search linux-h, I get no results. I can do the search in Synaptic Package Manager, and it shows linux-header- and linux-image packages, checked and un-checked. Would it work if I marked the old linux-image files for removal?

  8. #8
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: apt-get update errors, /boot full, can't remove old kernels?

    Quote Originally Posted by hutchinson-karl View Post
    It says they're not installed??

    Code:
    sudo dpkg --purge linux-image-3.13.0-39 linux-image-3.13.0-40 linux-image-3.13.0-43 linux-image-3.13.0-46 linux-image-3.13.0-48 linux-image-3.13.0-49
    dpkg: warning: ignoring request to remove linux-image-3.13.0-39 which isn't installed
    dpkg: warning: ignoring request to remove linux-image-3.13.0-40 which isn't installed
    dpkg: warning: ignoring request to remove linux-image-3.13.0-43 which isn't installed
    dpkg: warning: ignoring request to remove linux-image-3.13.0-46 which isn't installed
    dpkg: warning: ignoring request to remove linux-image-3.13.0-48 which isn't installed
    dpkg: warning: ignoring request to remove linux-image-3.13.0-49 which isn't installed
    Fixed typing error
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  9. #9
    Join Date
    Aug 2015
    Beans
    10

    Re: apt-get update errors, /boot full, can't remove old kernels?

    Dependency problems. Does this mean the linux-image-extra- packages need to be removed first?

    Code:
    :~$ sudo dpkg --purge linux-image-3.13.0-39-generic linux-image-3.13.0-40-generic linux-image-3.13.0-43-generic linux-image-3.13.0-46-generic linux-image-3.13.0-48-generic linux-image-3.13.0-49-generic
    dpkg: dependency problems prevent removal of linux-image-3.13.0-39-generic:
     linux-image-extra-3.13.0-39-generic depends on linux-image-3.13.0-39-generic.
    
    dpkg: error processing package linux-image-3.13.0-39-generic (--purge):
     dependency problems - not removing
    dpkg: dependency problems prevent removal of linux-image-3.13.0-40-generic:
     linux-image-extra-3.13.0-40-generic depends on linux-image-3.13.0-40-generic.
    
    dpkg: error processing package linux-image-3.13.0-40-generic (--purge):
     dependency problems - not removing
    dpkg: dependency problems prevent removal of linux-image-3.13.0-43-generic:
     linux-image-extra-3.13.0-43-generic depends on linux-image-3.13.0-43-generic.
    
    dpkg: error processing package linux-image-3.13.0-43-generic (--purge):
     dependency problems - not removing
    dpkg: dependency problems prevent removal of linux-image-3.13.0-46-generic:
     linux-image-extra-3.13.0-46-generic depends on linux-image-3.13.0-46-generic.
    
    dpkg: error processing package linux-image-3.13.0-46-generic (--purge):
     dependency problems - not removing
    dpkg: dependency problems prevent removal of linux-image-3.13.0-48-generic:
     linux-image-extra-3.13.0-48-generic depends on linux-image-3.13.0-48-generic.
    
    dpkg: error processing package linux-image-3.13.0-48-generic (--purge):
     dependency problems - not removing
    dpkg: dependency problems prevent removal of linux-image-3.13.0-49-generic:
     linux-image-extra-3.13.0-49-generic depends on linux-image-3.13.0-49-generic.
    
    dpkg: error processing package linux-image-3.13.0-49-generic (--purge):
     dependency problems - not removing
    Errors were encountered while processing:
     linux-image-3.13.0-39-generic
     linux-image-3.13.0-40-generic
     linux-image-3.13.0-43-generic
     linux-image-3.13.0-46-generic
     linux-image-3.13.0-48-generic
     linux-image-3.13.0-49-generic

  10. #10
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: apt-get update errors, /boot full, can't remove old kernels?

    Quote Originally Posted by hutchinson-karl View Post
    Dependency problems. Does this mean the linux-image-extra- packages need to be removed first?

    Code:
    :~$ sudo dpkg --purge linux-image-3.13.0-39-generic linux-image-3.13.0-40-generic linux-image-3.13.0-43-generic linux-image-3.13.0-46-generic linux-image-3.13.0-48-generic linux-image-3.13.0-49-generic
    dpkg: dependency problems prevent removal of linux-image-3.13.0-39-generic:
     linux-image-extra-3.13.0-39-generic depends on linux-image-3.13.0-39-generic.
    
    dpkg: error processing package linux-image-3.13.0-39-generic (--purge):
     dependency problems - not removing
    dpkg: dependency problems prevent removal of linux-image-3.13.0-40-generic:
     linux-image-extra-3.13.0-40-generic depends on linux-image-3.13.0-40-generic.
    
    dpkg: error processing package linux-image-3.13.0-40-generic (--purge):
     dependency problems - not removing
    dpkg: dependency problems prevent removal of linux-image-3.13.0-43-generic:
     linux-image-extra-3.13.0-43-generic depends on linux-image-3.13.0-43-generic.
    
    dpkg: error processing package linux-image-3.13.0-43-generic (--purge):
     dependency problems - not removing
    dpkg: dependency problems prevent removal of linux-image-3.13.0-46-generic:
     linux-image-extra-3.13.0-46-generic depends on linux-image-3.13.0-46-generic.
    
    dpkg: error processing package linux-image-3.13.0-46-generic (--purge):
     dependency problems - not removing
    dpkg: dependency problems prevent removal of linux-image-3.13.0-48-generic:
     linux-image-extra-3.13.0-48-generic depends on linux-image-3.13.0-48-generic.
    
    dpkg: error processing package linux-image-3.13.0-48-generic (--purge):
     dependency problems - not removing
    dpkg: dependency problems prevent removal of linux-image-3.13.0-49-generic:
     linux-image-extra-3.13.0-49-generic depends on linux-image-3.13.0-49-generic.
    
    dpkg: error processing package linux-image-3.13.0-49-generic (--purge):
     dependency problems - not removing
    Errors were encountered while processing:
     linux-image-3.13.0-39-generic
     linux-image-3.13.0-40-generic
     linux-image-3.13.0-43-generic
     linux-image-3.13.0-46-generic
     linux-image-3.13.0-48-generic
     linux-image-3.13.0-49-generic
    Fixed in the earlier command.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •