web-dev-qa-db-fra.com

Vos noyaux ne sont pas signés. Ce système ne pourra pas démarrer dans un environnement de démarrage sécurisé

J'ai installé le noyau principal 4.18 à partir d'ici http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18/ en utilisant ubuntu 18.04

Les packages ne sont pas signés et grub s'en plaint à chaque mise à jour.

E: Your kernels are unsigned. This system will fail to boot in a secure boot environment.

Comment puis-je faire disparaître le message? Ou faire signer 4.18?

Je ne cherche pas à construire mon propre noyau.

3
Calin

J'ai fini de revenir au noyau par défaut d'ubuntu et tout fonctionne comme prévu.

1
Calin

Mon processus pour supprimer le noyau non signé (oublié que je l'avais installé?):

$ uname -r
4.17.2-041702-generic

$ ls /boot/
abi-4.15.0-23-generic             memtest86+.elf
abi-4.15.0-34-generic             memtest86+_multiboot.bin
abi-4.17.2-041702-generic         retpoline-4.15.0-23-generic
config-4.15.0-23-generic          retpoline-4.15.0-34-generic
config-4.15.0-34-generic          retpoline-4.17.2-041702-generic
config-4.17.2-041702-generic      System.map-4.15.0-23-generic
efi                               System.map-4.15.0-34-generic
grub                              System.map-4.17.2-041702-generic
initrd.img-4.15.0-23-generic      vmlinuz-4.15.0-23-generic
initrd.img-4.15.0-34-generic      vmlinuz-4.15.0-34-generic
initrd.img-4.17.2-041702-generic  vmlinuz-4.17.2-041702-generic
memtest86+.bin

$ dpkg -S /boot/vmlinuz-4.17.2-041702-generic
linux-image-unsigned-4.17.2-041702-generic: /boot/vmlinuz-4.17.2-041702-generic

$ dpkg --list | grep 4.17.2
ii  linux-headers-4.17.2-041702                4.17.2-041702.201806160433                 all          Header files related to Linux kernel version 4.17.2
ii  linux-image-unsigned-4.17.2-041702-generic 4.17.2-041702.201806160433                 AMD64        Linux kernel image for version 4.17.2 on 64 bit x86 SMP
ii  linux-modules-4.17.2-041702-generic        4.17.2-041702.201806160433                 AMD64        Linux kernel extra modules for version 4.17.2 on 64 bit x86 SMP

$ dpkg --list | grep 4.17.2 | awk '{print $2}'
linux-headers-4.17.2-041702
linux-image-unsigned-4.17.2-041702-generic
linux-modules-4.17.2-041702-generic

$ Sudo apt-get purge $(dpkg --list | grep 4.17.2 | awk '{print $2}')
[Sudo] password for alex:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-4.17.2-041702* linux-image-unsigned-4.17.2-041702-generic*
linux-modules-4.17.2-041702-generic*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 308 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 203507 files and directories currently installed.)
Removing linux-headers-4.17.2-041702 (4.17.2-041702.201806160433) ...
Removing linux-image-unsigned-4.17.2-041702-generic (4.17.2-041702.201806160433) ...
W: Removing the running kernel
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.15.0-23-generic
I: /initrd.img.old is now a symlink to boot/initrd.img-4.15.0-23-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.17.2-041702-generic
0
Alex Deddo