upgrade, but, the disk space is full

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
saskatchewan

upgrade, but, the disk space is full

Post by saskatchewan »

When I try to upgrade, I get the following message saying the disk space is full, what should I do?

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  python3-requests
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 55.8 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 python3-requests all 2.9.1-3ubuntu0.1 [55.8 kB]
Fetched 55.8 kB in 0s (67.4 kB/s)         
(Reading database ... 455002 files and directories currently installed.)
Preparing to unpack .../python3-requests_2.9.1-3ubuntu0.1_all.deb ...
Unpacking python3-requests (2.9.1-3ubuntu0.1) over (2.9.1-3) ...
Setting up initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.173) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-36-generic
Warning: No support for locale: en_CA.utf8

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.15.0-36-generic with 1.
dpkg: error processing package linux-firmware (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python3-requests (2.9.1-3ubuntu0.1) ...
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-36-generic
Warning: No support for locale: en_CA.utf8

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.15.0-36-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
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
saskatchewan

Re: upgrade, but, the disk space is full

Post by saskatchewan »

I just tried the following:

Code: Select all

OLDCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
LINUXPKG="linux-(image|headers|ubuntu-modules|restricted-modules)"
METALINUXPKG="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL)
YELLOW="\033[1;33m"
RED="\033[0;31m"
ENDCOLOR="\033[0m"
sudo apt-get purge $OLDKERNELS
and it returned the following

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-modules-4.15.0-29-generic linux-modules-4.15.0-30-generic
  linux-modules-4.15.0-32-generic linux-modules-4.15.0-33-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-headers-4.15.0-29* linux-headers-4.15.0-29-generic*
  linux-headers-4.15.0-30* linux-headers-4.15.0-30-generic*
  linux-headers-4.15.0-32* linux-headers-4.15.0-32-generic*
  linux-headers-4.15.0-33* linux-headers-4.15.0-33-generic*
  linux-headers-4.15.0-34* linux-headers-4.15.0-34-generic*
  linux-image-4.15.0-29-generic* linux-image-4.15.0-30-generic*
  linux-image-4.15.0-32-generic* linux-image-4.15.0-33-generic*
  linux-image-4.15.0-34-generic* linux-modules-extra-4.15.0-29-generic*
  linux-modules-extra-4.15.0-30-generic*
  linux-modules-extra-4.15.0-32-generic*
  linux-modules-extra-4.15.0-33-generic*
  linux-modules-extra-4.15.0-34-generic*
0 upgraded, 0 newly installed, 20 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 1,349 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 455001 files and directories currently installed.)
Removing linux-headers-4.15.0-29-generic (4.15.0-29.31~16.04.1) ...
Removing linux-headers-4.15.0-29 (4.15.0-29.31~16.04.1) ...
Removing linux-headers-4.15.0-30-generic (4.15.0-30.32~16.04.1) ...
Removing linux-headers-4.15.0-30 (4.15.0-30.32~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-33-generic (4.15.0-33.36~16.04.1) ...
Removing linux-headers-4.15.0-33 (4.15.0-33.36~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-modules-extra-4.15.0-29-generic (4.15.0-29.31~16.04.1) ...
Purging configuration files for linux-modules-extra-4.15.0-29-generic (4.15.0-29.31~16.04.1) ...
Removing linux-image-4.15.0-29-generic (4.15.0-29.31~16.04.1) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: ndiswrapper 1.60 (4.15.0-29-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  ndiswrapper
Version: 1.60
Kernel:  4.15.0-29-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

ndiswrapper.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-29-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

------------------------------
Deleting module version: 1.60
completely from the DKMS tree.
------------------------------
Done.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-29-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-36-generic
Found initrd image: /boot/initrd.img-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-33-generic
Found initrd image: /boot/initrd.img-4.15.0-33-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.15.0-29-generic (4.15.0-29.31~16.04.1) ...
rmdir: failed to remove '/lib/modules/4.15.0-29-generic': Directory not empty
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-image-4.15.0-30-generic (4.15.0-30.32~16.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-30-generic
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16033: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16033: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16046: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16046: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16059: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16059: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16072: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16072: /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-29-generic (deleted)) leaked on vgs invocation. Parent PID 16141: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16141: /usr/sbin/grub-probe
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found initrd image: /boot/initrd.img-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-33-generic
Found initrd image: /boot/initrd.img-4.15.0-33-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16921: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-29-generic (deleted)) leaked on vgs invocation. Parent PID 16921: /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-29-generic (deleted)) leaked on lvs invocation. Parent PID 17114: /bin/sh
done
Purging configuration files for linux-image-4.15.0-30-generic (4.15.0-30.32~16.04.1) ...
rmdir: failed to remove '/lib/modules/4.15.0-30-generic': Directory not empty
Removing linux-modules-extra-4.15.0-32-generic (4.15.0-32.35~16.04.1) ...
Purging configuration files for linux-modules-extra-4.15.0-32-generic (4.15.0-32.35~16.04.1) ...
Removing linux-image-4.15.0-32-generic (4.15.0-32.35~16.04.1) ...
/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 ...
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 17447: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 17447: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 17460: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 17460: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 17473: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 17473: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 17486: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 17486: /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-30-generic (deleted)) leaked on vgs invocation. Parent PID 17556: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 17556: /usr/sbin/grub-probe
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found initrd image: /boot/initrd.img-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-33-generic
Found initrd image: /boot/initrd.img-4.15.0-33-generic
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 18163: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-30-generic (deleted)) leaked on vgs invocation. Parent PID 18163: /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-30-generic (deleted)) leaked on lvs invocation. Parent PID 18349: /bin/sh
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-33-generic (4.15.0-33.36~16.04.1) ...
Purging configuration files for linux-modules-extra-4.15.0-33-generic (4.15.0-33.36~16.04.1) ...
Removing linux-image-4.15.0-33-generic (4.15.0-33.36~16.04.1) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: anbox 1 (4.15.0-33-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  anbox
Version: 1
Kernel:  4.15.0-33-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

ashmem_linux.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-33-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


binder_linux.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-33-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-33-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 19227: /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 19227: /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 19240: /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 19240: /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 19253: /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 19253: /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 19266: /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 19266: /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 19334: /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 19334: /usr/sbin/grub-probe
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found initrd image: /boot/initrd.img-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
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-32-generic (deleted)) leaked on vgs invocation. Parent PID 19776: /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 19776: /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 19955: /bin/sh
done
Purging configuration files for linux-image-4.15.0-33-generic (4.15.0-33.36~16.04.1) ...
rmdir: failed to remove '/lib/modules/4.15.0-33-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/prerm.d/dkms:
dkms: removing: anbox 1 (4.15.0-34-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  anbox
Version: 1
Kernel:  4.15.0-34-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

ashmem_linux.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-34-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


binder_linux.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-34-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.15.0-36-generic
I: /initrd.img.old is now a symlink to boot/initrd.img-4.15.0-36-generic
/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-33-generic (deleted)) leaked on vgs invocation. Parent PID 20694: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-33-generic (deleted)) leaked on vgs invocation. Parent PID 20694: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-33-generic (deleted)) leaked on vgs invocation. Parent PID 20707: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-33-generic (deleted)) leaked on vgs invocation. Parent PID 20707: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-33-generic (deleted)) leaked on vgs invocation. Parent PID 20720: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-33-generic (deleted)) leaked on vgs invocation. Parent PID 20720: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-33-generic (deleted)) leaked on vgs invocation. Parent PID 20733: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-33-generic (deleted)) leaked on vgs invocation. Parent PID 20733: /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-33-generic (deleted)) leaked on vgs invocation. Parent PID 20802: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-33-generic (deleted)) leaked on vgs invocation. Parent PID 20802: /usr/sbin/grub-probe
Found linux image: /boot/vmlinuz-4.15.0-36-generic
Found initrd image: /boot/initrd.img-4.15.0-36-generic
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-33-generic (deleted)) leaked on vgs invocation. Parent PID 21083: /usr/sbin/grub-probe
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-4.15.0-33-generic (deleted)) leaked on vgs invocation. Parent PID 21083: /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-33-generic (deleted)) leaked on lvs invocation. Parent PID 21255: /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
Setting up initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.173) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-36-generic
Warning: No support for locale: en_CA.utf8
update-initramfs: Generating /boot/initrd.img-4.13.0-38-generic
WARNING: missing /lib/modules/4.13.0-38-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.13.0-38-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Warning: No support for locale: en_CA.utf8
depmod: WARNING: could not open /var/tmp/mkinitramfs_cf47KY/lib/modules/4.13.0-38-generic/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_cf47KY/lib/modules/4.13.0-38-generic/modules.builtin: No such file or directory
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-36-generic
Warning: No support for locale: en_CA.utf8
User avatar
Pierre
Level 21
Level 21
Posts: 13227
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: upgrade, but, the disk space is full

