我的Linux Debian v9.11.0(Stretch)目前已GRUB1
安装。
root@Debian:~# grub-install -v
grub-install (GNU GRUB 0.97)
我的其他Ubuntu Linux已GRUB2
安装:
root@Ubuntu:~# grub-install -V
grub-install (GRUB) 2.02+dfsg1-20
我想安装GRUB2
,但是如果我尝试使用Debian将其安装在Debian上apt-get install grub2
,则将安装beta版GRUB2
!
root@Debian:~# grub-install -V
grub-install (GRUB) 2.02~beta3-5+deb9u2
我不希望这个Beta版本-我想要一个稳定的版本,GRUB2
例如Ubuntu已安装的版本。
当GRUB2
从Debian中搜索可用的软件包时,我只会beta
列出以下软件包:
root@Debian:~# apt search GRUB2
Sorting... Done
Full Text Search... Done
grub-imageboot/oldstable 0.6 all
boot iso, harddisk and floppy images with grub2 and syslinux memdisk
grub2/oldstable,now 2.02~beta3-5+deb9u2 amd64 [residual-config]
GRand Unified Bootloader, version 2 (dummy package)
grub2-common/oldstable 2.02~beta3-5+deb9u2 amd64
GRand Unified Bootloader (common files for version 2)
grub2-splashimages/oldstable 1.0.1+nmu1 all
a collection of great GRUB2 splashimages
live-wrapper/oldstable 0.6+nmu1 all
Wrapper for vmdebootstrap for creating live images
live-wrapper-doc/oldstable 0.6+nmu1 all
Wrapper for vmdebootstrap for creating live images (Documentation)
vmdebootstrap/oldstable 1.7-1 amd64
Bootstrap Debian into a (virtual machine) disk image
如何在Debian上安装的非Beta版本GRUB2
?
您可以从buster安装与Ubuntu相同的当前版本。
正如描述的这个答案,你可以在主巴斯特库添加到您的APT源,并设置默认释放到“拉伸”给从拉伸包更高的优先级。然后,您可以使用手动从Buster安装更新的软件包sudo apt -t buster install nameofpackage
。
指示:
创建/etc/apt/sources.list.d/buster.list
包含破坏者主存储库的文件
deb http://deb.debian.org/debian buster main
/etc/apt/apt.conf.d/default-release
使用此内容创建文件
APT::Default-Release "stretch";
选择“ stretch”或“ oldstable”作为默认发行版名称。
跑步
sudo apt update
更新您的包裹索引。
如果现在运行,apt policy grub2
则输出应类似于以下内容:
apt policy grub2
grub2:
Installed: (none)
Candidate: 2.02~beta3-5+deb9u2
Version table:
2.02+dfsg1-20 500
500 http://deb.debian.org/debian buster/main amd64 Packages
2.02~beta3-5+deb9u2 990
990 http://ftp.de.debian.org/debian stretch/main amd64 Packages
如您所见,buster存储库中的版本的优先级较低,为500。
安装或升级grub2
使用
sudo apt -t buster install grub2
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句