文章内容
2022/2/26 15:19:46,作 者: 黄兵
dpkg: error processing package initramfs-tools
今天在系统升级的时候出现了如下提示:
Reading package lists... Building dependency tree... Reading state information... 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up linux-image-4.15.0-47-generic (4.15.0-47.50) ... Setting up initramfs-tools (0.130ubuntu3.7) ... update-initramfs: deferring update (trigger activated) Processing triggers for linux-image-4.15.0-47-generic (4.15.0-47.50) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-4.15.0-47-generic E: /usr/share/initramfs-tools/hooks/fsck failed with return 1. update-initramfs: failed for /boot/initrd.img-4.15.0-47-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-4.15.0-47-generic (--configure): installed linux-image-4.15.0-47-generic package post-installation script subprocess returned error exit status 1 Processing triggers for initramfs-tools (0.130ubuntu3.7) ... update-initramfs: Generating /boot/initrd.img-4.15.0-47-generic E: /usr/share/initramfs-tools/hooks/fsck failed with return 1. update-initramfs: failed for /boot/initrd.img-4.15.0-47-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: linux-image-4.15.0-47-generic initramfs-tools
出现问题的原因:
可能是 initramfs-tools 包的问题。
解决方案:
执行如下命令:
sudo apt remove initramfs-tools sudo apt clean sudo apt install initramfs-tools
参考资料:
Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
CDN
CDN
评论列表