package linux-image-6.2.0-1007-raspi 6.2.0-1007.9 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2

Bug #2028643 reported by René Meerts
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

RaspberryPI4, Ubuntu BerryBoot Server image on SSD, I have used this computer for fun and not a daily one.
So when startup I have upgrade the system and every time there is a problem found, See my command line messages;
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-1006-raspi
/usr/sbin/mkinitramfs: 133: .: cannot open /usr/share/initramfs-tools/conf-hooks
.d/cryptsetup: No such device or address
update-initramfs: failed for /boot/initrd.img-6.2.0-1006-raspi with 2.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
dpkg: fout bij verwerken van pakket linux-image-6.2.0-1006-raspi (--configure):
 subproces van pakket linux-image-6.2.0-1006-raspi werd script post-installation
 geïnstalleerd gaf de foutwaarde 1 terug
Bezig met afhandelen van triggers voor linux-image-6.2.0-1007-raspi (6.2.0-1007.
9) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-1007-raspi
/usr/sbin/mkinitramfs: 133: .: cannot open /usr/share/initramfs-tools/conf-hooks
.d/cryptsetup: No such device or address
update-initramfs: failed for /boot/initrd.img-6.2.0-1007-raspi with 2.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
dpkg: fout bij verwerken van pakket linux-image-6.2.0-1007-raspi (--configure):
 subproces van pakket linux-image-6.2.0-1007-raspi werd script post-installation
 geïnstalleerd gaf de foutwaarde 1 terug
Bezig met afhandelen van triggers voor linux-image-6.2.0-1009-raspi (6.2.0-1009.
11) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-1009-raspi
/usr/sbin/mkinitramfs: 133: .: cannot open /usr/share/initramfs-tools/conf-hooks
.d/cryptsetup: No such device or address
update-initramfs: failed for /boot/initrd.img-6.2.0-1009-raspi with 2.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
dpkg: fout bij verwerken van pakket linux-image-6.2.0-1009-raspi (--configure):
 subproces van pakket linux-image-6.2.0-1009-raspi werd script post-installation
 geïnstalleerd gaf de foutwaarde 1 terug
Fouten gevonden tijdens verwerken van:
 linux-image-6.2.0-1006-raspi
 linux-image-6.2.0-1007-raspi
 linux-image-6.2.0-1009-raspi
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@rene-desktop:/home/rene# apt autoremove
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd... Klaar
De statusinformatie wordt gelezen... Klaar
De volgende pakketten zullen VERWIJDERD worden:
  linux-headers-6.2.0-1006-raspi linux-image-6.2.0-1006-raspi
  linux-modules-6.2.0-1006-raspi linux-raspi-headers-6.2.0-1006
0 opgewaardeerd, 0 nieuw geïnstalleerd, 4 te verwijderen en 0 niet opgewaardeerd.
3 niet volledig geïnstalleerd of verwijderd.
Na deze bewerking zal er 286 MB schijfruimte vrijkomen.
Wilt u doorgaan? [J/n] j
(Database wordt ingelezen ... 244924 bestanden en mappen momenteel geïnstalleerd
.)
linux-headers-6.2.0-1006-raspi (6.2.0-1006.8) wordt verwijderd ...
linux-raspi-headers-6.2.0-1006 (6.2.0-1006.8) wordt verwijderd ...
linux-modules-6.2.0-1006-raspi (6.2.0-1006.8) wordt verwijderd ...
linux-image-6.2.0-1006-raspi (6.2.0-1006.8) wordt verwijderd ...
/var/lib/dpkg/info/linux-image-6.2.0-1006-raspi.postrm ... removing pending trig
ger
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.2.0-1006-raspi
/etc/kernel/postrm.d/zz-flash-kernel:
Using DTB: bcm2711-rpi-4-b.dtb
flash-kernel: Kernel 6.2.0-1006-raspi has been removed.
flash-kernel: A higher version (6.2.0-1009-raspi) is still installed, no reflash
ing required.
Instellen van linux-image-6.2.0-1009-raspi (6.2.0-1009.11) ...
I: /boot/initrd.img is now a symlink to initrd.img-6.2.0-1009-raspi
Instellen van linux-image-6.2.0-1007-raspi (6.2.0-1007.9) ...
I: /boot/initrd.img.old is now a symlink to initrd.img-6.2.0-1007-raspi
Bezig met afhandelen van triggers voor linux-image-6.2.0-1009-raspi (6.2.0-1009.
11) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-1009-raspi
/usr/sbin/mkinitramfs: 133: .: cannot open /usr/share/initramfs-tools/conf-hooks
.d/cryptsetup: No such device or address
update-initramfs: failed for /boot/initrd.img-6.2.0-1009-raspi with 2.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
dpkg: fout bij verwerken van pakket linux-image-6.2.0-1009-raspi (--configure):
 subproces van pakket linux-image-6.2.0-1009-raspi werd script post-installation
 geïnstalleerd gaf de foutwaarde 1 terug
Bezig met afhandelen van triggers voor linux-image-6.2.0-1007-raspi (6.2.0-1007.
9) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-1007-raspi
/usr/sbin/mkinitramfs: 133: .: cannot open /usr/share/initramfs-tools/conf-hooks
.d/cryptsetup: No such device or address
update-initramfs: failed for /boot/initrd.img-6.2.0-1007-raspi with 2.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
dpkg: fout bij verwerken van pakket linux-image-6.2.0-1007-raspi (--configure):
 subproces van pakket linux-image-6.2.0-1007-raspi werd script post-installation
 geïnstalleerd gaf de foutwaarde 1 terug
Fouten gevonden tijdens verwerken van:
 linux-image-6.2.0-1009-raspi
 linux-image-6.2.0-1007-raspi
E: Sub-process /usr/bin/dpkg returned an error code (1)

I hope this will help you further to improve this wonderfull OS.

ProblemType: Package
DistroRelease: Ubuntu 23.04
Package: linux-image-6.2.0-1007-raspi 6.2.0-1007.9
Uname: Linux 5.10.43v64 aarch64
ApportVersion: 2.26.1-0ubuntu2
Architecture: arm64
CasperMD5CheckResult: unknown
Date: Tue Jul 25 08:56:33 2023
ErrorMessage: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
ImageMediaBuild: 20230417
Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal, 3.11.2-1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.21ubuntu1
 apt 2.6.0
SourcePackage: initramfs-tools
Title: package linux-image-6.2.0-1007-raspi 6.2.0-1007.9 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
René Meerts (rmeerts-i) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The relevant dpkg terminal log says:

/usr/sbin/mkinitramfs: 133: .: cannot open /usr/share/initramfs-tools/conf-hooks.d/cryptsetup: No such device or address

This file should be shipped by cryptsetup-initramfs. Do you have cryptsetup-initramfs installed? If yes, the file system is damaged and reinstalling cryptsetup-initramfs should solve it.

Changed in initramfs-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for initramfs-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in initramfs-tools (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.