/boot full

Asked by Sushant Potdar on 2019-03-21

Error Broken count > 0.
Trying to upgrade my software but /boot is full and it needs an additional 195 MB space.
Tried sudo apt autoremove but it didn't work.

I would like to clear and upgrade my software so that I can ultimately install Git on my laptop.

I tried solutions from this https://answers.launchpad.net/ubuntu/+source/software-center/+question/478121 but my problem seems to be different from this.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2019-03-22
Last query:
2019-03-22
Last reply:
2019-03-22

What is the output of:

uname -a; lsb_release -a; dpkg -l | grep linux-image

Thanks

Martin Leo (martinleo) said : #2

First you have to Try Automatic Fixation

Type the following below given command in the terminal.

sudo apt --fix-broken install

And with this the Issue could be Automatically Fixed!
But if still Not Fixed Try with the Manual Packages Removing…

Manfred Hampl (m-hampl) said : #3

Please also provide the output of the commands

df -h | grep '^/dev'
ls -l /boot
sudo dpkg --audit

Sushant Potdar (sdpotdar) said : #4

sushant@black-mamba:~$ df -h | grep '^/dev'
/dev/mapper/ubuntu--gnome--vg-root 684G 386G 264G 60% /
/dev/sda1 472M 471M 0 100% /boot

