update-initramfs fails: /usr/share/initramfs-tools/hooks/dhcpcd failed wtih return 1
During the upgrade from Ubuntu 23.04 to Ubuntu 23.10 everything went fine except the last part where update-initramfs is being ran on the new kernel (6.5.0-1005-raspi).
Currently I restarted, everything seems to be working stable however I'm still on kernel 6.2.0-1014-raspi. Here's the error log when I run sudo apt upgrade:
`
kcrpl@raspberry
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.142ubuntu15) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-
Processing triggers for initramfs-tools (0.142ubuntu15) ...
update-initramfs: Generating /boot/initrd.
E: /usr/share/
update-initramfs: failed for /boot/initrd.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-
/etc/kernel/
* dkms: running auto installation service for kernel 6.5.0-1005-raspi
* dkms: autoinstall for kernel 6.5.0-1005-raspi
...done.
/etc/kernel/
update-initramfs: Generating /boot/initrd.
E: /usr/share/
update-initramfs: failed for /boot/initrd.
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
installed linux-image-
Errors were encountered while processing:
initramfs-tools
linux-
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
`
I tried everything, purging initramfs-
Best regards.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- KcrPL
- Solved:
- Last query:
- Last reply: