Excuse me, I didn't do anything wild. I'm sure that I'm using the official image that provide by Ubuntu.
To examine, I just create a new bootable microSD card by using: * Tool: Raspberry Pi Imager v1.9.0 * Device: Raspberry Pi 3 * OS: Ubuntu Server 22.04.5 LTS (64-Bit) I run sha256sum on the cache file: ```bash $ sha256sum lastdownload.cache fd7687c5c9422a6c7ba4717c227bf6473fe4e0c954d5a9f664201dcecc63e822 lastdownload.cache ``` My windows PC show "system-boot" partition with FAT32 format after plug in the microSD card That partition come from the image. To double confirm, I download `ubuntu-22.04.5-preinstalled-server-arm64+raspi.img.xz` externally from <https://cdimage.ubuntu.com/releases/22.04.5/release/> and run sha256sum on it: ```bash $ sha256sum ubuntu-22.04.5-preinstalled-server-arm64+raspi.img.xz fd7687c5c9422a6c7ba4717c227bf6473fe4e0c954d5a9f664201dcecc63e822 ubuntu-22.04.5-preinstalled-server-arm64+raspi.img.xz ``` THAT image is from OFFICIAL Ubuntu website. To solve this situation, I will create the memory card manually without using the imager tool. While this workaround resolves my immediate problem, I believe the post-installation script needs further attention and improvement. I'm reporting this issue in the hope that it will be address near future. ** Changed in: linux-raspi (Ubuntu) Status: Invalid => New ** Changed in: rpi-imager (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-raspi in Ubuntu. https://bugs.launchpad.net/bugs/2085700 Title: linux-image-5.15.0-1064-raspi package post-installation returned error Status in linux-raspi package in Ubuntu: New Status in rpi-imager package in Ubuntu: Invalid Bug description: 1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu Description: Ubuntu 22.04.5 LTS Release: 22.04 2) The version of the package you are using, via 'apt-cache policy pkgname' linux-image-5.15.0-1064-raspi: Installed: 5.15.0-1064.67 Candidate: 5.15.0-1064.67 Version table: *** 5.15.0-1064.67 500 500 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf Packages 500 http://ports.ubuntu.com/ubuntu-ports jammy-security/main armhf Packages 100 /var/lib/dpkg/status 3) What you expected to happen apt upgrade completed without any error 4) What happened instead Errors were encountered while processing: initramfs-tools linux-image-5.15.0-1064-raspi needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) 5) What I found I found that the post-installation try to create symbolic link into /boot/dtb-5.15.0-1064-raspi and it failed. The reason is: - /boot partition is formatted as FAT32 by Raspberry Pi Imager (sudo snap install rpi-imager) - can't create symbolic link in FAT32 partition 6) Installation log $ sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages have been kept back: sosreport The following packages will be upgraded: distro-info-data flash-kernel snapd u-boot-rpi u-boot-tools 5 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. Need to get 21.9 MB of archives. After this operation, 1862 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf distro-info-data all 0.52ubuntu0.8 [5302 B] Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf u-boot-rpi armhf 2022.01+dfsg-2ubuntu2.6 [387 kB] Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf flash-kernel armhf 3.104ubuntu21 [38.9 kB] Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf snapd armhf 2.65.3+22.04 [21.3 MB] Get:5 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf u-boot-tools armhf 2022.01+dfsg-2ubuntu2.6 [180 kB] Fetched 21.9 MB in 7s (3292 kB/s) Preconfiguring packages ... (Reading database ... 112269 files and directories currently installed.) Preparing to unpack .../distro-info-data_0.52ubuntu0.8_all.deb ... Unpacking distro-info-data (0.52ubuntu0.8) over (0.52ubuntu0.7) ... Preparing to unpack .../u-boot-rpi_2022.01+dfsg-2ubuntu2.6_armhf.deb ... Unpacking u-boot-rpi:armhf (2022.01+dfsg-2ubuntu2.6) over (2022.01+dfsg-2ubuntu2.5) ... Preparing to unpack .../flash-kernel_3.104ubuntu21_armhf.deb ... Unpacking flash-kernel (3.104ubuntu21) over (3.104ubuntu20) ... Preparing to unpack .../snapd_2.65.3+22.04_armhf.deb ... Unpacking snapd (2.65.3+22.04) over (2.63+22.04ubuntu0.1) ... Preparing to unpack .../u-boot-tools_2022.01+dfsg-2ubuntu2.6_armhf.deb ... Unpacking u-boot-tools (2022.01+dfsg-2ubuntu2.6) over (2022.01+dfsg-2ubuntu2.5) ... Setting up snapd (2.65.3+22.04) ... Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ... 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 flash-kernel (3.104ubuntu21) ... Using DTB: bcm2710-rpi-3-b.dtb flash-kernel: deferring update (trigger activated) Setting up u-boot-rpi:armhf (2022.01+dfsg-2ubuntu2.6) ... Setting up distro-info-data (0.52ubuntu0.8) ... Setting up linux-image-5.15.0-1064-raspi (5.15.0-1064.67) ... /etc/kernel-img.conf: W: ignoring no_symlinks; only symlinks are supported Setting up u-boot-tools (2022.01+dfsg-2ubuntu2.6) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for dbus (1.12.20-2ubuntu4.1) ... Processing triggers for initramfs-tools (0.140ubuntu13.4) ... ln: failed to create hard link '/boot/initrd.img-5.15.0-1064-raspi.dpkg-bak' => '/boot/initrd.img-5.15.0-1064-raspi': Operation not permitted update-initramfs: Generating /boot/initrd.img-5.15.0-1064-raspi I: The initramfs will attempt to resume from /dev/sda2 I: (UUID=a9abdb66-e6d2-4067-95a9-e2cab4af3845) I: Set the RESUME variable to override this. Using DTB: bcm2710-rpi-3-b.dtb Installing /lib/firmware/5.15.0-1064-raspi/device-tree/bcm2710-rpi-3-b.dtb into /boot/dtbs/5.15.0-1064 -raspi/./bcm2710-rpi-3-b.dtb Taking backup of bcm2710-rpi-3-b.dtb. Installing new bcm2710-rpi-3-b.dtb. ln: failed to create symbolic link '/boot/dtb-5.15.0-1064-raspi': Operation not permitted run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1 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-5.15.0-1064-raspi (5.15.0-1064.67) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.15.0-1064-raspi I: The initramfs will attempt to resume from /dev/sda2 I: (UUID=a9abdb66-e6d2-4067-95a9-e2cab4af3845) I: Set the RESUME variable to override this. Using DTB: bcm2710-rpi-3-b.dtb Installing /lib/firmware/5.15.0-1064-raspi/device-tree/bcm2710-rpi-3-b.dtb into /boot/dtbs/5.15.0-1064-raspi/./bcm2710-rpi-3-b.dtb Taking backup of bcm2710-rpi-3-b.dtb. Installing new bcm2710-rpi-3-b.dtb. ln: failed to create symbolic link '/boot/dtb-5.15.0-1064-raspi': Operation not permitted run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1 run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-5.15.0-1064-raspi (--configure): installed linux-image-5.15.0-1064-raspi package post-installation script subprocess returned error ex it status 1 Errors were encountered while processing: initramfs-tools linux-image-5.15.0-1064-raspi needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/2085700/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp