[Seek Help] apt-get 报错
Tofloor
poster avatar
justincao
deepin
2021-07-05 18:52
Author

更新后,系统正常启动,但发现apt-get命令一直报如下信息:

有 3 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 grub-efi-amd64-signed (1.67.2+2.04+dde) ...
正在为 x86_64-efi 平台进行安装。
grub-install:警告: Cannot set EFI variable Boot0001.
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 Boot0001.
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)

请问这是怎么回事?

Reply Favorite View the author
All Replies
不会开车有驾照
deepin
2021-07-05 19:37
#1

单独安装软件包shim-signed

Reply View the author
Ziggy
deepin
2021-07-05 20:08
#2

你这个一般是efi文件被Windows改过,我都是重装的

Reply View the author
justincao
deepin
2021-07-06 01:10
#3
Ziggy

你这个一般是efi文件被Windows改过,我都是重装的

这台机器没有windows,全盘装的deepin啊

Reply View the author
Ziggy
deepin
2021-07-06 01:15
#4
justincao

这台机器没有windows,全盘装的deepin啊

把安全启动开了再更新

Reply View the author
justincao
deepin
2021-07-06 01:21
#5
Ziggy

把安全启动开了再更新

sudo apt-get install -f
请输入密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 grub-efi-amd64-signed (1.67.2+2.04+dde) ...
正在为 x86_64-efi 平台进行安装。
grub-install:警告: Cannot set EFI variable Boot0001.
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 Boot0001.
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)

开了bios里的“安全启动”,没有改变

Reply View the author
Ziggy
deepin
2021-07-06 04:56
#6
justincao

sudo apt-get install -f
请输入密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 grub-efi-amd64-signed (1.67.2+2.04+dde) ...
正在为 x86_64-efi 平台进行安装。
grub-install:警告: Cannot set EFI variable Boot0001.
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 Boot0001.
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)

开了bios里的“安全启动”,没有改变

那就是efi文件被动过了,我都是重装的

Reply View the author
justincao
deepin
2021-07-06 19:13
#7
Ziggy

那就是efi文件被动过了,我都是重装的

按 https://unix.stackexchange.com/questions/627548/cannot-set-efi-variable-boot0000-no-space-left-on-device 文的做法,删了 /sys/firmware/efi/efivars 目录中所有的dump文件后重启,apt-get就过去了

Reply View the author
mcu-mi
deepin
2021-07-20 17:11
#8
justincao

按 https://unix.stackexchange.com/questions/627548/cannot-set-efi-variable-boot0000-no-space-left-on-device 文的做法,删了 /sys/firmware/efi/efivars 目录中所有的dump文件后重启,apt-get就过去了

删除所有dump文件重启,好使了,谢谢!

Reply View the author
tongge
deepin
2021-07-30 07:47
#9
justincao

按 https://unix.stackexchange.com/questions/627548/cannot-set-efi-variable-boot0000-no-space-left-on-device 文的做法,删了 /sys/firmware/efi/efivars 目录中所有的dump文件后重启,apt-get就过去了

确实通过了,好使

Reply View the author
arrowarcher
deepin
2022-01-10 20:41
#10
justincao

按 https://unix.stackexchange.com/questions/627548/cannot-set-efi-variable-boot0000-no-space-left-on-device 文的做法,删了 /sys/firmware/efi/efivars 目录中所有的dump文件后重启,apt-get就过去了

感谢,解决了

Reply View the author