system boot says 0 size left in root

Asked by jaideep khanduja

my system boot is giving a consistent problem. How to resolve it, please?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bashing-om (bashing-om) said :
#1

jaideep khanduja; Hello -

show us the outputs of terminal commands:
df -h
df -i
dpkg -l | grep linux-

we see what tale gets told

Revision history for this message
jaideep khanduja (jaideepkhanduja) said :
#2

thanks for the response. here are the screenshots attached.

jaideep
<https://about.me/jaideepkhanduja?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
jaideep khanduja
about.me/jaideepkhanduja
<https://about.me/jaideepkhanduja?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>

On Sun, Nov 4, 2018 at 8:47 AM Bashing-om <
<email address hidden>> wrote:

> Your question #675897 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> Status: Open => Needs information
>
> Bashing-om requested more information:
> jaideep khanduja; Hello -
>
> show us the outputs of terminal commands:
> df -h
> df -i
> dpkg -l | grep linux-
>
> we see what tale gets told
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Attaching screen shots in a message for Launchpad questions does not work.

The output of the requested commands is plain text, so you should be able to use copy and paste.

Revision history for this message
jaideep khanduja (jaideepkhanduja) said :
#4

here are the results:
jaideep@Lenovo:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.7G 0 1.7G 0% /dev
tmpfs 335M 9.7M 325M 3% /run
/dev/mapper/ubuntu--vg-root 455G 372G 60G 87% /
tmpfs 1.7G 46M 1.6G 3% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.7G 0 1.7G 0% /sys/fs/cgroup
/dev/loop1 88M 88M 0 100% /snap/core/5742
/dev/loop3 141M 141M 0 100% /snap/gnome-3-26-1604/74
/dev/loop2 88M 88M 0 100% /snap/core/5662
/dev/loop4 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop5 140M 140M 0 100% /snap/gnome-3-26-1604/64
/dev/loop0 88M 88M 0 100% /snap/core/5548
/dev/sda2 237M 236M 0 100% /boot
/dev/sda1 511M 3.7M 508M 1% /boot/efi
cgmfs 100K 0 100K 0% /run/cgmanager/fs
tmpfs 335M 52K 335M 1% /run/user/1000

jaideep@Lenovo:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 423763 545 423218 1% /dev
tmpfs 428164 765 427399 1% /run
/dev/mapper/ubuntu--vg-root 30253056 499067 29753989 2% /
tmpfs 428164 113 428051 1% /dev/shm
tmpfs 428164 7 428157 1% /run/lock
tmpfs 428164 17 428147 1% /sys/fs/cgroup
/dev/loop1 12783 12783 0 100% /snap/core/5742
/dev/loop3 27631 27631 0 100%
/snap/gnome-3-26-1604/74
/dev/loop2 12783 12783 0 100% /snap/core/5662
/dev/loop4 27638 27638 0 100%
/snap/gnome-3-26-1604/70
/dev/loop5 27651 27651 0 100%
/snap/gnome-3-26-1604/64
/dev/loop0 12783 12783 0 100% /snap/core/5548
/dev/sda2 62496 319 62177 1% /boot
/dev/sda1 0 0 0 - /boot/efi
cgmfs 428164 13 428151 1% /run/cgmanager/fs
tmpfs 428164 28 428136 1% /run/user/1000
jaideep@Lenovo:~$

