Ho aggiornato il mio Ubuntu dalla versione 25.10 alla versione 26.04. Durante l'avanzamento ho avuto qualche errore anche se poi l'avanzamento e' arrivato a termine.
Al primo avvio ho avuto un errore di kernel panic risolto con:
Codice: Seleziona tutto
sudo update-initramfs -u -k version
Il problema e' che sembra ci sia un problema con la configurazione del kernel anche se il PC parte senza problemi. Ogni volta che aggiorno il sistema ricevo un errore, se aggiorno via terminale ho:
Codice: Seleziona tutto
kaotik@kaotik:~$ sudo apt update && sudo apt upgrade
[sudo: authenticate] Password:
Trovato:1 http://security.ubuntu.com/ubuntu resolute-security InRelease
Trovato:2 http://archive.ubuntu.com/ubuntu resolute InRelease
Trovato:3 https://dl.google.com/linux/chrome-stable/deb stable InRelease
Trovato:4 http://archive.ubuntu.com/ubuntu resolute-updates InRelease
Trovato:5 https://esm.ubuntu.com/apps/ubuntu resolute-apps-security InRelease
Trovato:6 http://archive.ubuntu.com/ubuntu resolute-backports InRelease
Trovato:7 https://esm.ubuntu.com/apps/ubuntu resolute-apps-updates InRelease
Trovato:8 http://archive.ubuntu.com/ubuntu resolute-proposed InRelease
Trovato:9 https://esm.ubuntu.com/infra/ubuntu resolute-infra-security InRelease
Trovato:10 https://esm.ubuntu.com/infra/ubuntu resolute-infra-updates InRelease
3 pacchetti possono essere aggiornati: eseguire "apt list --upgradable" per vederli.
Non ancora aggiornati per via dello scaglionamento:
gnome-session-bin gnome-session-common ubuntu-session
Riepilogo:
Aggiornamento: 0, Installazione: 0, Rimozione: 0, Non aggiornati: 3
1 non completamente installati o rimossi.
Spazio richiesto: 0 B / 413 GB disponibile
Continuare? [S/n] s
Configurazione di linux-image-7.0.0-15-generic (7.0.0-15.15)...
Elaborazione dei trigger per linux-image-7.0.0-15-generic (7.0.0-15.15)...
/etc/kernel/postinst.d/dracut:
dracut: Generating /boot/initrd.img-7.0.0-15-generic
dracut[W]: If you need to use bluetooth, please include it explicitly.
dracut[W]: If you need to use bluetooth, please include it explicitly.
/etc/kernel/postinst.d/kdump-tools:
kdump-tools: Generating /var/lib/kdump/initrd.img-7.0.0-15-generic
E: /usr/share/initramfs-tools/hooks/dhcpcd failed with return 1.
update-initramfs: failed for /var/lib/kdump/initrd.img-7.0.0-15-generic with 1.
run-parts: /etc/kernel/postinst.d/kdump-tools exited with return code 1
dpkg: errore nell'elaborare il pacchetto linux-image-7.0.0-15-generic (--configure):
old linux-image-7.0.0-15-generic package postinst maintainer script subprocess failed with exit status 1
Si sono verificati degli errori nell'elaborazione:
linux-image-7.0.0-15-generic
Errore: Sub-process /usr/bin/dpkg returned an error code (1)
Codice: Seleziona tutto
kaotik@kaotik:~$ sudo dpkg --configure -a
Configurazione di linux-image-7.0.0-15-generic (7.0.0-15.15)...
Elaborazione dei trigger per linux-image-7.0.0-15-generic (7.0.0-15.15)...
/etc/kernel/postinst.d/dracut:
dracut: Generating /boot/initrd.img-7.0.0-15-generic
dracut[W]: If you need to use bluetooth, please include it explicitly.
dracut[W]: If you need to use bluetooth, please include it explicitly.
/etc/kernel/postinst.d/kdump-tools:
kdump-tools: Generating /var/lib/kdump/initrd.img-7.0.0-15-generic
E: /usr/share/initramfs-tools/hooks/dhcpcd failed with return 1.
update-initramfs: failed for /var/lib/kdump/initrd.img-7.0.0-15-generic with 1.
run-parts: /etc/kernel/postinst.d/kdump-tools exited with return code 1
dpkg: errore nell'elaborare il pacchetto linux-image-7.0.0-15-generic (--configure):
old linux-image-7.0.0-15-generic package postinst maintainer script subprocess failed with exit status 1
Si sono verificati degli errori nell'elaborazione:
linux-image-7.0.0-15-generic
kaotik@kaotik:~$ sudo apt-get install -f
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto
Risoluzione dipendenze... Fatto
0 aggiornati, 0 installati, 0 da rimuovere e 3 non aggiornati.
1 non completamente installati o rimossi.
Dopo quest'operazione, verranno occupati 0 B di spazio su disco in più.
Configurazione di linux-image-7.0.0-15-generic (7.0.0-15.15)...
Elaborazione dei trigger per linux-image-7.0.0-15-generic (7.0.0-15.15)...
/etc/kernel/postinst.d/dracut:
dracut: Generating /boot/initrd.img-7.0.0-15-generic
dracut[W]: If you need to use bluetooth, please include it explicitly.
dracut[W]: If you need to use bluetooth, please include it explicitly.
/etc/kernel/postinst.d/kdump-tools:
kdump-tools: Generating /var/lib/kdump/initrd.img-7.0.0-15-generic
E: /usr/share/initramfs-tools/hooks/dhcpcd failed with return 1.
update-initramfs: failed for /var/lib/kdump/initrd.img-7.0.0-15-generic with 1.
run-parts: /etc/kernel/postinst.d/kdump-tools exited with return code 1
dpkg: errore nell'elaborare il pacchetto linux-image-7.0.0-15-generic (--configure):
old linux-image-7.0.0-15-generic package postinst maintainer script subprocess failed with exit status 1
Si sono verificati degli errori nell'elaborazione:
linux-image-7.0.0-15-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Codice: Seleziona tutto
kaotik@kaotik:~$ sudo apt install --reinstall linux-image-$(uname -r) linux-modules-$(uname -r)
[sudo: authenticate] Password:
Riepilogo:
Aggiornamento: 0, Installazione: 0, Reinstallazione: 2Rimozione: 0, Non aggiornati: 6
1 non completamente installati o rimossi.
Dimensione scaricamento: 169 MB
Spazio richiesto: 0 B / 414 GB disponibile
Scaricamento di:1 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 linux-modules-7.0.0-15-generic amd64 7.0.0-15.15 [169 MB]
Recuperati 169 MB in 8s (22,5 MB/s)
Errore: Internal Error, No file name for linux-image-7.0.0-15-generic:amd64
Codice: Seleziona tutto
sudo cp /boot/initrd.img-7.0.0-15-generic /boot/initrd.img-7.0.0-15-generic.img.$(date +%m-%d-%H%M%S).bak
sudo dracut -v -f /boot/initrd.img-7.0.0-15-generic 7.0.0-15-generic
Codice: Seleziona tutto
kaotik@kaotik:~$ sudo cp /boot/initrd.img-7.0.0-15-generic /boot/initrd.img-7.0.0-15-generic.img.$(date +%m-%d-%H%M%S).bak
[sudo: authenticate] Password:
kaotik@kaotik:~$ sudo dracut -v -f /boot/initrd.img-7.0.0-15-generic 7.0.0-15-generic
dracut[I]: Executing: /usr/bin/dracut -v -f /boot/initrd.img-7.0.0-15-generic 7.0.0-15-generic
dracut[W]: If you need to use bluetooth, please include it explicitly.
dracut[I]: 71overlayfs-crypt: Could not find any command of 'cryptsetup'!
dracut[W]: If you need to use bluetooth, please include it explicitly.
dracut[I]: 71overlayfs-crypt: Could not find any command of 'cryptsetup'!
dracut[I]: *** Including module: console-setup ***
dracut[I]: *** Including module: dash ***
dracut[I]: *** Including module: systemd ***
dracut[I]: *** Including module: systemd-ask-password ***
dracut[I]: *** Including module: systemd-battery-check ***
dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: systemd-journald ***
dracut[I]: *** Including module: systemd-modules-load ***
dracut[I]: *** Including module: systemd-pcrextend ***
dracut[I]: *** Including module: systemd-sysctl ***
dracut[I]: *** Including module: systemd-tmpfiles ***
dracut[I]: *** Including module: systemd-udevd ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: plymouth ***
dracut[I]: *** Including module: simpledrm ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: dracut-systemd ***
dracut[I]: *** Including module: initqueue ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: systemd-sysusers ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: shell-interpreter ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving dependencies for executables and libraries ***
dracut[I]: *** Resolving dependencies for executables and libraries done ***
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing AuthenticAMD.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: Stored kernel commandline:
dracut[I]: root=UUID=804df917-be68-43b0-bca7-ed6409e1f9bc rootfstype=ext4 rootflags=rw,relatime
dracut[I]: *** Stripping files ***
dracut[I]: *** Stripping files done ***
dracut[I]: *** Creating image file '/boot/initrd.img-7.0.0-15-generic.tmp' ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: Using auto-determined compression method 'zstd'
dracut[I]: *** Creating initramfs image file '/boot/initrd.img-7.0.0-15-generic.tmp' done ***
dracut[I]: *** Moving image file '/boot/initrd.img-7.0.0-15-generic.tmp' to '/boot/initrd.img-7.0.0-15-generic' ***
dracut[I]: *** Moving image file '/boot/initrd.img-7.0.0-15-generic.tmp' to '/boot/initrd.img-7.0.0-15-generic' done *
Come detto funziona tutto, ma vorrei eliminare questo errore che ho ogni volta che cerco di aggiornare il sistema.
-----EDIT-----
Grazie a tutti per i consigli.
Leggendo un po' in giro ho capito che dracut ha sostituito completamente initramfs e che la loro coesistenza potrebbe creare problemi.
Allora ho provato a rimuovere completamente initramfs e a controllare se con drgcut fosse tutto ok:
Codice: Seleziona tutto
sudo apt purge initramfs-tools initramfs-tools-core initramfs-tools-bin
sudo apt install dracut dracut-core
sudo dracut -f --regenerate-all
sudo apt update && sudo apt upgrade
sudo apt autoremove

