deepin20安装失败grub-install failed with efi64 deepin
Tofloor
poster avatar
安洛
deepin
2020-04-17 02:38
Author
本帖最后由 chenxiex 于 2020-4-16 19:55 编辑

安装deepin20,安装到62%的时候安装失败了,日志中有如下字样:
  1. ……
  2. grub-install:warning:Cannot set EFI variable Boot0003.
  3. grub-install:warning:vars_set_variable:write() failed: No space left on device
  4. grub-install:warning:_efi_set_variable_mode:ops->set_variable() failed:No such file or directory.
  5. grub-install:error:failed to register the EFI boot entry:No such file or directory.
  6. Failed:grub-install --target=x86_64-efi
  7. WARNING:Bootloader is not properly installed.system may not be bootable
  8. ……
  9. dpkg:error processing package grub-efi-amd-signed(--configure):
  10. installed grub-efi-amd64-signed package post-installation script subprocess returned error exist status 1
  11. ……
  12. Errors were encountered while processing:
  13. grub-efi-amd64-signed
  14. Running in chroot,ignoring request:start
  15. E:Sub-process /usr/bin/dpkg returned an error code ([1])
  16. ……
  17. !!Error:grub-install failed with efi64 deepin
  18. Hook failed:"02_setup_bootloader_x86.job"
  19. ……
Copy the Code
已确认:
md5效验码正确,secure boot关闭,windows快速启动关闭
分区情况为/分配45G,/home分配100G,/var分配35G
猜测是deepin15.11卸载不干净,因为deepin15.11可以正常安装,而我重装deepin20时是直接格式化了deein15.11的/分区后装在该位置。(话说deepin的grub是安装在哪里的)
另外虽然安装失败但是在系统efi分区下仍有一个"ubuntu"的启动项(之前deepin15.11是从这个启动项启动的)
补充:后来尝试了将efi分区删除后重建,仍然安装失败。基本排除残留问题
求大佬指点。

Reply Favorite View the author
All Replies
1 / 2
To page
avatar
wxh1
deepin
2020-04-17 02:50
#1
本帖最后由 wxh1 于 2020-4-16 18:52 编辑

我的也失败了,也是直接格式化的。
Reply View the author
avatar
安洛
deepin
2020-04-17 03:46
#2

顺便补上,我刚刚将efi分区删除再重新格式化了一遍,基本排除了残留文件的可能性。然而……
Reply View the author
avatar
安洛
deepin
2020-04-17 03:54
#3
再顶
如果没人知道的话官方可不可以来收一下这个bug啊https://bbs.deepin.org/user/48640
Reply View the author
avatar
jingle
deepin
2020-04-17 03:56
#4
https://bbs.deepin.org/post/191799
再顶
如果没人知道的话官方可不可以来收一下这个bug啊@jingle

https://bbs.deepin.org/user/101846
Reply View the author
avatar
thepoy
deepin
2020-04-17 21:54
#5
一样的问题,live下发现sbin里没有grub-install命令
Reply View the author
Comments
chenxiex
2020-04-19 18:03
问题已解决。见下方回帖
avatar
zhengtao
deepin
2020-04-18 16:57
#6
帮顶,我也是同样的问题
Reply View the author
Comments
chenxiex
2020-04-19 18:03
问题已解决。见下方回帖
avatar
yuzhejuxing
deepin
2020-04-18 17:25
#7
我安装的时候,到最后突然跳出了一个error,心里一凉,是不是失败了?后来居然正常启动了,再重启也没出现什么问题
Reply View the author
avatar
neven1127
deepin
2020-04-19 01:48
#8
Any update? I got the same error when the installation stopped at 62%. Somebody says there's an error in systemd.
Reply View the author
Comments
chenxiex
2020-04-19 18:02
I solved the problem. You can visit this site:https://unix.stackexchange.com/questions/379774/grub-installation-failed
avatar
ShineWay
deepin
2020-04-19 02:05
#9
我上次也遇到了
Reply View the author
avatar
iafs
deepin
2020-04-19 02:51
#10
hp本本 光影系列 显卡1050 TI  intel核显GRAPHIS 630,主板为可以支持UEFI 模式,原装WIN10家庭版在固态硬盘上,DEEPIN系统安在机械硬盘上,以前都是这么安装的。第一次禁用安全模式,安在机械硬盘上,没有完全安装,失败了。又试了一次安好了,但是,进不了DEEPIN20系统, WIN10可以正常启动。禁用安全模式,开启安全模式,把DEEPIN20系统顺序都调到第一,DEEPIN20还是不能启动,只能开机时,摁EXC,选择启动机械硬盘DEEPIN20才可以启动,每次都必须这样操作启动,太麻烦了。于是在UEFI安全模式下重新装了一次,在安全模式下,可以正常启动。
Reply View the author
avatar
iafs
deepin
2020-04-19 02:55
#11
https://bbs.deepin.org/post/191799
hp本本 光影系列 显卡1050 TI  intel核显GRAPHIS 630,主板为可以支持UEFI 模式,原装WIN10家庭版在固态硬 ...