sushant@black-mamba:~$ ls -l /boot
total 472912
-rw-r--r-- 1 root root 1501359 Feb 16 2018 abi-4.13.0-36-generic
-rw-r--r-- 1 root root 1501474 Mar 14 2018 abi-4.13.0-38-generic
-rw-r--r-- 1 root root 1501416 Apr 5 2018 abi-4.13.0-39-generic
-rw-r--r-- 1 root root 1501416 May 3 2018 abi-4.13.0-41-generic
-rw-r--r-- 1 root root 1501659 May 17 2018 abi-4.13.0-43-generic
-rw-r--r-- 1 root root 1501528 May 30 2018 abi-4.13.0-45-generic
-rw-r--r-- 1 root root 1537161 Jul 26 2018 abi-4.15.0-30-generic
-rw-r--r-- 1 root root 1537455 Aug 10 2018 abi-4.15.0-32-generic
-rw-r--r-- 1 root root 1537610 Aug 28 2018 abi-4.15.0-34-generic
-rw-r--r-- 1 root root 213220 Feb 16 2018 config-4.13.0-36-generic
-rw-r--r-- 1 root root 213220 Mar 14 2018 config-4.13.0-38-generic
-rw-r--r-- 1 root root 213220 Apr 5 2018 config-4.13.0-39-generic
-rw-r--r-- 1 root root 213220 May 3 2018 config-4.13.0-41-generic
-rw-r--r-- 1 root root 213220 May 17 2018 config-4.13.0-43-generic
-rw-r--r-- 1 root root 213220 May 30 2018 config-4.13.0-45-generic
-rw-r--r-- 1 root root 216815 Jul 26 2018 config-4.15.0-30-generic
-rw-r--r-- 1 root root 216868 Aug 10 2018 config-4.15.0-32-generic
-rw-r--r-- 1 root root 216913 Aug 28 2018 config-4.15.0-34-generic
drwxr-xr-x 5 root root 1024 Aug 14 2018 grub
-rw-r--r-- 1 root root 51008498 Jun 8 2018 initrd.img-4.13.0-36-generic
-rw-r--r-- 1 root root 51013499 Jun 8 2018 initrd.img-4.13.0-38-generic
-rw-r--r-- 1 root root 51009500 Jun 8 2018 initrd.img-4.13.0-39-generic
-rw-r--r-- 1 root root 51009920 Jun 8 2018 initrd.img-4.13.0-41-generic
-rw-r--r-- 1 root root 51008215 Jun 8 2018 initrd.img-4.13.0-43-generic
-rw-r--r-- 1 root root 51007279 Jun 23 2018 initrd.img-4.13.0-45-generic
-rw-r--r-- 1 root root 54106939 Aug 14 2018 initrd.img-4.15.0-30-generic
drwx------ 2 root root 12288 Apr 3 2018 lost+found
-rw-r--r-- 1 root root 182704 Jan 28 2016 memtest86+.bin
-rw-r--r-- 1 root root 184380 Jan 28 2016 memtest86+.elf
-rw-r--r-- 1 root root 184840 Jan 28 2016 memtest86+_multiboot.bin
-rw-r--r-- 1 root root 2850 Feb 16 2018 retpoline-4.13.0-36-generic
-rw-r--r-- 1 root root 2850 Mar 14 2018 retpoline-4.13.0-38-generic
-rw-r--r-- 1 root root 255 Apr 5 2018 retpoline-4.13.0-39-generic
-rw-r--r-- 1 root root 255 May 3 2018 retpoline-4.13.0-41-generic
-rw-r--r-- 1 root root 255 May 17 2018 retpoline-4.13.0-43-generic
-rw-r--r-- 1 root root 255 May 30 2018 retpoline-4.13.0-45-generic
-rw-r--r-- 1 root root 0 Jul 26 2018 retpoline-4.15.0-30-generic
-rw-r--r-- 1 root root 0 Aug 10 2018 retpoline-4.15.0-32-generic
-rw-r--r-- 1 root root 0 Aug 28 2018 retpoline-4.15.0-34-generic
-rw------- 1 root root 3879946 Feb 16 2018 System.map-4.13.0-36-generic
-rw------- 1 root root 3880619 Mar 14 2018 System.map-4.13.0-38-generic
-rw------- 1 root root 3882732 Apr 5 2018 System.map-4.13.0-39-generic
-rw------- 1 root root 3882700 May 3 2018 System.map-4.13.0-41-generic
-rw------- 1 root root 3884045 May 17 2018 System.map-4.13.0-43-generic
-rw------- 1 root root 3883942 May 30 2018 System.map-4.13.0-45-generic
-rw------- 1 root root 4039601 Jul 26 2018 System.map-4.15.0-30-generic
-rw------- 1 root root 4041510 Aug 10 2018 System.map-4.15.0-32-generic
-rw------- 1 root root 4043167 Aug 28 2018 System.map-4.15.0-34-generic
-rw-r--r-- 1 root root 7710912 Apr 3 2018 vmlinuz-4.13.0-36-generic
-rw------- 1 root root 7712208 Mar 14 2018 vmlinuz-4.13.0-38-generic
-rw------- 1 root root 7712016 Apr 5 2018 vmlinuz-4.13.0-39-generic
-rw------- 1 root root 7711664 May 3 2018 vmlinuz-4.13.0-41-generic
-rw------- 1 root root 7713296 May 17 2018 vmlinuz-4.13.0-43-generic
-rw------- 1 root root 7712560 May 30 2018 vmlinuz-4.13.0-45-generic
-rw------- 1 root root 8101272 Aug 6 2018 vmlinuz-4.15.0-30-generic
-rw------- 1 root root 8108696 Aug 14 2018 vmlinuz-4.15.0-32-generic
-rw------- 1 root root 8114136 Aug 29 2018 vmlinuz-4.15.0-34-generic

sushant@black-mamba:~$ sudo dpkg --audit
[sudo] password for sushant:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 linux-generic-hwe-16.04 Complete Generic Linux kernel and headers
 linux-image-generic-hwe-16.04 Generic Linux kernel image
 linux-modules-extra-4.15.0-36-generic Linux kernel extra modules for version 4
 linux-modules-extra-4.15.0-46-generic Linux kernel extra modules for version 4

The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 initramfs-tools generic modular initramfs generator (automation)
 linux-image-4.15.0-32-generic Signed kernel image generic
 linux-image-4.15.0-34-generic Signed kernel image generic

Sushant Potdar (sdpotdar) said : #5

sushant@black-mamba:~$ uname -a; lsb_release -a; dpkg -l | grep linux-image

