[RISOLTO] Problema dopo avanzamento da 25.10 a 26.04

Problemi riscontrati durante l'installazione di Ubuntu, degli aggiornamenti e degli avanzamenti del sistema.
Avatar utente
kaotik
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 364
Iscrizione: mercoledì 25 aprile 2007, 12:55

[RISOLTO] Problema dopo avanzamento da 25.10 a 26.04

Messaggio da kaotik »

Salve a tutti.
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
Ora il PC si avvia con il kernel 7.0.0-15 senza problemi.
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)
Ho provato con i seguenti comandi:

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)
Ho provato anche a reinstallare i pacchetti kernel:

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
Ho provato anche:

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
con questo risultato:

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 *
Ma il problema persiste.
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
Dando questi comandi il problema e' stato risolto e non ho piu' il messaggio di errore.
Ultima modifica di kaotik il venerdì 29 maggio 2026, 14:52, modificato 1 volta in totale.
Avatar utente
wilecoyote
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 17048
Iscrizione: giovedì 20 agosto 2009, 16:21
Desktop: Kubuntu et alii
Distribuzione: 9.04 32bit 14/18/20/22.04 LTS 64bit
Sesso: Maschile
Località: Ceranesi - Ge

Re: Problema dopo avanzamento da 25.10 a 26.04

Messaggio da wilecoyote »

) Salve, mi sono alquanto perso nei tuoi output, non ho capito se hai dato anche i comandi:

Codice: Seleziona tutto

sudo apt install -f
sudo apt full-upgrade
Il 2° potrebbe necessitare di dar prima il comando:

Codice: Seleziona tutto

sudo apt update
:: Ciao
ACER Extensa 5230E 2,2 Ghz cpu Celeron 900 hdd 160 GB Ram 1 GB scheda video Intel GM500
ACER Extensa 5635Z 2,2 Ghz cpu Celeron T3100 hdd 320 GB Ram 4 GB scheda video Intel Mobile 4
Quando una Finestra chiusa incontra un Pinguino la Finestra chiusa è una Finestra aperta.
Avatar utente
kaotik
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 364
Iscrizione: mercoledì 25 aprile 2007, 12:55

Re: Problema dopo avanzamento da 25.10 a 26.04

Messaggio da kaotik »

wilecoyote ha scritto:
giovedì 21 maggio 2026, 17:53
) Salve, mi sono alquanto perso nei tuoi output, non ho capito se hai dato anche i comandi:

Codice: Seleziona tutto

sudo apt install -f
sudo apt full-upgrade
Il 2° potrebbe necessitare di dar prima il comando:

Codice: Seleziona tutto

sudo apt update
:: Ciao
Ciao, ho provato ogni sorta di comando ormai :(

Comunque ti posto l'output a quelli che mi hai consigliato:

Codice: Seleziona tutto

sudo apt install -f

Codice: Seleziona tutto

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

sudo apt full-upgrade

Codice: Seleziona tutto

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

sudo apt update

Codice: Seleziona tutto

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 http://archive.ubuntu.com/ubuntu resolute-backports InRelease
Trovato:6 http://archive.ubuntu.com/ubuntu resolute-proposed InRelease
Scaricamento di:7 https://esm.ubuntu.com/apps/ubuntu resolute-apps-security InRelease [8.284 B]
Scaricamento di:8 https://esm.ubuntu.com/apps/ubuntu resolute-apps-updates InRelease [8.226 B]
Scaricamento di:9 https://esm.ubuntu.com/infra/ubuntu resolute-infra-security InRelease [8.220 B]
Scaricamento di:10 https://esm.ubuntu.com/infra/ubuntu resolute-infra-updates InRelease [8.219 B]
Recuperati 32,9 kB in 1s (31,3 kB/s)  
4 pacchetti possono essere aggiornati: eseguire "apt list --upgradable" per vederli.
Avatar utente
wilecoyote
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 17048
Iscrizione: giovedì 20 agosto 2009, 16:21
Desktop: Kubuntu et alii
Distribuzione: 9.04 32bit 14/18/20/22.04 LTS 64bit
Sesso: Maschile
Località: Ceranesi - Ge

Re: Problema dopo avanzamento da 25.10 a 26.04

Messaggio da wilecoyote »

) Salve, cercando in rete info ho solo trovato i tuoi analoghi post su Reddit ed AskUbuntu, donde non sono risolutivi.

Però m'è saltato agli occhi un dettaglio, hai problemi col dracut ed è sospettata come cagione la mancanza fi initramfs-tools.

Ho installato da zero il Kubuntu Resolute 26.04 LTS in cui c'è il initramfs-tools e manca dracut, nonché avanzato il mio Cobuntu (Cosmic) Noble 24.04.4 LTS a Resolute 26.04 LTS n cui i 2 pacchetti.sono entrambi installati e coesistono pacificamente.

Ergo hai verificato cos'hai installato come pacchetti ^

Te la senti d'integrare l'installazione in caso di difetto ?

Ti listo i pacchetti installati nel mio Cobuntu:

Codice: Seleziona tutto

root@CactusField:/# dpkg -l initramfs* | grep ii
ii  initramfs-tools 0.151ubuntu1 all          generic modular initramfs generator (automation)
ii  initramfs-tools-bin  0.151ubuntu1 amd64        generic modular initramfs generator (binary tools)
ii  initramfs-tools-core 0.151ubuntu1 all          generic modular initramfs generator (core tools)
root@CactusField:/# dpkg -l dracut* | grep ii
ii  dracut         110-11       all          Initramfs generator using udev
ii  dracut-core    110-11       amd64        dracut is an event driven initramfs infrastructure (core tools)
ii  dracut-install 110-11       amd64        dracut is an event driven initramfs infrastructure (dracut-install)
root@CactusField:/#
Preciso che i prompt anomali sono dovuti al fatto che la lista l'ho ottenuta tramite accesso col Chroot, poiché sto operando dal Kubuntu Jammy 22.04.5 LTS.

:: Ciao
ACER Extensa 5230E 2,2 Ghz cpu Celeron 900 hdd 160 GB Ram 1 GB scheda video Intel GM500
ACER Extensa 5635Z 2,2 Ghz cpu Celeron T3100 hdd 320 GB Ram 4 GB scheda video Intel Mobile 4
Quando una Finestra chiusa incontra un Pinguino la Finestra chiusa è una Finestra aperta.
Scrivi risposta

Ritorna a “Installazione e aggiornamento del sistema operativo”

Chi c’è in linea

Visualizzano questa sezione: cinotti lorenz0, dalca e 18 ospiti