看看是不是和我的差不多!
Reply View the author
avatar
152******14
deepin
2020-04-19 02:59
#12

输入法能不能默认自定义,开机悬停。现在是开机了还要一顿按键,输入试试才知道是什么输入法,中文还是英文。感觉有点不方便。
Reply View the author
avatar
iafs
deepin
2020-04-19 03:30
#13
https://bbs.deepin.org/post/191799
输入法能不能默认自定义,开机悬停。现在是开机了还要一顿按键,输入试试才知道是什么输入法,中文还是英 ...

自带的sogou输入法有问题,终端输入 sudo apt install sogoupinyin,更新就好了。其他输入法都去掉了。
Reply View the author
avatar
152******14
deepin
2020-04-19 04:29
#14
https://bbs.deepin.org/post/191799
自带的sogou输入法有问题,终端输入 sudo apt install sogoupinyin,更新就好了。其他输入法都去掉了。 ...

我再安装个搜狗试试
Reply View the author
avatar
laoma3317
deepin
2020-04-19 04:36
#15
我也失败了,安装刚开始一会儿屏幕全黑,显示信号超出范围。
Reply View the author
avatar
安洛
deepin
2020-04-19 17:59
#16

在一个大佬的帮助下解决了问题。
两种可能:
1.efi分区空间不足,无法安装grub(非本人情况,参考网络帖子)
解决方法:确认efi分区可用空间,大于100M为佳(可在windows下使用diskgenius软件操作)。
2.NVROM空间不足,bios无法写入启动项(我的情况)
参考https://www.cnblogs.com/busui/p/10758441.html
进入liveCD,建议sudo运行:
  1. mount -t efivarfs efivarfs /sys/firmware/efi/efivars
  2. rm /sys/firmware/efi/efivars/dump-*
Copy the Code

然后重新安装就可以了。
Reply View the author
avatar
thepoy
deepin
2020-04-19 19:00
#17
https://bbs.deepin.org/post/191799
在一个大佬的帮助下解决了问题。
两种可能:
1.efi分区空间不足,无法安装grub(非本人情况,参考网络帖 ...

我是在清华源下的镜像有问题,换了个源下的就能安装了
Reply View the author
avatar
mahuan
deepin
2020-05-04 05:38
#18
楼主在吗?我遇到和你一样的问题,估计是主板引导空间不足!我装系统几十次了,目前遇到这个问题,卡在62%出错!看你的回复,那些命令在什么情况下使用?我在安装界面提示要跟用户才能使用那些命令?说说处理问题的关键点
Reply View the author
avatar
安洛
deepin
2020-05-04 18:07
#19
https://bbs.deepin.org/post/191799
楼主在吗?我遇到和你一样的问题,估计是主板引导空间不足!我装系统几十次了,目前遇到这个问题,卡在62% ...

deepin20安装盘,启动项时按e编辑启动选项,删除livecd installer或类似字样,进入livecd模式。进入之后ctrl+alt+T打开终端,输入sudo -i,然后输入
  1. mount -t efivarfs efivarfs /sys/firmware/efi/efivars
Copy the Code

之后最好用
  1. ls /sys/firmware/efi/efivars
Copy the Code

查看是否有大量dump-开头的文件,如果是,那么继续执行
  1. rm /sys/firmware/efi/efivars/dump-*
Copy the Code

如果不是,则问题不在这里,请检查安装文件的md5以及检查efi分区空间。
Reply View the author
avatar
mahuan
deepin
2020-05-05 06:00
#20
谢谢老板指教
Reply View the author
1 / 2
To page