Bonjour ikewdu
Je suis d'accord avec toi sur la bonne façon d'installer ubuntu lorsqu'on dispose d'un ordinateur EFI mais l'installateur utilise le grub pour booter alors qu'il y a nettement mieux.
Cette fois-ci je vais tenter d'utiliser boot-repair pour
RECTIFIER quelque chose de déjà installé. J'ai été dans l'obligation de m'en servir en installant la version 20.04 beta qui n'avait pas encore incorporé la partie signée.
La séquence clé est ce que tu as noté: Dire à boot-repair d'utiliser ces modules
grub-efi et grub-efi-amd64 au lieu des modules signés.
Si cela dérape trop, il y a toujours la solution de secours d'une réinstallation en commençant par installer refind même si on peut s'en passer lorsque la fonctionnalité dual boot n'est pas désirée.
Je lis tranquillement ton document et je vais le mémoriser. En pratique, c'est ce qui faudrait dire dans la documentation DUAL-BOOT EFI
===> lecture rapide de ton document
"Attention ! Dans le cas d’un dual-boot, le fichier bootmgfw.efi existerait déjà, et il faudrait le renommer préalablement en bootmgfw-origine.efi pour ne pas risquer de perdre son Windows."
Je propose
"Attention ! Dans le cas d’un dual-boot, le fichier bootmgfw.efi existerait déjà, et il faudrait le renommer préalablement en bkpbootmgfw.efi pour que refind puisse aussi proposer le démarrage de Windows."
UN GROS AJOUT dans un autre contexte
root@ubuntu:/boot# apt install grub-efi-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package grub-efi-amd64 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
grub-common grub2-common grub-pc
E: Package 'grub-efi-amd64' has no installation candidate
root@ubuntu:/boot#
La réponse au problème: S'assurer que le fichier
/etc/apt/sources.list et en bon état. Ne pas hésiter à corriger ses anomalies afin qu'il devienne par exemple
deb http://old-releases.ubuntu.com/ubuntu/ wily main restricted
deb http://old-releases.ubuntu.com/ubuntu/ wily-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ wily universe
deb http://old-releases.ubuntu.com/ubuntu/ wily-updates universe
deb http://old-releases.ubuntu.com/ubuntu/ wily multiverse
deb http://old-releases.ubuntu.com/ubuntu/ wily-updates multiverse
deb http://old-releases.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu wily-security main restricted
deb http://old-releases.ubuntu.com/ubuntu wily-security universe
deb http://old-releases.ubuntu.com/ubuntu wily-security multiverse
Il ne reste plus qu'à mettre a jour (apt update && apt upgrade ) et constater que tout est devenu bon pour refind
root@ubuntu:/boot# ls -als
total 95324
4 drwxr-xr-x 4 root root 4096 May 5 15:51 .
4 drwxr-xr-x 23 root root 4096 May 5 15:45 ..
1284 -rw-r--r-- 1 root root 1311978 Oct 8 2015 abi-4.2.0-16-generic
1284 -rw-r--r-- 1 root root 1313590 Jun 29 2016 abi-4.2.0-42-generic
184 -rw-r--r-- 1 root root 184809 Oct 8 2015 config-4.2.0-16-generic
184 -rw-r--r-- 1 root root 184926 Jun 29 2016 config-4.2.0-42-generic
4 drwxr-xr-x 2 root root 4096 May 5 13:21 efi
4 drwxr-xr-x 2 root root 4096 May 5 15:50 grub
35580 -rw-r--r-- 1 root root 36432536 May 5 15:39 initrd.img-4.2.0-16-generic
35568 -rw-r--r-- 1 root root 36419918 May 5 15:51 initrd.img-4.2.0-42-generic
180 -rw-r--r-- 1 root root 182704 Aug 27 2015 memtest86+.bin
184 -rw-r--r-- 1 root root 184380 Aug 27 2015 memtest86+.elf
184 -rw-r--r-- 1 root root 184840 Aug 27 2015 memtest86+_multiboot.bin
3656 -rw------- 1 root root 3740437 Oct 8 2015 System.map-4.2.0-16-generic
3660 -rw------- 1 root root 3747027 Jun 29 2016 System.map-4.2.0-42-generic
6680 -rw------- 1 root root 6838032 Jun 29 2016 vmlinuz-4.2.0-42-generic
6680 -rw------- 1 root root 6839960 May 5 15:49 vmlinuz-4.2.0-42-generic.efi.signed
root@ubuntu:/boot#