Post by Pierre »

Yep - - this LM19 series is installing a whole lot more kernel(s) than is normally done.

& so your drive / partition will fill up, rather quickly . . ... ..
this will be even more apparent if do use a separate / root & /home partitions,
& where that / root partition will surely fill up.

if you are still in the desktop, then run the Gparted program to see if the disk is still showing as quite full,
& if that program is not installed, then use the Disks Utility, instead.

NB: if you do re-boot with an Disk Full Error, then you could have issues in re-gaining the desktop,
& you may have to purge some extra kernel(s) again.
- - is the machine now working A.ok or not, after the above operation ?.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
User avatar
JerryF
Level 16
Level 16
Posts: 6571
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: upgrade, but, the disk space is full

Post by JerryF »

In the future, please use [code][/code] tags when you paste your output fro Terminal. It makes it a whole lot easier to read for everyone.

Thanks.

Do you have a separate /boot partition? If so, that my be too small for all that's happening with the upgrade.
gm10

Re: upgrade, but, the disk space is full

Post by gm10 »

saskatchewan wrote: Mon Oct 15, 2018 9:58 am and it returned the following
Well, seems to have worked. Does the problem persist?
User avatar
karlchen
Level 23
Level 23
Posts: 18228
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: upgrade, but, the disk space is full

