베타 버전을 설치하지 않고 GRUB v1을 GRUB v2로 업그레이드하는 방법은 무엇입니까?

베타 버전을 설치하지 않고 GRUB v1을 GRUB v2로 업그레이드하는 방법은 무엇입니까?

내 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데비안에 설치하려고 하면 apt-get install grub2베타버전이 설치되더라구요!GRUB2

root@Debian:~# grub-install -V
grub-install (GRUB) 2.02~beta3-5+deb9u2

GRUB2나는 이 베타 버전을 원하지 않습니다. Ubuntu가 설치된 것과 같은 안정적인 버전을 원합니다 .

GRUB2Debian에서 사용 가능한 패키지를 검색하면 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

설치하는 방법비베타GRUB2데비안 버전?

답변1

다음에서 현재 버전을 설치할 수 있습니다.버스터이는 Ubuntu 버전과 동일합니다.

에서 언급했듯이이 답변, 적절한 소스에 버스터 마스터 저장소를 추가하고 기본 버전을 "stretch"로 설정하여 확장 중인 패키지에 더 높은 우선 순위를 부여할 수 있습니다. 그런 다음 sudo apt -t buster install nameofpackage.

지시하다:

  1. /etc/apt/sources.list.d/buster.listBuster Master 저장소가 포함된 파일을 만듭니다 .

    deb http://deb.debian.org/debian buster main
    
  2. /etc/apt/apt.conf.d/default-release이 콘텐츠로 파일 만들기

    APT::Default-Release "stretch";
    

    기본 버전 이름으로 "stretch" 또는 "oldstable"을 선택합니다.

  3. 달리기

    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
    

    보시다시피, 버스터 저장소의 버전은 우선순위가 500으로 낮습니다.

  4. 설치 또는 grub2업그레이드

    sudo apt -t buster install grub2
    

관련 정보