Linux black-mamba 4.15.0-30-generic #32~16.04.1-Ubuntu SMP Thu Jul 26 20:25:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
ii linux-image-4.13.0-36-generic 4.13.0-36.40~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-38-generic 4.13.0-38.43~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-39-generic 4.13.0-39.44~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-41-generic 4.13.0-41.46~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-43-generic 4.13.0-43.48~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-45-generic 4.13.0-45.50~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.15.0-30-generic 4.15.0-30.32~16.04.1 amd64 Signed kernel image generic
iF linux-image-4.15.0-32-generic 4.15.0-32.35~16.04.1 amd64 Signed kernel image generic
iF linux-image-4.15.0-34-generic 4.15.0-34.37~16.04.1 amd64 Signed kernel image generic
ii linux-image-extra-4.13.0-36-generic 4.13.0-36.40~16.04.1 amd64 Linux kernel extra modules for version 4.13.0 on 64 bit x86 SMP
ii linux-image-extra-4.13.0-38-generic 4.13.0-38.43~16.04.1 amd64 Linux kernel extra modules for version 4.13.0 on 64 bit x86 SMP
ii linux-image-extra-4.13.0-39-generic 4.13.0-39.44~16.04.1 amd64 Linux kernel extra modules for version 4.13.0 on 64 bit x86 SMP
ii linux-image-extra-4.13.0-41-generic 4.13.0-41.46~16.04.1 amd64 Linux kernel extra modules for version 4.13.0 on 64 bit x86 SMP
ii linux-image-extra-4.13.0-43-generic 4.13.0-43.48~16.04.1 amd64 Linux kernel extra modules for version 4.13.0 on 64 bit x86 SMP
ii linux-image-extra-4.13.0-45-generic 4.13.0-45.50~16.04.1 amd64 Linux kernel extra modules for version 4.13.0 on 64 bit x86 SMP
iU linux-image-generic-hwe-16.04 4.15.0.46.67 amd64 Generic Linux kernel image

sudo apt-get --purge remove linux-image-4.13.0-36-generic
sudo apt-get --purge remove linux-image-4.13.0-38-generic
sudo apt-get --purge remove linux-image-4.13.0-39-generic
sudo apt-get --purge autoremove
sudo apt-get -f install

Should do it

Sushant Potdar (sdpotdar) said : #7

I don't think the above worked as my /boot is still full

sudo apt-get --purge remove linux-image-4.13.0-36-generic[sudo] password for sushant:
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-4.13.0-36-generic : Depends: linux-image-4.13.0-36-generic but it is not going to be installed
 linux-image-generic-hwe-16.04 : Depends: linux-image-4.15.0-46-generic but it is not going to be installed
 linux-modules-extra-4.15.0-36-generic : Depends: linux-image-4.15.0-36-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-36-generic but it is not going to be installed
 linux-modules-extra-4.15.0-46-generic : Depends: linux-image-4.15.0-46-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-46-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

sushant@black-mamba:~$ sudo apt-get --purge remove linux-image-4.13.0-38-generic
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-4.13.0-38-generic : Depends: linux-image-4.13.0-38-generic but it is not going to be installed
 linux-image-generic-hwe-16.04 : Depends: linux-image-4.15.0-46-generic but it is not going to be installed
 linux-modules-extra-4.15.0-36-generic : Depends: linux-image-4.15.0-36-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-36-generic but it is not going to be installed
 linux-modules-extra-4.15.0-46-generic : Depends: linux-image-4.15.0-46-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-46-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

sushant@black-mamba:~$ sudo apt-get --purge remove linux-image-4.13.0-39-generic
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-4.13.0-39-generic : Depends: linux-image-4.13.0-39-generic but it is not going to be installed
 linux-image-generic-hwe-16.04 : Depends: linux-image-4.15.0-46-generic but it is not going to be installed
 linux-modules-extra-4.15.0-36-generic : Depends: linux-image-4.15.0-36-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-36-generic but it is not going to be installed
 linux-modules-extra-4.15.0-46-generic : Depends: linux-image-4.15.0-46-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-46-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
sushant@black-mamba:~$ sudo apt-get --purge autoremove
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-generic-hwe-16.04 : Depends: linux-image-4.15.0-46-generic but it is not installed
 linux-modules-extra-4.15.0-36-generic : Depends: linux-image-4.15.0-36-generic but it is not installed or
                                                  linux-image-unsigned-4.15.0-36-generic but it is not installed
 linux-modules-extra-4.15.0-46-generic : Depends: linux-image-4.15.0-46-generic but it is not installed or
                                                  linux-image-unsigned-4.15.0-46-generic but it is not installed
