刚刚升级到 23.04,但 initramfs 无法安装,报告“内核不支持压缩 (CONFIG_RD_*)”{gzip、bzip2、lz4、lzma、lzop、xz、zstd、cat}。例如,将“cat”配置为压缩类型,我得到:
> sudo dpkg --configure -a
Setting up initramfs-tools (0.142ubuntu2) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.142ubuntu2) ...
update-initramfs: Generating /boot/initrd.img-4.9.184-37
grep: /boot/config-4.9.184-37: No such file or directory
W: cat compression () not supported by kernel, using gzip
grep: /boot/config-4.9.184-37: No such file or directory
E: gzip compression (CONFIG_RD_GZIP) not supported by kernel
update-initramfs: failed for /boot/initrd.img-4.9.184-37 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
由于内核不太可能不支持任何已知的压缩方法(包括 cat),因此我怀疑这是 initramfs 的问题。有人有什么想法吗?