linux-image-5.8.0-7630-generic

linux-image-5.8.0-7630-generic

升级后,Linux 会发生这种情况并给出错误。
我在终端中输入的每个代码都会给出相同的错误。
我尝试了这三种方法,但没有成功。

sudo apt install -f
sudo dpkg --configure -a
sudo apt autoremove -f -y

错误 :

Reading package lists... Done\
Building dependency tree\
Reading state information... Done\
Calculating upgrade... Done\
The following packages will be REMOVED:\
  linux-image-5.8.0-7630-generic\
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.\
4 not fully installed or removed.\
After this operation, 13.9 MB disk space will be freed.\
Do you want to continue? [Y/n] y\
(Reading database ... 259993 files and directories currently installed.)\
Removing linux-image-5.8.0-7630-generic (5.8.0-7630.32~1609174078~20.04~4b8d17c) ...\
/etc/kernel/postrm.d/initramfs-tools:\
update-initramfs: Deleting /boot/initrd.img-5.8.0-7630-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 ...\
Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing\
Syntax errors are detected in generated GRUB config file.\
Ensure that there are no errors in /etc/default/grub\
and /etc/grub.d/* files or please file a bug report with\
/boot/grub/grub.cfg.new file attached.\
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1\
dpkg: error processing package linux-image-5.8.0-7630-generic (--remove):\
 installed linux-image-5.8.0-7630-generic package post-removal script subprocess returned error exit status 1\
dpkg: too many errors, stopping\
Errors were encountered while processing:\
 linux-image-5.8.0-7630-generic\
Processing was halted because there were too many errors.\
E: Sub-process /usr/bin/dpkg returned an error code (1)

在此输入图像描述

但 /etc/grub.d 中没有文件。

在此输入图像描述

在此输入图像描述

相关内容