我正在运行内核 5.19.0-50-generic,同时当使用新内核 6.2.0-26-generic 开始启动时导致内核崩溃。
我不知道为什么。
我们正在使用主线内核来维护内核。此外,如果我们尝试删除内核 6.2.0-26-generic,也会失败。
这是/boot
文件夹下的文件:
@komp:/boot$ ls
config-5.19.0-50-generic initrd.img.old vmlinuz
config-6.2.0-26-generic memtest86+.bin vmlinuz-5.19.0-50-generic
efi memtest86+.elf vmlinuz-6.2.0-26-generic
grub memtest86+_multiboot.bin vmlinuz.old
initrd.img System.map-5.19.0-50-generic
initrd.img-5.19.0-50-generic System.map-6.2.0-26-generic
在这里我尝试安装 nodejs,但是出现与内核 6.2.0-26 相关的错误(同时它现在在内核 5.19.0-50-generic 下运行)。
komp:~$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nodejs is already the newest version (18.17.1-deb-1nodesource1).
The following packages were automatically installed and are no longer required:
libfreerdp-client2-2 libfreerdp-server2-2 libfreerdp2-2 libjs-highlight.js libvncserver1
libwinpr2-2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 296 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.140ubuntu13) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-6.2.0-26-generic (6.2.0-26.26~22.04.1) ...
Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.img-5.19.0-50-generic
E: /usr/share/initramfs-tools/hooks/fuse failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.19.0-50-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-6.2.0-26-generic (6.2.0-26.26~22.04.1) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 6.2.0-26-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-26-generic
E: /usr/share/initramfs-tools/hooks/fuse failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.2.0-26-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-6.2.0-26-generic (--configure):
installed linux-image-6.2.0-26-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
linux-image-6.2.0-26-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
我怀疑这个错误:
E: /usr/share/initramfs-tools/hooks/fuse failed with return 1.
我们该如何解决这个问题?感谢您的帮助。