运行一下
sudo LC_ALL=C grub-install --debug
贴一下最后若干行的输出即可。
运行一下
sudo LC_ALL=C grub-install --debug
贴一下最后若干行的输出即可。
运行一下
sudo LC_ALL=C grub-install --debug
贴一下最后若干行的输出即可。
grub-install: info: copying `/usr/lib/shim/shimx64.efi.signed' -> `/boot/efi/EFI/deepin/shimx64.efi'.
grub-install: info: copying `/usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed' -> `/boot/efi/EFI/deepin/grubx64.efi'.
grub-install: info: copying `/usr/lib/shim/mmx64.efi.signed' -> `/boot/efi/EFI/deepin/mmx64.efi'.
grub-install: info: copying `/usr/lib/shim/fbx64.efi.signed' -> `/boot/efi/EFI/deepin/fbx64.efi'.
grub-install: info: copying `/usr/lib/shim/BOOTX64.CSV' -> `/boot/efi/EFI/deepin/BOOTX64.CSV'.
grub-install: info: copying `/boot/grub/x86_64-efi/load.cfg' -> `/boot/efi/EFI/deepin/grub.cfg'.
grub-install: info: Registering with EFI: distributor = `deepin', path = `\EFI\deepin\shimx64.efi', ESP at hostdisk//dev/sda,gpt1.
grub-install: info: executing modprobe efivars 2>/dev/null.
grub-install: info: setting EFI variable Boot0002.
grub-install: warning: Cannot set EFI variable Boot0002.
grub-install: warning: efivarfs_set_variable: writing to fd 6 failed: No space left on device.
grub-install: warning: _efi_set_variable_mode: ops->set_variable() failed: No space left on device.
grub-install: error: failed to register the EFI boot entry: No space left on device.
看看是不是这个问题。也就是看看有没有 /sys/firmware/efi/efivars/dump-* 文件,有的话删掉,重启系统再试。
重启之前检查一下是否缺少 /boot/efi/EFI/deepin/grub.efi 和 /boot/efi/EFI/UOS/grub.cfg 文件,缺的话按这个帖子修正,否则可能进不了系统:
https://bbs.deepin.org/zh/post/222049
看看是不是这个问题。也就是看看有没有 /sys/firmware/efi/efivars/dump-* 文件,有的话删掉,重启系统再试。
重启之前检查一下是否缺少 /boot/efi/EFI/deepin/grub.efi 和 /boot/efi/EFI/UOS/grub.cfg 文件,缺的话按这个帖子修正,否则可能进不了系统:
https://bbs.deepin.org/zh/post/222049
感谢,已解决
Setting up grub-efi-amd64-signed (1.67.4+2.04+dde) ...
get rootb uuid error: failed to get "rootb" uuid
cp: cannot stat '/usr/lib/shim/shimx64.efi.signed': No such file or directory
dpkg: error processing package grub-efi-amd64-signed (--configure):
installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
grub-efi-amd64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
提示找不到这个文件 :'/usr/lib/shim/shimx64.efi.signed',请问这个问题你遇到过吗?是在执行sudo apt upgrade时提示的。@ duanyao
Popular Ranking
ChangePopular Events
More
正在设置 grub-efi-amd64-signed (1.67.2+2.04+dde) ...
正在为 x86_64-efi 平台进行安装。
grub-install:警告: Cannot set EFI variable Boot0000.
grub-install:警告: efivarfs_set_variable: writing to fd 6 failed: 设备上没有空间.
grub-install:警告: _efi_set_variable_mode: ops->set_variable() failed: 设备上没有空间.
grub-install:错误: failed to register the EFI boot entry: 设备上没有空间.
dpkg: 处理软件包 grub-efi-amd64-signed (--configure)时出错:
已安装 grub-efi-amd64-signed 软件包 post-installation 脚本 子进程返回错误状态 1
正在设置 shim-helpers-amd64-signed (1+15.4+5) ...
正在为 x86_64-efi 平台进行安装。
grub-install:警告: Cannot set EFI variable Boot0000.
grub-install:警告: efivarfs_set_variable: writing to fd 7 failed: 设备上没有空间.
grub-install:警告: _efi_set_variable_mode: ops->set_variable() failed: 设备上没有空间.
grub-install:错误: failed to register the EFI boot entry: 设备上没有空间.
dpkg: 处理软件包 shim-helpers-amd64-signed (--configure)时出错:
已安装 shim-helpers-amd64-signed 软件包 post-installation 脚本 子进程返回错误状态 1
dpkg: 依赖关系问题使得 shim-signed:amd64 的配置工作不能继续:
shim-signed:amd64 依赖于 shim-helpers-amd64-signed (>= 1+15.4+2);然而:
软件包 shim-helpers-amd64-signed 尚未配置。
dpkg: 处理软件包 shim-signed:amd64 (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
grub-efi-amd64-signed
shim-helpers-amd64-signed
shim-signed:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)