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

Sevan Janiyan 2046200 at bugs.launchpad.net
Tue Dec 12 23:04:51 UTC 2023


[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

-- 
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/2046200

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

Status in flash-kernel package in Ubuntu:
  Incomplete

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)

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




More information about the foundations-bugs mailing list