package flash-kernel 3.106ubuntu14 failed to install/upgrade: installed flash-kernel package post-installation script subprocess returned error exit status 1

Bug #2046200 reported by Sevan Janiyan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
flash-kernel (Ubuntu)
New
Undecided
Unassigned

Bug Description

Using DTB: allwinner/sun20i-d1-lichee-rv-dock.dtb
Installing /lib/firmware/6.2.0-39-generic/device-tree/allwinner/sun20i-d1-lichee-rv-dock.dtb into /boot/dtbs/6.2.0-39-generic/allwinner/sun20i-d1-lichee-rv-dock.dtb
Taking backup of sun20i-d1-lichee-rv-dock.dtb.
Installing new sun20i-d1-lichee-rv-dock.dtb.
Ignoring old or unknown version 6.2.0-39-generic (latest is )
Processing triggers for flash-kernel (3.106ubuntu14) ...
Using DTB: allwinner/sun20i-d1-lichee-rv-dock.dtb
Couldn't find DTB sun20i-d1-lichee-rv-dock.dtb on the following paths: /etc/flash-kernel/dtbs /usr/lib/linux-image- /lib/firmware//device-tree/
Installing into /boot/dtbs//allwinner/sun20i-d1-lichee-rv-dock.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

ProblemType: Package
DistroRelease: Ubuntu 23.04
Package: flash-kernel 3.106ubuntu14
ProcVersionSignature: Ubuntu 6.2.0-39.40.1-generic 6.2.16
Uname: Linux 6.2.0-39-generic riscv64
ApportVersion: 2.26.1-0ubuntu2.1
Architecture: riscv64
CasperMD5CheckResult: unknown
CloudArchitecture: riscv64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20221018.3
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
Date: Tue Dec 12 00:23:47 2023
ErrorMessage: installed flash-kernel package post-installation script subprocess returned error exit status 1
Python3Details: /usr/bin/python3.11, Python 3.11.4, python3-minimal, 3.11.2-1
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.21.21ubuntu1
 apt 2.6.0ubuntu0.1
SourcePackage: flash-kernel
Title: package flash-kernel 3.106ubuntu14 failed to install/upgrade: installed flash-kernel package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to lunar on 2023-12-12 (0 days ago)

Revision history for this message
Sevan Janiyan (venture37) wrote :
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

On Ubuntu noble the same occurs if 'linux-version list' cannot find any kernel. E.g. if a boot partition with the kernel exists but is not mounted at /boot/

Processing triggers for flash-kernel (3.107ubuntu4) ...
Using DTB: starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
Couldn't find DTB jh7110-starfive-visionfive-2-v1.3b.dtb on the following paths: /etc/flash-kernel/dtbs /usr/lib/linux-image- /lib/firmware//device-tree/
Installing into /boot/dtbs//starfive/jh7110-starfive-visionfive-2-v1.3b.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
Processing triggers for libc-bin (2.38-3ubuntu1) ...

Sevan,

could you, please, provide the output of the following commands:

linux-version list
ls -la /boot
flash-kernel $(uname -r)

Best regards

Heinrich

Changed in flash-kernel (Ubuntu):
status: New → Incomplete
Revision history for this message
Sevan Janiyan (venture37) wrote :

[LicheeRV] ~> linux-version list
6.2.0-35-generic
6.2.0-39-generic
6.5.0-14-generic

[LicheeRV] ~> ls -la /boot/
total 237992
drwxr-xr-x 5 root root 4096 Dec 12 02:28 .
drwxr-xr-x 20 root root 4096 Dec 12 01:42 ..
-rw------- 1 root root 4580745 Oct 6 13:03 System.map-6.2.0-35-generic
-rw------- 1 root root 4582658 Nov 27 09:50 System.map-6.2.0-39-generic
-rw------- 1 root root 4471146 Nov 23 11:32 System.map-6.5.0-14-generic
-rw-r--r-- 1 root root 2918 Oct 18 2022 boot.scr.bak
-rw-r--r-- 1 root root 251919 Oct 6 13:03 config-6.2.0-35-generic
-rw-r--r-- 1 root root 251912 Nov 27 09:50 config-6.2.0-39-generic
-rw-r--r-- 1 root root 261393 Nov 23 11:32 config-6.5.0-14-generic
lrwxrwxrwx 1 root root 60 Dec 12 01:17 dtb -> dtbs/6.2.0-39-generic/allwinner/sun20i-d1-lichee-rv-dock.dtb
lrwxrwxrwx 1 root root 44 Nov 15 12:56 dtb- -> dtbs//allwinner/sun20i-d1-lichee-rv-dock.dtb
lrwxrwxrwx 1 root root 60 Nov 27 22:40 dtb-6.2.0-35-generic -> dtbs/6.2.0-35-generic/allwinner/sun20i-d1-lichee-rv-dock.dtb
lrwxrwxrwx 1 root root 60 Dec 12 01:17 dtb-6.2.0-39-generic -> dtbs/6.2.0-39-generic/allwinner/sun20i-d1-lichee-rv-dock.dtb
drwxr-xr-x 21 root root 4096 Dec 7 07:50 dtbs
drwxr-xr-x 2 root root 0 Dec 12 01:39 efi
drwxr-xr-x 5 root root 4096 Dec 8 06:22 grub
lrwxrwxrwx 1 root root 27 Dec 7 07:40 initrd.img -> initrd.img-6.2.0-39-generic
-rw-r--r-- 1 root root 64734107 Nov 27 22:40 initrd.img-6.2.0-35-generic
-rw-r--r-- 1 root root 64871403 Dec 12 01:16 initrd.img-6.2.0-39-generic
lrwxrwxrwx 1 root root 27 Dec 8 06:21 initrd.img.old -> initrd.img-6.2.0-35-generic
lrwxrwxrwx 1 root root 24 Dec 7 07:40 vmlinuz -> vmlinuz-6.2.0-39-generic
-rw------- 1 root root 31789568 Oct 6 13:03 vmlinuz-6.2.0-35-generic
-rw------- 1 root root 31790080 Nov 27 09:50 vmlinuz-6.2.0-39-generic
-rw------- 1 root root 36058112 Nov 23 11:32 vmlinuz-6.5.0-14-generic
lrwxrwxrwx 1 root root 24 Dec 8 06:21 vmlinuz.old -> vmlinuz-6.2.0-35-generic

User shell is tcsh so 'flash-kernel $(uname -r)' doesn't work there:

[LicheeRV] ~> flash-kernel $(uname -r)
Illegal variable name.

Didn't run it as root intentionally to see what it complained about:

[LicheeRV] ~> flash-kernel `uname -r`
Failed to check for chroot() environment: Permission denied
Using DTB: allwinner/sun20i-d1-lichee-rv-dock.dtb
Installing /lib/firmware/6.2.0-39-generic/device-tree/allwinner/sun20i-d1-lichee-rv-dock.dtb into /boot/dtbs/6.2.0-39-generic/allwinner/sun20i-d1-lichee-rv-dock.dtb
cp: cannot create regular file '/boot/dtbs/6.2.0-39-generic/allwinner/sun20i-d1-lichee-rv-dock.dtb.new': Permission denied

Changed in flash-kernel (Ubuntu):
status: Incomplete → New
tags: removed: need-duplicate-check
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.