jaideep@Lenovo:~$ dpkg -l | grep linux-
ii linux-base
4.5ubuntu1~16.04.1 all Linux image base
package
iF linux-firmware
1.157.20 all Firmware for
Linux kernel drivers
iU linux-generic
4.4.0.139.145 amd64 Complete Generic
Linux kernel and headers
iU linux-generic-lts-vivid
4.4.0.139.145 amd64 Complete Generic
Linux kernel and headers (dummy transitional package)
ii linux-headers-3.19.0-58
3.19.0-58.64~14.04.1 all Header files
related to Linux kernel version 3.19.0
ii linux-headers-3.19.0-58-generic
3.19.0-58.64~14.04.1 amd64 Linux kernel
headers for version 3.19.0 on 64 bit x86 SMP
ii linux-headers-3.19.0-80
3.19.0-80.88~14.04.1 all Header files
related to Linux kernel version 3.19.0
ii linux-headers-3.19.0-80-generic
3.19.0-80.88~14.04.1 amd64 Linux kernel
headers for version 3.19.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-125
4.4.0-125.150 all Header files
related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-125-generic
4.4.0-125.150 amd64 Linux kernel
headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-128
4.4.0-128.154 all Header files
related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-128-generic
4.4.0-128.154 amd64 Linux kernel
headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-4.4.0-139
4.4.0-139.165 all Header files
related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-139-generic
4.4.0-139.165 amd64 Linux kernel
headers for version 4.4.0 on 64 bit x86 SMP
ii linux-headers-generic
4.4.0.139.145 amd64 Generic Linux
kernel headers
rc linux-image-3.19.0-25-generic
3.19.0-25.26~14.04.1 amd64 Linux kernel
image for version 3.19.0 on 64 bit x86 SMP
ii linux-image-3.19.0-58-generic
3.19.0-58.64~14.04.1 amd64 Linux kernel
image for version 3.19.0 on 64 bit x86 SMP
ii linux-image-3.19.0-80-generic
3.19.0-80.88~14.04.1 amd64 Linux kernel
image for version 3.19.0 on 64 bit x86 SMP
ii linux-image-4.4.0-125-generic
4.4.0-125.150 amd64 Linux kernel
image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-128-generic
4.4.0-128.154 amd64 Linux kernel
image for version 4.4.0 on 64 bit x86 SMP
iF linux-image-4.4.0-139-generic
4.4.0-139.165 amd64 Linux kernel
image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-3.19.0-25-generic
3.19.0-25.26~14.04.1 amd64 Linux kernel
extra modules for version 3.19.0 on 64 bit x86 SMP
ii linux-image-extra-3.19.0-58-generic
3.19.0-58.64~14.04.1 amd64 Linux kernel
extra modules for version 3.19.0 on 64 bit x86 SMP
ii linux-image-extra-3.19.0-80-generic
3.19.0-80.88~14.04.1 amd64 Linux kernel
extra modules for version 3.19.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-125-generic
4.4.0-125.150 amd64 Linux kernel
extra modules for version 4.4.0 on 64 bit x86 SMP
iF linux-image-extra-4.4.0-128-generic
4.4.0-128.154 amd64 Linux kernel
extra modules for version 4.4.0 on 64 bit x86 SMP
iU linux-image-extra-4.4.0-139-generic
4.4.0-139.165 amd64 Linux kernel
extra modules for version 4.4.0 on 64 bit x86 SMP
iU linux-image-generic
4.4.0.139.145 amd64 Generic Linux
kernel image
ii linux-libc-dev:amd64
4.4.0-139.165 amd64 Linux Kernel
Headers for development
iU linux-signed-generic
4.4.0.139.145 amd64 Complete Signed
Generic Linux kernel and headers
iU linux-signed-generic-lts-vivid
4.4.0.139.145 amd64 Complete Signed
Generic Linux kernel and headers (dummy transitional package)
rc linux-signed-image-3.19.0-25-generic
3.19.0-25.26~14.04.1 amd64 Signed kernel
image generic
ii linux-signed-image-3.19.0-58-generic
3.19.0-58.64~14.04.1 amd64 Signed kernel
image generic
ii linux-signed-image-3.19.0-80-generic
3.19.0-80.88~14.04.1 amd64 Signed kernel
image generic
ii linux-signed-image-4.4.0-125-generic
4.4.0-125.150 amd64 Signed kernel
image generic
ii linux-signed-image-4.4.0-128-generic
4.4.0-128.154 amd64 Signed kernel
image generic
iU linux-signed-image-4.4.0-139-generic
4.4.0-139.165 amd64 Signed kernel
image generic
iU linux-signed-image-generic
4.4.0.139.145 amd64 Signed Generic
Linux kernel image
ii linux-sound-base
1.0.25+dfsg-0ubuntu5 all base package for
ALSA and OSS sound systems
ii syslinux-common
3:6.03+dfsg-11ubuntu1 all collection of
bootloaders (common)
ii syslinux-legacy
2:3.63+dfsg-2ubuntu8 amd64 Bootloader for
Linux/i386 using MS-DOS floppies
jaideep@Lenovo:~$

<https://about.me/jaideepkhanduja?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
jaideep khanduja
about.me/jaideepkhanduja
<https://about.me/jaideepkhanduja?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>

On Sun, Nov 4, 2018 at 8:47 AM Bashing-om <
<email address hidden>> wrote:

> Your question #675897 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> Status: Open => Needs information
>
> Bashing-om requested more information:
> jaideep khanduja; Hello -
>
> show us the outputs of terminal commands:
> df -h
> df -i
> dpkg -l | grep linux-
>
> we see what tale gets told
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

/dev/sda2 237M 236M 0 100% /boot

You have configured your system to have a separate "boot" partition (where he kernel image and similar files are stored which are the first ones loaded at boot time).
Apparently you have too many versions of the kernel packages installed, completely filling this boot (not root!) partition. Now you receive an error when you do an update to install a new version of the kernel packages.

Try the following commands:

sudo dpkg --purge --force-all linux-image-3.19.0-58-generic
sudo dpkg --purge linux-image-extra-3.19.0-58-generic
sudo dpkg --purge linux-signed-image-3.19.0-58-generic
sudo dpkg --purge linux-image-3.19.0-25-generic
sudo dpkg --purge linux-image-extra-3.19.0-25-generic
sudo dpkg --purge linux-signed-image-3.19.0-25-generic
sudo dpkg --configure -a

and finally copy/paste the output into this question document that we can check the results of this first step.

Revision history for this message
jaideep khanduja (jaideepkhanduja) said :
#6

Thanks. Here are the results:

jaideep@Lenovo:~$ sudo dpkg --purge --force-all
linux-image-3.19.0-58-generic
[sudo] password for jaideep:
dpkg: linux-image-3.19.0-58-generic: dependency problems, but removing
anyway as you requested:
 linux-signed-image-3.19.0-58-generic depends on
linux-image-3.19.0-58-generic (= 3.19.0-58.64~14.04.1).
 linux-image-extra-3.19.0-58-generic depends on
linux-image-3.19.0-58-generic.

(Reading database ... 336716 files and directories currently installed.)
Removing linux-image-3.19.0-58-generic (3.19.0-58.64~14.04.1) ...
WARN: Proceeding with removing running kernel image.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.19.0-58-generic
/boot/vmlinuz-3.19.0-58-generic
update-initramfs: Deleting /boot/initrd.img-3.19.0-58-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.19.0-58-generic
/boot/vmlinuz-3.19.0-58-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.4.0-139-generic
Found linux image: /boot/vmlinuz-4.4.0-128-generic
Found initrd image: /boot/initrd.img-4.4.0-128-generic
Found linux image: /boot/vmlinuz-4.4.0-125-generic
Found initrd image: /boot/initrd.img-4.4.0-125-generic
Found linux image: /boot/vmlinuz-3.19.0-80-generic
Found initrd image: /boot/initrd.img-3.19.0-80-generic
Adding boot menu entry for EFI firmware configuration
done
The link /initrd.img is a damaged link
Removing symbolic link initrd.img
 you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
 you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-3.19.0-58-generic
