I have Ubuntu 20.04 root on zfs installed using the instruction on the OpenZFS project.
I was wondering if someone could help me get past this:
root@ubuntuzfs:~# apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-48-generic
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.4.0-48-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
From what I can understand this problem is caused by insufficient room on my root partition.
Here is some information that may be relevant.
root@ubuntuzfs:~# zfs list -o space -r bpool
NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD
bpool 48.6M 319M 0B 96K 0B 319M
bpool/BOOT 48.6M 317M 0B 96K 0B 317M
bpool/BOOT/ubuntu 48.6M 317M 160K 317M 0B 0B
root@ubuntuzfs:/boot# du -bsh *
233K config-5.4.0-45-generic
233K config-5.4.0-47-generic
233K config-5.4.0-48-generic
7.8M efi
7.6M grub
27 initrd.img
93M initrd.img-5.4.0-45-generic
93M initrd.img-5.4.0-47-generic
93M initrd.img-5.4.0-48-generic
27 initrd.img.old
179K memtest86+.bin
181K memtest86+.elf
181K memtest86+_multiboot.bin
4.6M System.map-5.4.0-45-generic
4.6M System.map-5.4.0-47-generic
4.6M System.map-5.4.0-48-generic
24 vmlinuz
12M vmlinuz-5.4.0-45-generic
12M vmlinuz-5.4.0-47-generic
12M vmlinuz-5.4.0-48-generic
24 vmlinuz.old
Can anyone suggest files from this list I could delete to create some room?
sudo apt-get autoremove
give it a go. – darth_epoxy Sep 28 '20 at 09:00