Ubuntu 20.04 apt autoremove 错误:dpkg:处理软件包 linux-image-5.4.0-56-generic (--remove) 时出错:

Ubuntu 20.04 apt autoremove 错误:dpkg:处理软件包 linux-image-5.4.0-56-generic (--remove) 时出错:

以下错误阻止我在 Ubuntu 20.04 中安装更新。运行时会发生这种情况sudo apt autoremove。我也尝试过sudo apt update/upgrade类似的结果。感谢帮助。谢谢

Removing linux-image-5.4.0-56-generic (5.4.0-56.62) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-56-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
/etc/grub.d/10_linux: 48: tr: not found
Found linux image: /boot/vmlinuz-5.4.0-58-generic
/etc/grub.d/10_linux: 1: tr: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.4.0-56-generic (--remove):
 installed linux-image-5.4.0-56-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-5.4.0-56-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容