E: Unmet dependencies. Try using -f.

sushant@black-mamba:~$ sudo apt-get -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:
  libasound2:i386 libfreetype6:i386 libpng12-0:i386 linux-headers-4.13.0-36
  linux-headers-4.13.0-36-generic linux-headers-4.13.0-38
  linux-headers-4.13.0-38-generic linux-headers-4.13.0-39
  linux-headers-4.13.0-39-generic linux-headers-4.13.0-41
  linux-headers-4.13.0-41-generic linux-headers-4.13.0-43
  linux-headers-4.13.0-43-generic linux-headers-4.13.0-45
  linux-headers-4.13.0-45-generic linux-headers-4.15.0-36
  linux-headers-4.15.0-36-generic linux-image-4.13.0-36-generic
  linux-image-4.13.0-38-generic linux-image-4.13.0-39-generic
  linux-image-4.13.0-41-generic linux-image-4.13.0-43-generic
  linux-image-4.13.0-45-generic linux-image-4.15.0-36-generic
  linux-image-extra-4.13.0-36-generic linux-image-extra-4.13.0-38-generic
  linux-image-extra-4.13.0-39-generic linux-image-extra-4.13.0-41-generic
  linux-image-extra-4.13.0-43-generic linux-image-extra-4.13.0-45-generic
  linux-modules-4.15.0-36-generic linux-modules-extra-4.15.0-30-generic
  linux-modules-extra-4.15.0-34-generic linux-modules-extra-4.15.0-36-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-4.15.0-36-generic linux-image-4.15.0-46-generic
  linux-modules-4.15.0-36-generic linux-modules-4.15.0-46-generic
Suggested packages:
  fdutils linux-hwe-tools
The following NEW packages will be installed:
  linux-image-4.15.0-36-generic linux-image-4.15.0-46-generic
  linux-modules-4.15.0-36-generic linux-modules-4.15.0-46-generic
0 upgraded, 4 newly installed, 0 to remove and 379 not upgraded.
7 not fully installed or removed.
Need to get 0 B/41.6 MB of archives.
After this operation, 147 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 546584 files and directories currently installed.)
Preparing to unpack .../linux-modules-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb ...
Unpacking linux-modules-4.15.0-46-generic (4.15.0-46.49~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-4.15.0-46-generic' to '/boot/System.map-4.15.0-46-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)
Preparing to unpack .../linux-image-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-46-generic (4.15.0-46.49~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-46-generic' to '/boot/vmlinuz-4.15.0-46-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)
Preparing to unpack .../linux-modules-4.15.0-36-generic_4.15.0-36.39~16.04.1_amd64.deb ...
Unpacking linux-modules-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-4.15.0-36-generic_4.15.0-36.39~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/abi-4.15.0-36-generic' to '/boot/abi-4.15.0-36-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)
Preparing to unpack .../linux-image-4.15.0-36-generic_4.15.0-36.39~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-36-generic_4.15.0-36.39~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-36-generic' to '/boot/vmlinuz-4.15.0-36-generic.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-modules-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-modules-4.15.0-36-generic_4.15.0-36.39~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.15.0-36-generic_4.15.0-36.39~16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

sushant@black-mamba:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 1942136 0 1942136 0% /dev
tmpfs 394344 11380 382964 3% /run
/dev/mapper/ubuntu--gnome--vg-root 716379592 404074940 275891624 60% /
tmpfs 1971708 24664 1947044 2% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 1971708 0 1971708 0% /sys/fs/cgroup
/dev/sda1 482922 482197 0 100% /boot
tmpfs 394344 16 394328 1% /run/user/121
tmpfs 394344 24 394320 1% /run/user/1000

Best Manfred Hampl (m-hampl) said : #8

Try the following commands:

sudo rm /boot/initrd.img-4.13.0-36-generic
sudo rm /boot/initrd.img-4.13.0-38-generic
sudo rm /boot/initrd.img-4.13.0-39-generic

