[Seek Help] grub2 怎么还原为最初的样式
Tofloor
poster avatar
zengwang
deepin
2021-01-23 19:31
Author

按照网上各个方法,改grub的样式,现在改花了,觉得还是最初的好,怎么还原

Reply Favorite View the author
All Replies
WangZhongyun
deepin
2021-01-23 19:39
#1

怎么来的,就怎么回去吧

Reply View the author
zengwang
deepin
2021-01-23 20:04
#2
WangZhongyun

怎么来的,就怎么回去吧

我要是会的话,自然不会来问了,比如从gnome-look下载安装了,之类的。我也不知道该怎么还原啊

 

Reply View the author
sghnm
deepin
2021-01-23 20:07
#3

sudo apt purge grub2 

sudo apt install grub2

sudo grub-install /dev/sda

sudo update-grub

Reply View the author
zengwang
deepin
2021-01-23 20:17
#4
sghnm

sudo apt purge grub2 

sudo apt install grub2

sudo grub-install /dev/sda

sudo update-grub

root@LAPTOP-31OKSJFV:~# sudo apt purge grub2 

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

软件包 grub2 未安装,所以不会被卸载

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

root@LAPTOP-31OKSJFV:~# 

root@LAPTOP-31OKSJFV:~# sudo apt install grub2

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是

因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件

包尚未被创建或是它们已被从新到(Incoming)目录移出。

下列信息可能会对解决问题有所帮助:

 

下列软件包有未满足的依赖关系:

 grub2 : 依赖: grub-pc (= 2.02.24.3-1+eagle)

E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

root@LAPTOP-31OKSJFV:~# 

root@LAPTOP-31OKSJFV:~# sudo grub-install /dev/sda6

Installing for x86_64-efi platform.

sInstallation finished. No error reported.

root@LAPTOP-31OKSJFV:~# 

root@LAPTOP-31OKSJFV:~# sudo update-grubs

sudo: update-grubs:找不到命令

root@LAPTOP-31OKSJFV:~# sudo update-grub

Generating grub configuration file ...

Found theme: /usr/share/grub/themes/Tela/theme.txt

Found background image: /boot/grub/themes/deepin/background.jpg

Found linux image: /boot/vmlinuz-5.10.9-amd64-desktop

Found initrd image: /boot/initrd.img-5.10.9-amd64-desktop

Found linux image: /boot/vmlinuz-5.4.70-amd64-desktop

Found initrd image: /boot/initrd.img-5.4.70-amd64-desktop

  /dev/sdb: open failed: 找不到介质

Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi

Adding boot menu entry for EFI firmware configuration

done

Reply View the author
ksgt0025
deepin
2021-01-23 20:26
#5

应该是看了这个帖子吧

Reply View the author
zengwang
deepin
2021-01-23 23:17
#6

大佬们应该怎么做啊

Reply View the author
sghnm
deepin
2021-01-24 00:04
#7
zengwang

root@LAPTOP-31OKSJFV:~# sudo apt purge grub2 

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

软件包 grub2 未安装,所以不会被卸载

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

root@LAPTOP-31OKSJFV:~# 

root@LAPTOP-31OKSJFV:~# sudo apt install grub2

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是

因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件

包尚未被创建或是它们已被从新到(Incoming)目录移出。

下列信息可能会对解决问题有所帮助:

 

下列软件包有未满足的依赖关系:

 grub2 : 依赖: grub-pc (= 2.02.24.3-1+eagle)

E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

root@LAPTOP-31OKSJFV:~# 

root@LAPTOP-31OKSJFV:~# sudo grub-install /dev/sda6

Installing for x86_64-efi platform.

sInstallation finished. No error reported.

root@LAPTOP-31OKSJFV:~# 

root@LAPTOP-31OKSJFV:~# sudo update-grubs

sudo: update-grubs:找不到命令

root@LAPTOP-31OKSJFV:~# sudo update-grub

Generating grub configuration file ...

Found theme: /usr/share/grub/themes/Tela/theme.txt

Found background image: /boot/grub/themes/deepin/background.jpg

Found linux image: /boot/vmlinuz-5.10.9-amd64-desktop

Found initrd image: /boot/initrd.img-5.10.9-amd64-desktop

Found linux image: /boot/vmlinuz-5.4.70-amd64-desktop

Found initrd image: /boot/initrd.img-5.4.70-amd64-desktop

  /dev/sdb: open failed: 找不到介质

Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi

Adding boot menu entry for EFI firmware configuration

done

把grub2换成grub-pc试一下

大概就是先彻底删除grub包括配置文件,然后再装一遍就行了

Reply View the author
WangZhongyun
deepin
2021-01-24 05:58
#8
zengwang

root@LAPTOP-31OKSJFV:~# sudo apt purge grub2 

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

软件包 grub2 未安装,所以不会被卸载

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

root@LAPTOP-31OKSJFV:~# 

root@LAPTOP-31OKSJFV:~# sudo apt install grub2

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是

因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件

包尚未被创建或是它们已被从新到(Incoming)目录移出。

下列信息可能会对解决问题有所帮助:

 

下列软件包有未满足的依赖关系:

 grub2 : 依赖: grub-pc (= 2.02.24.3-1+eagle)

E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

root@LAPTOP-31OKSJFV:~# 

root@LAPTOP-31OKSJFV:~# sudo grub-install /dev/sda6

Installing for x86_64-efi platform.

sInstallation finished. No error reported.

root@LAPTOP-31OKSJFV:~# 

root@LAPTOP-31OKSJFV:~# sudo update-grubs

sudo: update-grubs:找不到命令

root@LAPTOP-31OKSJFV:~# sudo update-grub

Generating grub configuration file ...

Found theme: /usr/share/grub/themes/Tela/theme.txt

Found background image: /boot/grub/themes/deepin/background.jpg

Found linux image: /boot/vmlinuz-5.10.9-amd64-desktop

Found initrd image: /boot/initrd.img-5.10.9-amd64-desktop

Found linux image: /boot/vmlinuz-5.4.70-amd64-desktop

Found initrd image: /boot/initrd.img-5.4.70-amd64-desktop

  /dev/sdb: open failed: 找不到介质

Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi

Adding boot menu entry for EFI firmware configuration

done

你把grub安装到sda6是不能看到启动的grub的,如果这个系统能进入且这系统原来的grub是你喜欢的话,需在这系统里sudo grub-install /dev/sda完成后重启。

Reply View the author