Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 44

Thread: 16.04 - /boot full, can't purge, etc.

  1. #11
    Join Date
    Jul 2017
    Beans
    25

    Re: 16.04 - /boot full, can't purge, etc.

    Quote Originally Posted by Bashing-om View Post
    @bcschmerker; Thanks for the input.
    Something somewhere but I do not see a fallacy in my logic.

    5mall5nail5; Humm ....
    see how this runs.
    Code:
    sudo dpkg -P linux-image-extra-4.4.0-{62,64,66,70,71,72,75,78}-generic
    maybe yes
    I just let that one rip, and while it runs, I see lots of:

    Code:
    ...
    update-initramfs: Generating /boot/initrd.img-4.4.0-75-genericWARNING: missing /lib/modules/4.4.0-75-generic
    Ensure all necessary drivers are built into the linux image!
    depmod: ERROR: could not open directory /lib/modules/4.4.0-75-generic: No such file or directory
    depmod: FATAL: could not search modules: No such file or directory
    W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
    depmod: WARNING: could not open /var/tmp/mkinitramfs_uuNgDf/lib/modules/4.4.0-75-generic/modules.order: No such file or directory
    depmod: WARNING: could not open /var/tmp/mkinitramfs_uuNgDf/lib/modules/4.4.0-75-generic/modules.builtin: No such file or directory
    run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-75-generic /boot/vmlinuz-4.4.0-75-generic
    run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-75-generic /boot/vmlinuz-4.4.0-75-generic
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-75-generic /boot/vmlinuz-4.4.0-75-generic
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-4.4.0-83-generic
    Found linux image: /boot/vmlinuz-4.4.0-81-generic
    Found linux image: /boot/vmlinuz-4.4.0-79-generic
    Found initrd image: /boot/initrd.img-4.4.0-79-generic
    done
    Purging configuration files for linux-image-extra-4.4.0-75-generic (4.4.0-75.96) ...
    Removing linux-image-extra-4.4.0-78-generic (4.4.0-78.99) ...
    depmod: FATAL: could not load /boot/System.map-4.4.0-78-generic: No such file or directory
    run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-78-generic /boot/vmlinuz-4.4.0-78-generic
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-78-generic /boot/vmlinuz-4.4.0-78-generic
    update-initramfs: Generating /boot/initrd.img-4.4.0-78-generic
    WARNING: missing /lib/modules/4.4.0-78-generic
    Ensure all necessary drivers are built into the linux image!
    depmod: ERROR: could not open directory /lib/modules/4.4.0-78-generic: No such file or directory
    depmod: FATAL: could not search modules: No such file or directory
    W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
    depmod: WARNING: could not open /var/tmp/mkinitramfs_oDWIah/lib/modules/4.4.0-78-generic/modules.order: No such file or directory
    depmod: WARNING: could not open /var/tmp/mkinitramfs_oDWIah/lib/modules/4.4.0-78-generic/modules.builtin: No such file or directory
    run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-78-generic /boot/vmlinuz-4.4.0-78-generic
    run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-78-generic /boot/vmlinuz-4.4.0-78-generic
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-78-generic /boot/vmlinuz-4.4.0-78-generic
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-4.4.0-83-generic
    Found linux image: /boot/vmlinuz-4.4.0-81-generic
    Found linux image: /boot/vmlinuz-4.4.0-79-generic
    Found initrd image: /boot/initrd.img-4.4.0-79-generic
    done
    Purging configuration files for linux-image-extra-4.4.0-78-generic (4.4.0-78.99) ...
    ~$

  2. #12
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: 16.04 - /boot full, can't purge, etc.

    5mall5nail5; Hummm ..

    dpkg just not happy, huh .

    Let's get rid of some cruft:
    Code:
    dpkg -l | awk '/^rc/{print $2}' | xargs sudo dpkg -P
    where we purge all the packages marked 'rc' ( removed but config files remain) .

    and now see if we can see why dpkg is so unhappy.
    Show:
    Code:
    ls -al /usr/src/
    ls -al /lib/modules/
    ls -al /boot/
    dpkg -l | grep linux-
    ls -al /vmlinuz* /initrd.img*
    we try and put the round peg
    in the round hole
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #13
    Join Date
    Jul 2017
    Beans
    25

    Re: 16.04 - /boot full, can't purge, etc.

    Quote Originally Posted by Bashing-om View Post
    5mall5nail5; Hummm ..

    dpkg just not happy, huh .

    Let's get rid of some cruft:
    Code:
    dpkg -l | awk '/^rc/{print $2}' | xargs sudo dpkg -P
    where we purge all the packages marked 'rc' ( removed but config files remain) .
    Alrighty, here we go:

    Code:
    $ dpkg -l | awk '/^rc/{print $2}' | xargs sudo dpkg -P(Reading database ... 159348 files and directories currently installed.)
    Removing linux-image-4.4.0-21-generic (4.4.0-21.37) ...
    Purging configuration files for linux-image-4.4.0-21-generic (4.4.0-21.37) ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
    Removing linux-image-4.4.0-45-generic (4.4.0-45.66) ...
    Purging configuration files for linux-image-4.4.0-45-generic (4.4.0-45.66) ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
    Removing linux-image-4.4.0-47-generic (4.4.0-47.68) ...
    Purging configuration files for linux-image-4.4.0-47-generic (4.4.0-47.68) ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-47-generic /boot/vmlinuz-4.4.0-47-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-47-generic /boot/vmlinuz-4.4.0-47-generic
    Removing linux-image-4.4.0-51-generic (4.4.0-51.72) ...
    Purging configuration files for linux-image-4.4.0-51-generic (4.4.0-51.72) ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-51-generic /boot/vmlinuz-4.4.0-51-generic
    Removing linux-image-4.4.0-53-generic (4.4.0-53.74) ...
    Purging configuration files for linux-image-4.4.0-53-generic (4.4.0-53.74) ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
    Removing linux-image-4.4.0-57-generic (4.4.0-57.78) ...
    Purging configuration files for linux-image-4.4.0-57-generic (4.4.0-57.78) ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
    Removing linux-image-4.4.0-59-generic (4.4.0-59.80) ...
    Purging configuration files for linux-image-4.4.0-59-generic (4.4.0-59.80) ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
    Removing linux-image-4.4.0-63-generic (4.4.0-63.84) ...
    Purging configuration files for linux-image-4.4.0-63-generic (4.4.0-63.84) ...
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-63-generic /boot/vmlinuz-4.4.0-63-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-63-generic /boot/vmlinuz-4.4.0-63-generic
    Removing linux-image-extra-4.4.0-21-generic (4.4.0-21.37) ...
    Purging configuration files for linux-image-extra-4.4.0-21-generic (4.4.0-21.37) ...
    Removing linux-image-extra-4.4.0-45-generic (4.4.0-45.66) ...
    Purging configuration files for linux-image-extra-4.4.0-45-generic (4.4.0-45.66) ...
    Removing linux-image-extra-4.4.0-47-generic (4.4.0-47.68) ...
    Purging configuration files for linux-image-extra-4.4.0-47-generic (4.4.0-47.68) ...
    Removing linux-image-extra-4.4.0-51-generic (4.4.0-51.72) ...
    Purging configuration files for linux-image-extra-4.4.0-51-generic (4.4.0-51.72) ...
    Removing linux-image-extra-4.4.0-53-generic (4.4.0-53.74) ...
    Purging configuration files for linux-image-extra-4.4.0-53-generic (4.4.0-53.74) ...
    Removing linux-image-extra-4.4.0-57-generic (4.4.0-57.78) ...
    Purging configuration files for linux-image-extra-4.4.0-57-generic (4.4.0-57.78) ...
    Removing linux-image-extra-4.4.0-59-generic (4.4.0-59.80) ...
    Purging configuration files for linux-image-extra-4.4.0-59-generic (4.4.0-59.80) ...
    Removing linux-image-extra-4.4.0-63-generic (4.4.0-63.84) ...
    Purging configuration files for linux-image-extra-4.4.0-63-generic (4.4.0-63.84) ...


    Quote Originally Posted by Bashing-om View Post
    and now see if we can see why dpkg is so unhappy.
    Show:
    Code:
    ls -al /usr/src/
    ls -al /lib/modules/
    ls -al /boot/
    dpkg -l | grep linux-
    ls -al /vmlinuz* /initrd.img*
    Code:
    $ ls -al /usr/src/total 40
    drwxr-xr-x 10 root root 4096 Aug 15 21:43 .
    drwxr-xr-x 10 root root 4096 Apr 27  2016 ..
    drwxr-xr-x 27 root root 4096 Jun  7 05:41 linux-headers-4.4.0-79
    drwxr-xr-x  7 root root 4096 Jun  7 05:41 linux-headers-4.4.0-79-generic
    drwxr-xr-x 27 root root 4096 Jun 20 16:45 linux-headers-4.4.0-81
    drwxr-xr-x  7 root root 4096 Jun 20 16:45 linux-headers-4.4.0-81-generic
    drwxr-xr-x 27 root root 4096 Jun 29 16:16 linux-headers-4.4.0-83
    drwxr-xr-x  7 root root 4096 Jun 29 16:16 linux-headers-4.4.0-83-generic
    drwxr-xr-x 27 root root 4096 Jul 25 04:39 linux-headers-4.4.0-87
    drwxr-xr-x  7 root root 4096 Jul 25 04:39 linux-headers-4.4.0-87-generic
    
    $ ls -al /lib/modules/
    total 24
    drwxr-xr-x  6 root root 4096 Aug 15 21:43 .
    drwxr-xr-x 22 root root 4096 Mar  4 14:35 ..
    drwxr-xr-x  5 root root 4096 Jul 22 14:19 4.4.0-79-generic
    drwxr-xr-x  5 root root 4096 Jul 22 14:19 4.4.0-81-generic
    drwxr-xr-x  5 root root 4096 Jul 22 14:19 4.4.0-83-generic
    drwxr-xr-x  3 root root 4096 Jul 25 04:39 4.4.0-87-generic
    
    $ ls -al /boot/
    total 136079
    drwxr-xr-x  4 root root     4096 Aug 15 23:26 .
    drwxr-xr-x 24 root root     4096 Jul 25 04:39 ..
    -rw-r--r--  1 root root  1246311 May 17 18:09 abi-4.4.0-79-generic
    -rw-r--r--  1 root root  1246311 Jun 14 08:24 abi-4.4.0-81-generic
    -rw-r--r--  1 root root  1246511 Jun 26 15:45 abi-4.4.0-83-generic
    -rw-r--r--  1 root root   190356 May 17 18:09 config-4.4.0-79-generic
    -rw-r--r--  1 root root   190356 Jun 14 08:24 config-4.4.0-81-generic
    -rw-r--r--  1 root root   190356 Jun 26 15:45 config-4.4.0-83-generic
    drwxr-xr-x  5 root root     1024 Aug 15 23:26 grub
    -rw-r--r--  1 root root  7996886 Aug 15 23:25 initrd.img-4.4.0-62-generic
    -rw-r--r--  1 root root  7997939 Aug 15 23:25 initrd.img-4.4.0-64-generic
    -rw-r--r--  1 root root  7997927 Aug 15 23:25 initrd.img-4.4.0-66-generic
    -rw-r--r--  1 root root  7998192 Aug 15 23:25 initrd.img-4.4.0-70-generic
    -rw-r--r--  1 root root  7998060 Aug 15 23:25 initrd.img-4.4.0-71-generic
    -rw-r--r--  1 root root  7997814 Aug 15 23:25 initrd.img-4.4.0-72-generic
    -rw-r--r--  1 root root  7997962 Aug 15 23:26 initrd.img-4.4.0-75-generic
    -rw-r--r--  1 root root  7997926 Aug 15 23:26 initrd.img-4.4.0-78-generic
    -rw-r--r--  1 root root 37522325 Jun  7 05:41 initrd.img-4.4.0-79-generic
    drwx------  2 root root    12288 Apr 27  2016 lost+found
    -rw-------  1 root root  3883279 May 17 18:09 System.map-4.4.0-79-generic
    -rw-------  1 root root  3883391 Jun 14 08:24 System.map-4.4.0-81-generic
    -rw-------  1 root root  3883887 Jun 26 15:45 System.map-4.4.0-83-generic
    -rw-------  1 root root  7091696 May 17 18:09 vmlinuz-4.4.0-79-generic
    -rw-------  1 root root  7092784 Jun 14 08:24 vmlinuz-4.4.0-81-generic
    -rw-------  1 root root  7092720 Jun 26 15:45 vmlinuz-4.4.0-83-generic
    
    $ dpkg -l | grep linux-
    ii  linux-base                         4.0ubuntu1                                 all          Linux image base package
    iF  linux-firmware                     1.157.11                                   all          Firmware for Linux kernel drivers
    iU  linux-generic                      4.4.0.87.93                                amd64        Complete Generic Linux kernel and headers
    ii  linux-headers-4.4.0-79             4.4.0-79.100                               all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-79-generic     4.4.0-79.100                               amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-81             4.4.0-81.104                               all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-81-generic     4.4.0-81.104                               amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-83             4.4.0-83.106                               all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-83-generic     4.4.0-83.106                               amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    iU  linux-headers-4.4.0-87             4.4.0-87.110                               all          Header files related to Linux kernel version 4.4.0
    iU  linux-headers-4.4.0-87-generic     4.4.0-87.110                               amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    iU  linux-headers-generic              4.4.0.87.93                                amd64        Generic Linux kernel headers
    ii  linux-image-4.4.0-79-generic       4.4.0-79.100                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    iF  linux-image-4.4.0-81-generic       4.4.0-81.104                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    iF  linux-image-4.4.0-83-generic       4.4.0-83.106                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    iF  linux-image-extra-4.4.0-79-generic 4.4.0-79.100                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-extra-4.4.0-81-generic 4.4.0-81.104                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-extra-4.4.0-83-generic 4.4.0-83.106                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-extra-4.4.0-87-generic 4.4.0-87.110                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-generic                4.4.0.87.93                                amd64        Generic Linux kernel image
    
    $ sudo ls -al /vmlinuz* /initrd.img*
    ls: cannot access '/initrd.img*': No such file or directory
    lrwxrwxrwx 1 root root 29 Jul 22 14:19 /vmlinuz -> boot/vmlinuz-4.4.0-81-generic
    lrwxrwxrwx 1 root root 29 Jul 22 14:19 /vmlinuz.old -> boot/vmlinuz-4.4.0-83-generic

    Whew... that's what I got

  4. #14
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: 16.04 - /boot full, can't purge, etc.

    5mall5nail5; Well - not

    We already know that the package manager is broke - we are going to break it even more .
    This is not a good thing to ever ever do. just as is I see no other path to a reasonabe resolution.
    When we get done we try and have the package manager heal it's self .

    I do not know why the left overs, broke package manager (??) - But let's try and see if dpkg has enough to work with.
    IF will work at all; else we get real dirty and do the work manually.
    Code:
    sudo dpkg -P initrd.img-4.4.0-{62,64,66,70,71,72,75,78}-generic
    Still in the process of cleanup, we have a long road ahead of us to re-build and make the kernel happy.

    time and effort
    we can do that
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  5. #15
    Join Date
    Jul 2017
    Beans
    25

    Re: 16.04 - /boot full, can't purge, etc.

    Thanks Bashing-om:

    Code:
    $ sudo dpkg -P initrd.img-4.4.0-{62,64,66,70,71,72,75,78                                                              }-genericdpkg: warning: ignoring request to remove initrd.img-4.4.0-62-generic which isn'                                                              t installed
    dpkg: warning: ignoring request to remove initrd.img-4.4.0-64-generic which isn'                                                              t installed
    dpkg: warning: ignoring request to remove initrd.img-4.4.0-66-generic which isn'                                                              t installed
    dpkg: warning: ignoring request to remove initrd.img-4.4.0-70-generic which isn'                                                              t installed
    dpkg: warning: ignoring request to remove initrd.img-4.4.0-71-generic which isn'                                                              t installed
    dpkg: warning: ignoring request to remove initrd.img-4.4.0-72-generic which isn'                                                              t installed
    dpkg: warning: ignoring request to remove initrd.img-4.4.0-75-generic which isn'                                                              t installed
    dpkg: warning: ignoring request to remove initrd.img-4.4.0-78-generic which isn'                                                              t installed

  6. #16
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: 16.04 - /boot full, can't purge, etc.

    5mall5nail5; welp;

    Not totally unexpected result .

    we do it the dirty dirty way .
    Code:
    sudo rm /boot/initrd.img-4.4.0-62-generic
    sudo rm /boot/initrd.img-4.4.0-64-generic
    sudo rm /boot/initrd.img-4.4.0-66-generic
    sudo rm /boot/initrd.img-4.4.0-70-generic
    sudo rm /boot/initrd.img-4.4.0-71-generic
    sudo rm /boot/initrd.img-4.4.0-72-generic
    sudo rm /boot/initrd.img-4.4.0-75-generic
    sudo rm /boot/initrd.img-4.4.0-78-generic
    now show me :
    Code:
    sudo apt -f install
    sudo dpkg -C
    see if we are now ready to start the re-build process and fix the package manager .

    there is a way that seems right
    but leads to a broken system
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  7. #17
    Join Date
    Jul 2017
    Beans
    25

    Re: 16.04 - /boot full, can't purge, etc.

    Quote Originally Posted by Bashing-om View Post
    5mall5nail5; welp;

    Not totally unexpected result .

    we do it the dirty dirty way .
    Code:
    sudo rm /boot/initrd.img-4.4.0-62-generic
    sudo rm /boot/initrd.img-4.4.0-64-generic
    sudo rm /boot/initrd.img-4.4.0-66-generic
    sudo rm /boot/initrd.img-4.4.0-70-generic
    sudo rm /boot/initrd.img-4.4.0-71-generic
    sudo rm /boot/initrd.img-4.4.0-72-generic
    sudo rm /boot/initrd.img-4.4.0-75-generic
    sudo rm /boot/initrd.img-4.4.0-78-generic
    now show me :
    Code:
    sudo apt -f install
    sudo dpkg -C
    see if we are now ready to start the re-build process and fix the package manager .
    there is a way that seems right
    but leads to a broken system
    Onward:

    Code:
    ~$ sudo rm /boot/initrd.img-4.4.0-62-generic$ sudo rm /boot/initrd.img-4.4.0-64-generic
    $ sudo rm /boot/initrd.img-4.4.0-66-generic
    $ sudo rm /boot/initrd.img-4.4.0-70-generic
    $ sudo rm /boot/initrd.img-4.4.0-71-generic
    $ sudo rm /boot/initrd.img-4.4.0-72-generic
    $ sudo rm /boot/initrd.img-4.4.0-75-generic
    $ sudo rm /boot/initrd.img-4.4.0-78-generic
    $ sudo apt -f install
    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:
      linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-image-4.4.0-87-generic linux-image-extra-4.4.0-87-generic
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
      linux-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-headers-generic linux-image-4.4.0-87-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-92-generic linux-image-generic
    Suggested packages:
      fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
    Recommended packages:
      thermald
    The following NEW packages will be installed:
      linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-image-4.4.0-87-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-92-generic
    The following packages will be upgraded:
      linux-generic linux-headers-generic linux-image-generic
    3 upgraded, 5 newly installed, 0 to remove and 80 not upgraded.
    12 not fully installed or removed.
    Need to get 68.5 MB/90.5 MB of archives.
    After this operation, 364 MB of additional disk space will be used.
    Do you want to continue? [Y/n]
    Then

    Code:
    Do you want to continue? [Y/n] y
    Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-4.4.0-92-generic amd64 4.4.0-92.115 [21.9 MB]
    Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-extra-4.4.0-92-generic amd64 4.4.0-92.115 [35.9 MB]
    Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-generic amd64 4.4.0.92.97 [1,790 B]
    Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-generic amd64 4.4.0.92.97 [2,294 B]
    Get:5 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-92 all 4.4.0-92.115 [9,876 kB]
    Get:6 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-92-generic amd64 4.4.0-92.115 [786 kB]
    Get:7 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-generic amd64 4.4.0.92.97 [2,268 B]
    Fetched 68.5 MB in 6s (10.4 MB/s)
    Selecting previously unselected package linux-image-4.4.0-92-generic.
    (Reading database ... 159348 files and directories currently installed.)
    Preparing to unpack .../linux-image-4.4.0-92-generic_4.4.0-92.115_amd64.deb ...
    Done.
    Unpacking linux-image-4.4.0-92-generic (4.4.0-92.115) ...
    Selecting previously unselected package linux-image-extra-4.4.0-92-generic.
    Preparing to unpack .../linux-image-extra-4.4.0-92-generic_4.4.0-92.115_amd64.deb ...
    Unpacking linux-image-extra-4.4.0-92-generic (4.4.0-92.115) ...
    Yadda yadda...

    Then tons of errors about previous kernels (to be expected?)
    Code:
    Ensure all necessary drivers are built into the linux image!
    depmod: ERROR: could not open directory /lib/modules/4.4.0-64-generic: No such file or directory
    depmod: FATAL: could not search modules: No such file or directory
    W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
    depmod: WARNING: could not open /var/tmp/mkinitramfs_hNgusW/lib/modules/4.4.0-64-generic/modules.order: No such file or directory
    depmod: WARNING: could not open /var/tmp/mkinitramfs_hNgusW/lib/modules/4.4.0-64-generic/modules.builtin: No such file or directory
    update-initramfs: Generating /boot/initrd.img-4.4.0-62-generic
    WARNING: missing /lib/modules/4.4.0-62-generic
    Ensure all necessary drivers are built into the linux image!
    depmod: ERROR: could not open directory /lib/modules/4.4.0-62-generic: No such file or directory
    depmod: FATAL: could not search modules: No such file or directory
    W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
    depmod: WARNING: could not open /var/tmp/mkinitramfs_Q6Z8EF/lib/modules/4.4.0-62-generic/modules.order: No such file or directory
    depmod: WARNING: could not open /var/tmp/mkinitramfs_Q6Z8EF/lib/modules/4.4.0-62-generic/modules.builtin: No such file or directory
    Then a whole buncha this

    Code:
    Setting up linux-image-extra-4.4.0-87-generic (4.4.0-87.110) ...
    run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
    update-initramfs: Generating /boot/initrd.img-4.4.0-87-generic
    W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
    run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
    run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-4.4.0-92-generic
    Found initrd image: /boot/initrd.img-4.4.0-92-generic
    Found linux image: /boot/vmlinuz-4.4.0-87-generic
    Found initrd image: /boot/initrd.img-4.4.0-87-generic
    Found linux image: /boot/vmlinuz-4.4.0-83-generic
    Found initrd image: /boot/initrd.img-4.4.0-83-generic
    Found linux image: /boot/vmlinuz-4.4.0-81-generic
    Found initrd image: /boot/initrd.img-4.4.0-81-generic
    Found linux image: /boot/vmlinuz-4.4.0-79-generic
    Found initrd image: /boot/initrd.img-4.4.0-79-generic
    done
    and then

    Code:
    $ sudo dpkg -C
    $
    I don't want to get ahead of myself but...

    Code:
    $ sudo apt-get upgradeReading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages were automatically installed and are no longer required:
      linux-headers-4.4.0-81 linux-headers-4.4.0-81-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic linux-image-4.4.0-81-generic linux-image-4.4.0-83-generic linux-image-extra-4.4.0-81-generic
      linux-image-extra-4.4.0-83-generic snap-confine
    Use 'sudo apt autoremove' to remove them.
    The following packages have been kept back:
      python-tornado salt-common salt-minion
    The following packages will be upgraded:
      apt apt-transport-https apt-utils base-files bsdutils btrfs-tools cloud-initramfs-copymods cloud-initramfs-dyn-netconf coreutils dnsmasq-base dpkg git git-man grub-common grub-legacy-ec2 grub-pc grub-pc-bin
      grub2-common init init-system-helpers iproute2 isc-dhcp-client isc-dhcp-common kmod less libapt-inst2.0 libapt-pkg5.0 libblkid1 libdrm2 libfdisk1 libgd3 libkmod2 liblxc1 libmount1 libpam-systemd libpci3
      libsmartcols1 libssl1.0.0 libsystemd0 libudev1 libuuid1 logrotate lxc-common lxcfs lxd lxd-client makedev mdadm mount open-iscsi openssh-client openssh-server openssh-sftp-server openssl overlayroot pciutils
      python3-distupgrade python3-software-properties python3-update-manager snap-confine snapd software-properties-common sosreport sudo systemd systemd-sysv ubuntu-core-launcher ubuntu-release-upgrader-core udev
      unattended-upgrades update-manager-core update-notifier-common util-linux uuid-runtime vlan wget zlib1g
    77 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    Need to get 42.0 MB of archives.
    After this operation, 11.1 MB of additional disk space will be used.
    Do you want to continue? [Y/n] n
    Looking a lot better...!
    Last edited by 5mall5nail5; August 17th, 2017 at 05:07 AM.

  8. #18
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: 16.04 - /boot full, can't purge, etc.

    5mall5nail5; Well;

    Good and BAD .
    I have no idea of what is calling the 62 and 64 kernels . Some driver somewhere ? May have to re-install them and then see what we can do .
    Of high concern is :
    Code:
    W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
    what raid level are you using ?

    for now let's get a new kernel status.
    show a new :
    Code:
    dpkg -l | grep linux-
    And make sure we have the overhead to install old kernels:
    Code:
    df -h
    still, just a mighty fine mess
    we have got ourselves into
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  9. #19
    Join Date
    Jul 2017
    Beans
    25

    Re: 16.04 - /boot full, can't purge, etc.

    No worries Bashing-om, this is a VM, there is no mdadm configured

    Code:
    $ dpkg -l | grep linux-ii  linux-base                         4.0ubuntu1                                 all          Linux image base package
    ii  linux-firmware                     1.157.11                                   all          Firmware for Linux kernel drivers
    ii  linux-generic                      4.4.0.92.97                                amd64        Complete Generic Linux kernel and headers
    ii  linux-headers-4.4.0-79             4.4.0-79.100                               all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-79-generic     4.4.0-79.100                               amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-81             4.4.0-81.104                               all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-81-generic     4.4.0-81.104                               amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-83             4.4.0-83.106                               all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-83-generic     4.4.0-83.106                               amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-87             4.4.0-87.110                               all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-87-generic     4.4.0-87.110                               amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-92             4.4.0-92.115                               all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-92-generic     4.4.0-92.115                               amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-generic              4.4.0.92.97                                amd64        Generic Linux kernel headers
    ii  linux-image-4.4.0-79-generic       4.4.0-79.100                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-81-generic       4.4.0-81.104                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-83-generic       4.4.0-83.106                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-87-generic       4.4.0-87.110                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-92-generic       4.4.0-92.115                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-79-generic 4.4.0-79.100                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-81-generic 4.4.0-81.104                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-83-generic 4.4.0-83.106                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-87-generic 4.4.0-87.110                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-92-generic 4.4.0-92.115                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-generic                4.4.0.92.97                                amd64        Generic Linux kernel image
    Code:
    $ df -hFilesystem                             Size  Used Avail Use% Mounted on
    udev                                   477M     0  477M   0% /dev
    tmpfs                                  100M   11M   89M  11% /run
    /dev/mapper/ubuntu--template--vg-root   15G  6.5G  7.5G  47% /
    tmpfs                                  497M   16K  497M   1% /dev/shm
    tmpfs                                  5.0M     0  5.0M   0% /run/lock
    tmpfs                                  497M     0  497M   0% /sys/fs/cgroup
    /dev/sda1                              472M  312M  137M  70% /boot
    tmpfs                                  100M     0  100M   0% /run/user/1000

  10. #20
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: 16.04 - /boot full, can't purge, etc.

    After you have fully updated & housecleaned current kernels with dpkg or synaptic, you need to clean up the left overs.
    Places to check
    Did you also check /var/cache/apt/archives? You may have the old .deb's taking up space.
    /var/cache/apt/archives
    kernel house clean
    /usr/src/*
    http://askubuntu.com/questions/30146...an-i-stop-this
    in /boot by version: abi, config, initrd.img, vmlinuz

    If you have the old kernels & other bits in all those places, it can possibly be easier just to go into synaptic, reinstall each kernel to have it all there & in dpkg & then purge to totally houseclean.

    sudo apt-get install synaptic
    In synaptic search for linux-image to choose to delete old ones
    Using synaptic
    http://ubuntuforums.org/showthread.php?t=1283521
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 2 of 5 FirstFirst 1234 ... 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
  •