sudo dpkg --purge linux-image-extra-4.13.0-36-generic linux-image-4.13.0-36-generic
sudo dpkg --purge linux-image-extra-4.13.0-38-generic linux-image-4.13.0-38-generic
sudo dpkg --purge linux-image-extra-4.13.0-39-generic linux-image-4.13.0-39-generic

sudo apt-get -f install
sudo apt-get --purge autoremove

and report the results.

Sushant Potdar (sdpotdar) said : #9

sushant@black-mamba:~$ sudo rm /boot/initrd.img-4.13.0-36-generic
[sudo] password for sushant:
Sorry, try again.
[sudo] password for sushant:
sushant@black-mamba:~$ sudo rm /boot/initrd.img-4.13.0-36-generic
rm: cannot remove '/boot/initrd.img-4.13.0-36-generic': No such file or directory
sushant@black-mamba:~$ sudo rm /boot/initrd.img-4.13.0-38-generic
sushant@black-mamba:~$ sudo rm /boot/initrd.img-4.13.0-38-generic
rm: cannot remove '/boot/initrd.img-4.13.0-38-generic': No such file or directory
sushant@black-mamba:~$ sudo rm /boot/initrd.img-4.13.0-39-generic
sushant@black-mamba:~$ sudo rm /boot/initrd.img-4.13.0-39-generic
rm: cannot remove '/boot/initrd.img-4.13.0-39-generic': No such file or directory
sushant@black-mamba:~$ sudo dpkg --purge linux-image-extra-4.13.0-36-generic linux-image-4.13.0-36-generic
(Reading database ... 546583 files and directories currently installed.)
Removing linux-image-extra-4.13.0-36-generic (4.13.0-36.40~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-36-generic /boot/vmlinuz-4.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-36-generic /boot/vmlinuz-4.13.0-36-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-36-generic /boot/vmlinuz-4.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-36-generic /boot/vmlinuz-4.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-36-generic /boot/vmlinuz-4.13.0-36-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found linux image: /boot/vmlinuz-4.13.0-38-generic
Found linux image: /boot/vmlinuz-4.13.0-36-generic
Found initrd image: /boot/initrd.img-4.13.0-36-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-extra-4.13.0-36-generic (4.13.0-36.40~16.04.1) ...
Removing linux-image-4.13.0-36-generic (4.13.0-36.40~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-36-generic /boot/vmlinuz-4.13.0-36-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-36-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-36-generic /boot/vmlinuz-4.13.0-36-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found linux image: /boot/vmlinuz-4.13.0-38-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-4.13.0-36-generic (4.13.0-36.40~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-36-generic /boot/vmlinuz-4.13.0-36-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-36-generic /boot/vmlinuz-4.13.0-36-generic
sushant@black-mamba:~$ sudo dpkg --purge linux-image-extra-4.13.0-36-generic linux-image-4.13.0-38-generic
dpkg: warning: ignoring request to remove linux-image-extra-4.13.0-36-generic which isn't installed
dpkg: dependency problems prevent removal of linux-image-4.13.0-38-generic:
 linux-image-extra-4.13.0-38-generic depends on linux-image-4.13.0-38-generic.

dpkg: error processing package linux-image-4.13.0-38-generic (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 linux-image-4.13.0-38-generic
sushant@black-mamba:~$ sudo dpkg --purge linux-image-extra-4.13.0-36-generic linux-image-4.13.0-39-generic
dpkg: warning: ignoring request to remove linux-image-extra-4.13.0-36-generic which isn't installed
dpkg: dependency problems prevent removal of linux-image-4.13.0-39-generic:
 linux-image-extra-4.13.0-39-generic depends on linux-image-4.13.0-39-generic.

dpkg: error processing package linux-image-4.13.0-39-generic (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 linux-image-4.13.0-39-generic
sushant@black-mamba:~$ sudo apt-get -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:
  libasound2:i386 libfreetype6:i386 libpng12-0:i386
  linux-headers-4.13.0-38 linux-headers-4.13.0-38-generic
  linux-headers-4.13.0-39 linux-headers-4.13.0-39-generic
  linux-headers-4.13.0-41 linux-headers-4.13.0-41-generic
  linux-headers-4.13.0-43 linux-headers-4.13.0-43-generic
  linux-headers-4.13.0-45 linux-headers-4.13.0-45-generic
  linux-headers-4.15.0-36 linux-headers-4.15.0-36-generic
  linux-image-4.13.0-38-generic linux-image-4.13.0-39-generic
  linux-image-4.13.0-41-generic linux-image-4.13.0-43-generic
  linux-image-4.13.0-45-generic linux-image-4.15.0-36-generic
  linux-image-extra-4.13.0-38-generic
  linux-image-extra-4.13.0-39-generic
  linux-image-extra-4.13.0-41-generic
  linux-image-extra-4.13.0-43-generic
  linux-image-extra-4.13.0-45-generic
  linux-modules-4.15.0-36-generic
  linux-modules-extra-4.15.0-30-generic
  linux-modules-extra-4.15.0-34-generic
  linux-modules-extra-4.15.0-36-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-4.15.0-36-generic linux-image-4.15.0-46-generic
  linux-modules-4.15.0-36-generic linux-modules-4.15.0-46-generic
Suggested packages:
  fdutils linux-hwe-tools
The following NEW packages will be installed:
  linux-image-4.15.0-36-generic linux-image-4.15.0-46-generic
  linux-modules-4.15.0-36-generic linux-modules-4.15.0-46-generic
0 upgraded, 4 newly installed, 0 to remove and 379 not upgraded.
7 not fully installed or removed.
Need to get 0 B/41.6 MB of archives.
After this operation, 147 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 540378 files and directories currently installed.)
Preparing to unpack .../linux-modules-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb ...
Unpacking linux-modules-4.15.0-46-generic (4.15.0-46.49~16.04.1) ...
Preparing to unpack .../linux-image-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-46-generic (4.15.0-46.49~16.04.1) ...
Preparing to unpack .../linux-modules-4.15.0-36-generic_4.15.0-36.39~16.04.1_amd64.deb ...
Unpacking linux-modules-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
Preparing to unpack .../linux-image-4.15.0-36-generic_4.15.0-36.39~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
Setting up initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-modules-4.15.0-46-generic (4.15.0-46.49~16.04.1) ...
Setting up linux-image-4.15.0-46-generic (4.15.0-46.49~16.04.1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.15.0-34-generic
I: /vmlinuz is now a symlink to boot/vmlinuz-4.15.0-46-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.15.0-46-generic
Setting up linux-modules-extra-4.15.0-46-generic (4.15.0-46.49~16.04.1) ...
Setting up linux-image-generic-hwe-16.04 (4.15.0.46.67) ...
Setting up linux-generic-hwe-16.04 (4.15.0.46.67) ...
Setting up linux-image-4.15.0-32-generic (4.15.0-32.35~16.04.1) ...
Setting up linux-image-4.15.0-34-generic (4.15.0-34.37~16.04.1) ...
I: /initrd.img.old is now a symlink to boot/initrd.img-4.15.0-34-generic
Setting up linux-modules-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
Setting up linux-image-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.15.0-46-generic
I: /vmlinuz is now a symlink to boot/vmlinuz-4.15.0-36-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.15.0-36-generic
Setting up linux-modules-extra-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
Processing triggers for initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-30-generic
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
Processing triggers for linux-image-4.15.0-46-generic (4.15.0-46.49~16.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-46-generic
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found linux image: /boot/vmlinuz-4.13.0-38-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Processing triggers for linux-image-4.15.0-32-generic (4.15.0-32.35~16.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-32-generic
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found linux image: /boot/vmlinuz-4.13.0-38-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Processing triggers for linux-image-4.15.0-34-generic (4.15.0-34.37~16.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-34-generic
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found linux image: /boot/vmlinuz-4.13.0-38-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Processing triggers for linux-image-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-36-generic
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915

gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.15.0-36-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-4.15.0-36-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-4.15.0-36-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
sushant@black-mamba:~$ sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libasound2:i386* libfreetype6:i386* libpng12-0:i386*
  linux-headers-4.13.0-36* linux-headers-4.13.0-36-generic*
  linux-headers-4.13.0-38* linux-headers-4.13.0-38-generic*
  linux-headers-4.13.0-39* linux-headers-4.13.0-39-generic*
  linux-headers-4.13.0-41* linux-headers-4.13.0-41-generic*
  linux-headers-4.13.0-43* linux-headers-4.13.0-43-generic*
  linux-headers-4.13.0-45* linux-headers-4.13.0-45-generic*
  linux-headers-4.15.0-32* linux-headers-4.15.0-32-generic*
  linux-headers-4.15.0-34* linux-headers-4.15.0-34-generic*
  linux-image-4.13.0-38-generic* linux-image-4.13.0-39-generic*
  linux-image-4.13.0-41-generic* linux-image-4.13.0-43-generic*
  linux-image-4.13.0-45-generic* linux-image-4.15.0-32-generic*
  linux-image-4.15.0-34-generic*
  linux-image-extra-4.13.0-38-generic*
  linux-image-extra-4.13.0-39-generic*
  linux-image-extra-4.13.0-41-generic*
  linux-image-extra-4.13.0-43-generic*
  linux-image-extra-4.13.0-45-generic*
  linux-modules-4.15.0-32-generic* linux-modules-4.15.0-34-generic*
  linux-modules-extra-4.15.0-30-generic*
  linux-modules-extra-4.15.0-34-generic*
  linux-modules-extra-4.15.0-36-generic*
0 upgraded, 0 newly installed, 36 to remove and 379 not upgraded.
1 not fully installed or removed.
After this operation, 2,543 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 542414 files and directories currently installed.)
Removing libasound2:i386 (1.1.0-0ubuntu1) ...
Removing libfreetype6:i386 (2.6.1-0.1ubuntu2.3) ...
Removing libpng12-0:i386 (1.2.54-1ubuntu1.1) ...
Removing linux-headers-4.13.0-36-generic (4.13.0-36.40~16.04.1) ...
Removing linux-headers-4.13.0-36 (4.13.0-36.40~16.04.1) ...
Removing linux-headers-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
Removing linux-headers-4.13.0-38 (4.13.0-38.43~16.04.1) ...
Removing linux-headers-4.13.0-39-generic (4.13.0-39.44~16.04.1) ...
Removing linux-headers-4.13.0-39 (4.13.0-39.44~16.04.1) ...
Removing linux-headers-4.13.0-41-generic (4.13.0-41.46~16.04.1) ...
Removing linux-headers-4.13.0-41 (4.13.0-41.46~16.04.1) ...
Removing linux-headers-4.13.0-43-generic (4.13.0-43.48~16.04.1) ...
Removing linux-headers-4.13.0-43 (4.13.0-43.48~16.04.1) ...
Removing linux-headers-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
Removing linux-headers-4.13.0-45 (4.13.0-45.50~16.04.1) ...
Removing linux-headers-4.15.0-32-generic (4.15.0-32.35~16.04.1) ...
Removing linux-headers-4.15.0-32 (4.15.0-32.35~16.04.1) ...
Removing linux-headers-4.15.0-34-generic (4.15.0-34.37~16.04.1) ...
Removing linux-headers-4.15.0-34 (4.15.0-34.37~16.04.1) ...
Removing linux-image-extra-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-38-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.13.0-38-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.13.0-38-generic (--purge):
 subprocess installed post-removal script returned error exit status 1
Removing linux-image-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-38-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
The link /initrd.img is a damaged link
Removing symbolic link initrd.img
 you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
Removing linux-image-extra-4.13.0-39-generic (4.13.0-39.44~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-39-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.13.0-39-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.13.0-39-generic (--purge):
 subprocess installed post-removal script returned error exit status 1
Removing linux-image-4.13.0-39-generic (4.13.0-39.44~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-39-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-4.13.0-39-generic (4.13.0-39.44~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-39-generic /boot/vmlinuz-4.13.0-39-generic
Removing linux-image-extra-4.13.0-41-generic (4.13.0-41.46~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-41-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-extra-4.13.0-41-generic (4.13.0-41.46~16.04.1) ...
Removing linux-image-4.13.0-41-generic (4.13.0-41.46~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-41-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-4.13.0-41-generic (4.13.0-41.46~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-41-generic /boot/vmlinuz-4.13.0-41-generic
Removing linux-image-extra-4.13.0-43-generic (4.13.0-43.48~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-43-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-extra-4.13.0-43-generic (4.13.0-43.48~16.04.1) ...
Removing linux-image-4.13.0-43-generic (4.13.0-43.48~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-43-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-4.13.0-43-generic (4.13.0-43.48~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-43-generic /boot/vmlinuz-4.13.0-43-generic
Removing linux-image-extra-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-45-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-extra-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
Removing linux-image-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-45-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
Removing linux-image-4.15.0-32-generic (4.15.0-32.35~16.04.1) ...
I: /initrd.img.old is now a symlink to boot/initrd.img-4.15.0-46-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-32-generic
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-34-generic
Found initrd image: /boot/initrd.img-4.15.0-34-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Purging configuration files for linux-image-4.15.0-32-generic (4.15.0-32.35~16.04.1) ...
rmdir: failed to remove '/lib/modules/4.15.0-32-generic': Directory not empty
Removing linux-modules-extra-4.15.0-34-generic (4.15.0-34.37~16.04.1) ...
Purging configuration files for linux-modules-extra-4.15.0-34-generic (4.15.0-34.37~16.04.1) ...
Removing linux-image-4.15.0-34-generic (4.15.0-34.37~16.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-34-generic
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 29641: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 29641: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 29654: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 29654: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 29667: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 29667: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 29680: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 29680: /usr/sbin/grub-probe
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 29744: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 29744: /usr/sbin/grub-probe
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found linux image: /boot/vmlinuz-4.15.0-30-generic
Found initrd image: /boot/initrd.img-4.15.0-30-generic
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 30200: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 30200: /usr/sbin/grub-probe
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on lvs invocation. Parent PID 30370: /bin/sh
done
Purging configuration files for linux-image-4.15.0-34-generic (4.15.0-34.37~16.04.1) ...
rmdir: failed to remove '/lib/modules/4.15.0-34-generic': Directory not empty
Removing linux-modules-4.15.0-32-generic (4.15.0-32.35~16.04.1) ...
Purging configuration files for linux-modules-4.15.0-32-generic (4.15.0-32.35~16.04.1) ...
Removing linux-modules-4.15.0-34-generic (4.15.0-34.37~16.04.1) ...
Purging configuration files for linux-modules-4.15.0-34-generic (4.15.0-34.37~16.04.1) ...
Removing linux-modules-extra-4.15.0-30-generic (4.15.0-30.32~16.04.1) ...
Purging configuration files for linux-modules-extra-4.15.0-30-generic (4.15.0-30.32~16.04.1) ...
Removing linux-modules-extra-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
Purging configuration files for linux-modules-extra-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
 linux-image-extra-4.13.0-38-generic
 linux-image-extra-4.13.0-39-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Sushant Potdar (sdpotdar) said : #10

Seems like this worked as I am using only 35% of boot now.

sushant@black-mamba:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 1942136 0 1942136 0% /dev
tmpfs 394344 11380 382964 3% /run
/dev/mapper/ubuntu--gnome--vg-root 716379592 400972800 278993764 59% /
tmpfs 1971708 26608 1945100 2% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 1971708 0 1971708 0% /sys/fs/cgroup
/dev/sda1 482922 158462 299526 35% /boot
tmpfs 394344 16 394328 1% /run/user/121
tmpfs 394344 24 394320 1% /run/user/1000

OK if you run:

sudo apt-get clean
sudo apt-get -f install

Is it OK?

Sushant Potdar (sdpotdar) said : #12

Yes, I got this as the output for those. Do they look right?

sushant@black-mamba:~$ sudo apt-get clean
[sudo] password for sushant:

sushant@black-mamba:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 379 not upgraded.

Sushant Potdar (sdpotdar) said : #13

Thanks Manfred Hampl, that solved my question.