从 19.04 升级到 20.04 后内核包处理和 update-initramfs 问题

从 19.04 升级到 20.04 后内核包处理和 update-initramfs 问题

几天前我刚刚将我的 Ubuntu 从 19.04 升级到 19.10,从那时起我就遇到了启动问题。

当我启动时,GRUB 会启动到新的内核映像(19.10),然后我会看到制造商的徽标,系统就冻结在那里。20.04 推出后,我以为可以通过升级到 20.04 来解决这个问题,但那没有奏效。在安装的“清理构建区域”阶段,我收到与 Linux 固件相关的错误,它显示的内容类似于“移回旧版本”,然后中止了更新。

现在,当我启动时,会发生与以前相同的事情,但是当我运行sudo apt install安装某些东西(例如 node js)时,它不会安装并抛出错误。错误的屏幕截图:

在此处输入图片描述

dpkg: error processing package linux-firmware (--configure):
 installed linux-firmware package post-installation script subprocess returned 
error exit status 1
Setting up linux-image-5.4.0-26-generic (5.4.0-26.30) ...
dpkg: dependency problems prevent configuration of linux-image-generic:
 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
No apport report written because the error message indicates its a followup err
or from a previous failure.
                           No apport report written because the error message i
ndicates its a followup error from a previous failure.
                                                      dpkg: dependency problems
 prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 5.4.0.26.32); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for cups (2.3.1-9ubuntu1) ...
Processing triggers for initramfs-tools (0.136ubuntu6) ...
update-initramfs: Generating /boot/initrd.img-5.3.0-46-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.3.0-46-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Processing triggers for linux-image-5.4.0-26-generic (5.4.0-26.30) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.0-26-generic

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area.....(bad exit status: 2)
make -j8 KERNELRELEASE=5.4.0-26-generic -C /lib/modules/5.4.0-26-generic/build M=/var/lib/dkms/rtlwifi-new/0.6/build...........(bad exit status: 2)
ERROR (dkms apport): binary package for rtlwifi-new: 0.6 not found
Error! Bad return status for module build on kernel: 5.4.0-26-generic (x86_64)
Consult /var/lib/dkms/rtlwifi-new/0.6/build/make.log for more information.
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-26-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-26-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-26-generic (--configure):
 installed linux-image-5.4.0-26-generic package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-firmware
 linux-image-generic
 linux-generic
 initramfs-tools
 linux-image-5.4.0-26-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

请帮助我,告诉我该怎么做。

相关内容