Post by karlchen »

Hi, gm10.

I assume these lines near the end

Code: Select all

update-initramfs: Generating /boot/initrd.img-4.13.0-38-generic
WARNING: missing /lib/modules/4.13.0-38-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.13.0-38-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Warning: No support for locale: en_CA.utf8
depmod: WARNING: could not open /var/tmp/mkinitramfs_cf47KY/lib/modules/4.13.0-38-generic/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_cf47KY/lib/modules/4.13.0-38-generic/modules.builtin: No such file or directory
might cause some concerns, because kernel 4.13.0-38 is not present. BUT: 4.13.0-38 is not needed if you have got 4.15.0-36.
In case you are on Mint 19, 4.13.0-38 should not even be present at all.

Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
User avatar
karlchen
Level 23
Level 23
Posts: 18228
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: upgrade, but, the disk space is full

Post by karlchen »

Pierre wrote: Mon Oct 15, 2018 10:04 amYep - - this LM19 series is installing a whole lot more kernel(s) than is normally done.
Hm. Cannot really confirm so.
To me it looks as if Ubuntu deploys roughly the same number of kernel updates on Mint 18.x (Ubuntu 16.04) and on Mint 19 (Ubuntu 18.04) in a given timespan.

I assume that on Mint 18.x too many users still abide by the questionable rule that kernel updates are evil, have therefore disabled levels greater than 3 in Update Manager and never see the available kernel updates.
On Mint 19 Update Manager defaults to display them all, and users (incorrectly) think Mint 19 got more kernel updates than Mint 18.x.
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
gm10

Re: upgrade, but, the disk space is full

Post by gm10 »

karlchen wrote: Mon Oct 15, 2018 10:29 am [/code] might cause some concerns, because kernel 4.13.0-38 is not present. BUT: 4.13.0-38 is not needed if you have got 4.15.0-36.
In case you are on Mint 19, 4.13.0-38 should not even be present at all.
At least the initrd.img for that kernel is still present, maybe more. Still, the error message doesn't matter on a remove, although those leftovers should get cleared out eventually. To check:

Code: Select all

apt list --installed "linux-image-*"
ls /boot
PS:
karlchen wrote: Mon Oct 15, 2018 10:35 amI assume that on Mint 18.x too many users still abide by the questionable rule that kernel updates are evil, have therefore disabled levels greater than 3 in Update Manager and never see the available kernel updates.
On Mint 19 Update Manager defaults to display them all, and users (incorrectly) think Mint 19 got more kernel updates than Mint 18.x.
Pretty sure you hit the proverbial nail on the head there.
Locked

Return to “Beginner Questions”