(3.19.0-58.64~14.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.19.0-58-generic
/boot/vmlinuz-3.19.0-58-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.19.0-58-generic
/boot/vmlinuz-3.19.0-58-generic

jaideep@Lenovo:~$ sudo dpkg --purge linux-image-extra-3.19.0-58-generic
dpkg: dependency problems prevent removal of
linux-image-extra-3.19.0-58-generic:
 linux-signed-image-3.19.0-58-generic depends on
linux-image-extra-3.19.0-58-generic (= 3.19.0-58.64~14.04.1); however:
  Package linux-image-extra-3.19.0-58-generic is to be removed.

dpkg: error processing package linux-image-extra-3.19.0-58-generic
(--purge):
 dependency problems - not removing
Errors were encountered while processing:
 linux-image-extra-3.19.0-58-generic

jaideep@Lenovo:~$ sudo dpkg --purge linux-signed-image-3.19.0-58-generic
(Reading database ... 335883 files and directories currently installed.)
Removing linux-signed-image-3.19.0-58-generic (3.19.0-58.64~14.04.1) ...
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.4.0-139-generic
Found linux image: /boot/vmlinuz-4.4.0-128-generic
Found initrd image: /boot/initrd.img-4.4.0-128-generic
Found linux image: /boot/vmlinuz-4.4.0-125-generic
Found initrd image: /boot/initrd.img-4.4.0-125-generic
Found linux image: /boot/vmlinuz-3.19.0-80-generic
Found initrd image: /boot/initrd.img-3.19.0-80-generic
Adding boot menu entry for EFI firmware configuration
done
Purging configuration files for linux-signed-image-3.19.0-58-generic
(3.19.0-58.64~14.04.1) …

jaideep@Lenovo:~$ sudo dpkg --purge linux-image-3.19.0-25-generic
(Reading database ... 335879 files and directories currently installed.)
Removing linux-image-3.19.0-25-generic (3.19.0-25.26~14.04.1) ...
Purging configuration files for linux-image-3.19.0-25-generic
(3.19.0-25.26~14.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.19.0-25-generic
/boot/vmlinuz-3.19.0-25-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.19.0-25-generic
/boot/vmlinuz-3.19.0-25-generic

jaideep@Lenovo:~$ sudo dpkg --purge linux-image-extra-3.19.0-25-generic
(Reading database ... 335879 files and directories currently installed.)
Removing linux-image-extra-3.19.0-25-generic (3.19.0-25.26~14.04.1) ...
Purging configuration files for linux-image-extra-3.19.0-25-generic
(3.19.0-25.26~14.04.1) …

jaideep@Lenovo:~$ sudo dpkg --purge linux-signed-image-3.19.0-25-generic
(Reading database ... 335879 files and directories currently installed.)
Removing linux-signed-image-3.19.0-25-generic (3.19.0-25.26~14.04.1) ...
Purging configuration files for linux-signed-image-3.19.0-25-generic
(3.19.0-25.26~14.04.1) …

jaideep@Lenovo:~$ sudo dpkg --configure -a
Setting up initramfs-tools (0.122ubuntu8.11) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-extra-4.4.0-128-generic (4.4.0-128.154) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal
4.4.0-128-generic /boot/vmlinuz-4.4.0-128-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools
4.4.0-128-generic /boot/vmlinuz-4.4.0-128-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-128-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-128-generic
/boot/vmlinuz-4.4.0-128-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades
4.4.0-128-generic /boot/vmlinuz-4.4.0-128-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier
4.4.0-128-generic /boot/vmlinuz-4.4.0-128-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub
4.4.0-128-generic /boot/vmlinuz-4.4.0-128-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.4.0-139-generic
Found linux image: /boot/vmlinuz-4.4.0-128-generic
Found initrd image: /boot/initrd.img-4.4.0-128-generic
Found linux image: /boot/vmlinuz-4.4.0-125-generic
Found initrd image: /boot/initrd.img-4.4.0-125-generic
Found linux image: /boot/vmlinuz-3.19.0-80-generic
Found initrd image: /boot/initrd.img-3.19.0-80-generic
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-image-4.4.0-139-generic (4.4.0-139.165) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
vmlinuz(/boot/vmlinuz-4.4.0-139-generic
) points to /boot/vmlinuz-4.4.0-139-generic
 (/boot/vmlinuz-4.4.0-139-generic) -- doing nothing at
/var/lib/dpkg/info/linux-image-4.4.0-139-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal
4.4.0-139-generic /boot/vmlinuz-4.4.0-139-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools
4.4.0-139-generic /boot/vmlinuz-4.4.0-139-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-139-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-139-generic
/boot/vmlinuz-4.4.0-139-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades
4.4.0-139-generic /boot/vmlinuz-4.4.0-139-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier
4.4.0-139-generic /boot/vmlinuz-4.4.0-139-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub
4.4.0-139-generic /boot/vmlinuz-4.4.0-139-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.4.0-139-generic
Found initrd image: /boot/initrd.img-4.4.0-139-generic
Found linux image: /boot/vmlinuz-4.4.0-128-generic
Found initrd image: /boot/initrd.img-4.4.0-128-generic
Found linux image: /boot/vmlinuz-4.4.0-125-generic
Found initrd image: /boot/initrd.img-4.4.0-125-generic
Found linux image: /boot/vmlinuz-3.19.0-80-generic
Found initrd image: /boot/initrd.img-3.19.0-80-generic
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-firmware (1.157.20) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-139-generic

gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-139-generic with 1.
dpkg: error processing package linux-firmware (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of
linux-signed-image-generic:
 linux-signed-image-generic depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-signed-image-generic (--configure):
 dependency problems - leaving unconfigured
Setting up linux-signed-image-4.4.0-139-generic (4.4.0-139.165) ...
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.4.0-139-generic
Found initrd image: /boot/initrd.img-4.4.0-139-generic
Found linux image: /boot/vmlinuz-4.4.0-128-generic
Found initrd image: /boot/initrd.img-4.4.0-128-generic
Found linux image: /boot/vmlinuz-4.4.0-125-generic
Found initrd image: /boot/initrd.img-4.4.0-125-generic
Found linux image: /boot/vmlinuz-3.19.0-80-generic
Found initrd image: /boot/initrd.img-3.19.0-80-generic
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-image-extra-4.4.0-139-generic (4.4.0-139.165) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal
4.4.0-139-generic /boot/vmlinuz-4.4.0-139-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools
4.4.0-139-generic /boot/vmlinuz-4.4.0-139-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-139-generic

gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-139-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-139-generic
(--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-extra-4.4.0-139-generic;
however:
  Package linux-image-extra-4.4.0-139-generic is not configured yet.
 linux-image-generic depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

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

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

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-vivid:
 linux-generic-lts-vivid depends on linux-generic; however:
  Package linux-generic is not configured yet.

dpkg: error processing package linux-generic-lts-vivid (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of
linux-signed-generic-lts-vivid:
 linux-signed-generic-lts-vivid depends on linux-signed-generic; however:
  Package linux-signed-generic is not configured yet.

dpkg: error processing package linux-signed-generic-lts-vivid (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.122ubuntu8.11) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-139-generic

gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-139-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-firmware
 linux-signed-image-generic
 linux-image-extra-4.4.0-139-generic
 linux-image-generic
 linux-signed-generic
 linux-generic
 linux-generic-lts-vivid
 linux-signed-generic-lts-vivid
 initramfs-tools
jaideep@Lenovo:~$

On Sun, Nov 4, 2018 at 10:02 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #675897 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> /dev/sda2 237M 236M 0 100% /boot
>
> You have configured your system to have a separate "boot" partition (where
> he kernel image and similar files are stored which are the first ones
> loaded at boot time).
> Apparently you have too many versions of the kernel packages installed,
> completely filling this boot (not root!) partition. Now you receive an
> error when you do an update to install a new version of the kernel packages.
>
> Try the following commands:
>
> sudo dpkg --purge --force-all linux-image-3.19.0-58-generic
> sudo dpkg --purge linux-image-extra-3.19.0-58-generic
> sudo dpkg --purge linux-signed-image-3.19.0-58-generic
> sudo dpkg --purge linux-image-3.19.0-25-generic
> sudo dpkg --purge linux-image-extra-3.19.0-25-generic
> sudo dpkg --purge linux-signed-image-3.19.0-25-generic
> sudo dpkg --configure -a
>
> and finally copy/paste the output into this question document that we
> can check the results of this first step.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/675897/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Ok, this was already a step forward, but not yet enough.
What is now the output of the following commands:

sudo dpkg --purge linux-image-extra-3.19.0-58-generic
df -h
dpkg -l | grep linux-
ls -l /boot

Revision history for this message
jaideep khanduja (jaideepkhanduja) said :
#8

here are the outcomes:

jaideep@Lenovo:~$ sudo dpkg --purge linux-image-extra-3.19.0-58-generic

[sudo] password for jaideep:

(Reading database ... 335879 files and directories currently installed.)

Removing linux-image-extra-3.19.0-58-generic (3.19.0-58.64~14.04.1) ...

depmod: FATAL: could not load /boot/System.map-3.19.0-58-generic: No such
file or directory

run-parts: executing /etc/kernel/postinst.d/apt-auto-removal
3.19.0-58-generic /boot/vmlinuz-3.19.0-58-generic

run-parts: executing /etc/kernel/postinst.d/initramfs-tools
3.19.0-58-generic /boot/vmlinuz-3.19.0-58-generic

update-initramfs: Generating /boot/initrd.img-3.19.0-58-generic

depmod: WARNING: could not open
/lib/modules/3.19.0-58-generic/modules.order: No such file or directory

depmod: WARNING: could not open
/lib/modules/3.19.0-58-generic/modules.builtin: No such file or directory

depmod: WARNING: could not open
/var/tmp/mkinitramfs_Yve4Ue/lib/modules/3.19.0-58-generic/modules.order: No
such file or directory

depmod: WARNING: could not open
/var/tmp/mkinitramfs_Yve4Ue/lib/modules/3.19.0-58-generic/modules.builtin:
No such file or directory

gzip: stdout: No space left on device

E: mkinitramfs failure cpio 141 gzip 1

update-initramfs: failed for /boot/initrd.img-3.19.0-58-generic with 1.

run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1

dpkg: error processing package linux-image-extra-3.19.0-58-generic
(--purge):

subprocess installed post-removal script returned error exit status 1

Errors were encountered while processing:

linux-image-extra-3.19.0-58-generic

jaideep@Lenovo:~$ df -h

Filesystem Size Used Avail Use% Mounted on

udev 1.7G 0 1.7G 0% /dev

tmpfs 335M 19M 317M 6% /run

/dev/mapper/ubuntu--vg-root 455G 372G 60G 87% /

tmpfs 1.7G 61M 1.6G 4% /dev/shm

tmpfs 5.0M 4.0K 5.0M 1% /run/lock

tmpfs 1.7G 0 1.7G 0% /sys/fs/cgroup

/dev/loop1 88M 88M 0 100% /snap/core/5742

/dev/loop3 141M 141M 0 100% /snap/gnome-3-26-1604/74

/dev/loop2 88M 88M 0 100% /snap/core/5662

/dev/loop4 141M 141M 0 100% /snap/gnome-3-26-1604/70

/dev/loop5 140M 140M 0 100% /snap/gnome-3-26-1604/64

/dev/loop0 88M 88M 0 100% /snap/core/5548

/dev/sda2 237M 234M 0 100% /boot

/dev/sda1 511M 3.7M 508M 1% /boot/efi

cgmfs 100K 0 100K 0% /run/cgmanager/fs

tmpfs 335M 68K 335M 1% /run/user/1000

jaideep@Lenovo:~$ dpkg -l | grep linux-

ii linux-base 4.5ubuntu1~16.04.1 all Linux image base package

iF linux-firmware 1.157.20 all Firmware for Linux kernel drivers

iU linux-generic 4.4.0.139.145 amd64 Complete Generic Linux kernel and
headers

iU linux-generic-lts-vivid 4.4.0.139.145 amd64 Complete Generic Linux
kernel and headers (dummy transitional package)

ii linux-headers-3.19.0-58 3.19.0-58.64~14.04.1 all Header files related to
Linux kernel version 3.19.0

ii linux-headers-3.19.0-58-generic 3.19.0-58.64~14.04.1 amd64 Linux kernel
headers for version 3.19.0 on 64 bit x86 SMP

ii linux-headers-3.19.0-80 3.19.0-80.88~14.04.1 all Header files related to
Linux kernel version 3.19.0

ii linux-headers-3.19.0-80-generic 3.19.0-80.88~14.04.1 amd64 Linux kernel
headers for version 3.19.0 on 64 bit x86 SMP

ii linux-headers-4.4.0-125 4.4.0-125.150 all Header files related to Linux
kernel version 4.4.0

ii linux-headers-4.4.0-125-generic 4.4.0-125.150 amd64 Linux kernel headers
for version 4.4.0 on 64 bit x86 SMP

ii linux-headers-4.4.0-128 4.4.0-128.154 all Header files related to Linux
kernel version 4.4.0

ii linux-headers-4.4.0-128-generic 4.4.0-128.154 amd64 Linux kernel headers
for version 4.4.0 on 64 bit x86 SMP

ii linux-headers-4.4.0-139 4.4.0-139.165 all Header files related to Linux
kernel version 4.4.0

ii linux-headers-4.4.0-139-generic 4.4.0-139.165 amd64 Linux kernel headers
for version 4.4.0 on 64 bit x86 SMP

ii linux-headers-generic 4.4.0.139.145 amd64 Generic Linux kernel headers

ii linux-image-3.19.0-80-generic 3.19.0-80.88~14.04.1 amd64 Linux kernel
image for version 3.19.0 on 64 bit x86 SMP

ii linux-image-4.4.0-125-generic 4.4.0-125.150 amd64 Linux kernel image for
version 4.4.0 on 64 bit x86 SMP

ii linux-image-4.4.0-128-generic 4.4.0-128.154 amd64 Linux kernel image for
version 4.4.0 on 64 bit x86 SMP

ii linux-image-4.4.0-139-generic 4.4.0-139.165 amd64 Linux kernel image for
version 4.4.0 on 64 bit x86 SMP

pH linux-image-extra-3.19.0-58-generic 3.19.0-58.64~14.04.1 amd64 Linux
kernel extra modules for version 3.19.0 on 64 bit x86 SMP

ii linux-image-extra-3.19.0-80-generic 3.19.0-80.88~14.04.1 amd64 Linux
kernel extra modules for version 3.19.0 on 64 bit x86 SMP

ii linux-image-extra-4.4.0-125-generic 4.4.0-125.150 amd64 Linux kernel
extra modules for version 4.4.0 on 64 bit x86 SMP

ii linux-image-extra-4.4.0-128-generic 4.4.0-128.154 amd64 Linux kernel
extra modules for version 4.4.0 on 64 bit x86 SMP

iF linux-image-extra-4.4.0-139-generic 4.4.0-139.165 amd64 Linux kernel
extra modules for version 4.4.0 on 64 bit x86 SMP

iU linux-image-generic 4.4.0.139.145 amd64 Generic Linux kernel image

ii linux-libc-dev:amd64 4.4.0-139.165 amd64 Linux Kernel Headers for
development

iU linux-signed-generic 4.4.0.139.145 amd64 Complete Signed Generic Linux
kernel and headers

iU linux-signed-generic-lts-vivid 4.4.0.139.145 amd64 Complete Signed
Generic Linux kernel and headers (dummy transitional package)

ii linux-signed-image-3.19.0-80-generic 3.19.0-80.88~14.04.1 amd64 Signed
kernel image generic

ii linux-signed-image-4.4.0-125-generic 4.4.0-125.150 amd64 Signed kernel
image generic

ii linux-signed-image-4.4.0-128-generic 4.4.0-128.154 amd64 Signed kernel
image generic

ii linux-signed-image-4.4.0-139-generic 4.4.0-139.165 amd64 Signed kernel
image generic

iU linux-signed-image-generic 4.4.0.139.145 amd64 Signed Generic Linux
kernel image

ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS
sound systems

ii syslinux-common 3:6.03+dfsg-11ubuntu1 all collection of bootloaders
(common)

ii syslinux-legacy 2:3.63+dfsg-2ubuntu8 amd64 Bootloader for Linux/i386
using MS-DOS floppies

jaideep@Lenovo:~$ ls -l /boot

total 229488

-rw-r--r-- 1 root root 1273095 Jan 13 2017 abi-3.19.0-80-generic

-rw-r--r-- 1 root root 1251414 May 10 14:39 abi-4.4.0-125-generic

-rw-r--r-- 1 root root 1251583 May 25 22:13 abi-4.4.0-128-generic

-rw-r--r-- 1 root root 1252309 Oct 24 21:01 abi-4.4.0-139-generic

-rw-r--r-- 1 root root 177856 Jan 13 2017 config-3.19.0-80-generic

-rw-r--r-- 1 root root 190708 May 10 14:39 config-4.4.0-125-generic

-rw-r--r-- 1 root root 190545 May 25 22:13 config-4.4.0-128-generic

-rw-r--r-- 1 root root 190611 Oct 24 21:01 config-4.4.0-139-generic

drwxr-xr-x 3 root root 4096 Jan 1 1970 efi

drwxr-xr-x 5 root root 1024 Nov 5 08:38 grub

-rw-r--r-- 1 root root 34025407 May 23 21:28 initrd.img-3.19.0-80-generic

-rw-r--r-- 1 root root 39661980 May 23 21:28 initrd.img-4.4.0-125-generic

-rw-r--r-- 1 root root 41260579 Nov 5 08:36 initrd.img-4.4.0-128-generic

-rw-r--r-- 1 root root 41264965 Nov 5 08:37 initrd.img-4.4.0-139-generic

drwx------ 2 root root 12288 Apr 19 2016 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 255 May 10 14:39 retpoline-4.4.0-125-generic

-rw-r--r-- 1 root root 255 May 25 22:13 retpoline-4.4.0-128-generic

-rw-r--r-- 1 root root 255 Oct 24 21:01 retpoline-4.4.0-139-generic

-rw------- 1 root root 3633374 Jan 13 2017 System.map-3.19.0-80-generic

-rw------- 1 root root 3899976 May 10 14:39 System.map-4.4.0-125-generic

-rw------- 1 root root 3901360 May 25 22:13 System.map-4.4.0-128-generic

-rw------- 1 root root 3904765 Oct 24 21:01 System.map-4.4.0-139-generic

-rw------- 1 root root 6595152 Jan 13 2017 vmlinuz-3.19.0-80-generic

-rw------- 1 root root 6597080 Feb 3 2018
vmlinuz-3.19.0-80-generic.efi.signed

-rw------- 1 root root 7147744 May 10 14:39 vmlinuz-4.4.0-125-generic

-rw------- 1 root root 7149656 May 13 00:00
vmlinuz-4.4.0-125-generic.efi.signed

-rw------- 1 root root 7150336 May 25 22:13 vmlinuz-4.4.0-128-generic

-rw------- 1 root root 7152248 May 31 16:39
vmlinuz-4.4.0-128-generic.efi.signed

-rw------- 1 root root 7168736 Oct 24 21:01 vmlinuz-4.4.0-139-generic

-rw------- 1 root root 7170648 Nov 5 08:38
vmlinuz-4.4.0-139-generic.efi.signed

On Mon, Nov 5, 2018 at 1:48 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #675897 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> Ok, this was already a step forward, but not yet enough.
> What is now the output of the following commands:
>
> sudo dpkg --purge linux-image-extra-3.19.0-58-generic
> df -h
> dpkg -l | grep linux-
> ls -l /boot
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

The next step must be rebooting the system with one of the newer kernels.

Try to restart your system normally. In case that this fails, select an older version of the kernels, e.g. 4.4.0-128 by pressing the shift key early during the boot process to get the grub menu, and then select "advanced options".
https://linoxide.com/wp-content/uploads/2018/06/01-check-boot-kernel1.png
and on the next screen select the second (or third) line
https://linoxide.com/wp-content/uploads/2018/06/01-check-boot-kernel2-2.png

When you have successfully booted, copy/paste the output of the command
uname -a

Revision history for this message
jaideep khanduja (jaideepkhanduja) said :
#10

Thank you for all your support. It worked. I was able to login on restart.
But it gave the same error of 0 space available that it was giving earlier.

The output of uname -a is as below:
 uname -a
Linux Lenovo 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018
x86_64 x86_64 x86_64 GNU/Linux

<https://about.me/jaideepkhanduja?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
jaideep khanduja
about.me/jaideepkhanduja
<https://about.me/jaideepkhanduja?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>

On Mon, Nov 5, 2018 at 2:32 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #675897 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> The next step must be rebooting the system with one of the newer
> kernels.
>
> Try to restart your system normally. In case that this fails, select an
> older version of the kernels, e.g. 4.4.0-128 by pressing the shift key
> early during the boot process to get the grub menu, and then select
> "advanced options".
> https://linoxide.com/wp-content/uploads/2018/06/01-check-boot-kernel1.png
> and on the next screen select the second (or third) line
> https://linoxide.com/wp-content/uploads/2018/06/01-check-boot-kernel2-2.png
>
> When you have successfully booted, copy/paste the output of the command
> uname -a
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/675897/+confirm?answer_id=8
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

Now try the following commands:

sudo dpkg --purge linux-image-4.4.0-125-generi clinux-image-extra-4.4.0-125-generic linux-signed-image-4.4.0-125-generic

and report the results.

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

Oops, sorry, a typo error in my command, it should have been

sudo dpkg --purge linux-image-4.4.0-125-generic linux-image-extra-4.4.0-125-generic linux-signed-image-4.4.0-125-generic

Revision history for this message
jaideep khanduja (jaideepkhanduja) said :
#13

jaideep@Lenovo:~$ sudo dpkg --purge linux-image-4.4.0-125-generi
clinux-image-
[sudo] password for jaideep:
dpkg: warning: ignoring request to remove linux-image-4.4.0-125-generi
which isn't installed
dpkg: warning: ignoring request to remove clinux-image- which isn't
installed

<https://about.me/jaideepkhanduja?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
jaideep khanduja
about.me/jaideepkhanduja
<https://about.me/jaideepkhanduja?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>

On Mon, Nov 5, 2018 at 10:37 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #675897 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Now try the following commands:
>
> sudo dpkg --purge linux-image-4.4.0-125-generi clinux-image-
> extra-4.4.0-125-generic linux-signed-image-4.4.0-125-generic
>
> and report the results.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/675897/+confirm?answer_id=10
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/675897
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

Please open the page https://answers.launchpad.net/ubuntu/+question/675897 for copying the command, it is a long command that has to be copied at once:

sudo dpkg --purge linux-image-4.4.0-125-generic linux-image-extra-4.4.0-125-generic linux-signed-image-4.4.0-125-generic

Can you help with this problem?

Provide an answer of your own, or ask jaideep khanduja for more information if necessary.

To post a message you must log in.