Je rencontre un bug lors de l'exécution de sudo apt upgrade -y sous Ubuntu LTS 24.04 installé sur un Scaleway Elastic Metal, modèle EM-A115X-SSD.
Précision : j'ai effectué la même opération sur une Ubuntu LTS 22.04 et je n'ai pas rencontré le problème.
Voici un extrait du fichier Terraform que j'utilise pour déployer ce serveur :
resource "scaleway_baremetal_server" "server1" {
project_id = var.sandbox_project_id
name = "server1"
hostname = "server1"
offer = "EM-A115X-SSD" # tips: scw baremetal offer list
os = "7d1914e1-f4ab-47fc-bd8c-b3a23143e87a" # 24.04 LTS (Noble Numbat)
# tips: `scw baremetal os list`
ssh_key_ids = [
scaleway_account_ssh_key.stephane-klein-public-ssh-key-dev.id,
]
}Le serveur vient juste d'être installé, je n'ai effectué aucune opération sur celui-ci :
$ ssh ....
ubuntu@server1:~$ sudo su
root@server1:/home/ubuntu# apt update -y
...
root@server1:/home/ubuntu# apt upgrade -y
...
Setting up linux-virtual (6.8.0-54.56) ...
Setting up grub-pc (2.12-1ubuntu7.1) ...
Installing for i386-pc platform.
mdadm: /dev/md does not appear to be an md device
grub-install: error: ioctl RAID_VERSION error: Inappropriate ioctl for device.
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
Setting up linux-tools-6.8.0-54-generic (6.8.0-54.56) ...
Setting up systemd-timesyncd (255.4-1ubuntu8.5) ...
Setting up udev (255.4-1ubuntu8.5) ...
Setting up git (1:2.43.0-1ubuntu7.2) ...
dpkg: dependency problems prevent configuration of grub2:
grub2 depends on grub-pc (= 2.12-1ubuntu7.1); however:
Package grub-pc is not configured yet.
dpkg: error processing package grub2 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up curl (8.5.0-2ubuntu10.6) ...
Setting up netplan-generator (1.1.1-1~ubuntu24.04.1) ...
Removing 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator'
Setting up bind9-host (1:9.18.30-0ubuntu0.24.04.2) ...
Setting up systemd-resolved (255.4-1ubuntu8.5) ...
Setting up snapd (2.66.1+24.04) ...
snapd.failure.service is a disabled or a static unit not running, not starting it.
snapd.snap-repair.service is a disabled or a static unit not running, not starting it.
Setting up openssh-sftp-server (1:9.6p1-3ubuntu13.8) ...
Setting up udisks2 (2.10.1-6ubuntu1) ...
Setting up systemd-sysv (255.4-1ubuntu8.5) ...
dpkg: dependency problems prevent configuration of grub-efi-amd64-signed:
grub-efi-amd64-signed depends on grub-efi-amd64 | grub-pc; however:
Package grub-efi-amd64 is not installed.
Package grub-pc is not configured yet.
dpkg: error processing package grub-efi-amd64-signed (--configure):
dependency problems - leaving unconfigured
Setting up openssh-server (1:9.6p1-3ubuntu13.8) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libfwupd2:amd64 (1.9.27-0ubuntu1~24.04.1) ...
Setting up libnss-systemd:amd64 (255.4-1ubuntu8.5) ...
Setting up open-iscsi (2.1.9-3ubuntu5.2) ...
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Processing triggers for initramfs-tools (0.142ubuntu25.4) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-54-generic
Errors were encountered while processing:
grub-pc
grub2
grub-efi-amd64-signed
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)