[Bug 2092737] Re: [SRU] Invalid entries in flash-kernel db

Pragyansh Chaturvedi 2092737 at bugs.launchpad.net
Mon May 5 06:52:49 UTC 2025


** Also affects: flash-kernel (Ubuntu Questing)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to flash-kernel in Ubuntu.
https://bugs.launchpad.net/bugs/2092737

Title:
  [SRU] Invalid entries in flash-kernel db

Status in flash-kernel package in Ubuntu:
  New
Status in flash-kernel source package in Noble:
  New
Status in flash-kernel source package in Oracular:
  New
Status in flash-kernel source package in Plucky:
  New
Status in flash-kernel source package in Questing:
  New

Bug description:
  [ Impact ]

  /usr/share/flash-kernel/db/all.db contains an entry

  Machine: Pine64 LTS
  Kernel-Flavors: arm64
  DTB-Id: allwinner/sun50i-a64-pine64-lts.dtb
  Boot-Script-Path: /boot/boot.scr
  U-Boot-Script-Name: bootscr.uboot-generic
  Required-Packages: u-boot-tools

  This makes no sense for Ubuntu. We don't have any kernel flavor arm64
  and it leads to a failure when upgrading the kernel on the board:

  $ sudo apt-get dist-upgrade
  [sudo] password for zfsdt: 
  Sorry, try again.
  [sudo] password for zfsdt: 
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  Calculating upgrade... Done
  The following packages were automatically installed and are no longer required:
    linux-headers-6.8.0-31 linux-headers-6.8.0-36 linux-headers-6.8.0-36-generic
    linux-headers-6.8.0-47 linux-headers-6.8.0-47-generic
    linux-image-6.8.0-36-generic linux-image-6.8.0-47-generic
    linux-modules-6.8.0-31-generic linux-modules-6.8.0-36-generic
    linux-modules-6.8.0-47-generic linux-modules-extra-6.8.0-36-generic
    linux-modules-extra-6.8.0-47-generic linux-tools-6.8.0-31
    linux-tools-6.8.0-36 linux-tools-6.8.0-36-generic linux-tools-6.8.0-47
    linux-tools-6.8.0-47-generic
  Use 'sudo apt autoremove' to remove them.
  The following upgrades have been deferred due to phasing:
    python3-distupgrade ubuntu-release-upgrader-core
  0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
  1 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 flash-kernel (3.107ubuntu13~24.04.1) ...
  Using DTB: allwinner/sun50i-a64-pine64-lts.dtb
  flash-kernel: deferring update (trigger activated)
  Processing triggers for initramfs-tools (0.142ubuntu25.4) ...
  update-initramfs: Generating /boot/initrd.img-6.8.0-51-generic
  Using DTB: allwinner/sun50i-a64-pine64-lts.dtb
  Installing /lib/firmware/6.8.0-51-generic/device-tree/allwinner/sun50i-a64-pine64-lts.dtb into /boot/dtbs/6.8.0-51-generic/allwinner/sun50i-a64-pine64-lts.dtb
  Taking backup of sun50i-a64-pine64-lts.dtb.
  Installing new sun50i-a64-pine64-lts.dtb.
  Ignoring old or unknown version 6.8.0-51-generic (latest is )
  Processing triggers for flash-kernel (3.107ubuntu13~24.04.1) ...
  Using DTB: allwinner/sun50i-a64-pine64-lts.dtb
  Couldn't find DTB sun50i-a64-pine64-lts.dtb on the following paths: /etc/flash-kernel/dtbs /usr/lib/linux-image- /lib/firmware//device-tree/
  Installing  into /boot/dtbs//allwinner/sun50i-a64-pine64-lts.dtb
  cp: cannot stat '': No such file or directory
  dpkg: error processing package flash-kernel (--configure):
   installed flash-kernel package post-installation script subprocess returned error exit status 1
  Errors were encountered while processing:
   flash-kernel
  needrestart is being skipped since dpkg has failed
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  [ Test Plan ]

  Install Ubuntu on the Pine64 LTS board as described in
  https://discourse.ubuntu.com/t/installing-ubuntu-mantic-on-arm64-pine-a64-lts/38518

  Do non use an entry in file /etc/flash-kernel/db.

  Run `sudo flash-kernel $(uname -r)`.

  Currently this fails as the kernel flavor generic is unknown.

  After correction this should succeed.

  [ Where problems could occur ]

  Changing /usr/share/flash-kernel/db/all.db only affects the
  installation of device-trees and the generation of /boot/boot.scr on
  non-EFI systems.

  Incorrectly editing the database could lead to failure to install
  device-trees during update processes.

  [ Other Info ]

  n/a

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/2092737/+subscriptions




More information about the foundations-bugs mailing list