flash-kernel error code 127

Asked by Alfred Johnson

When upgrading any package, flash-kernel gets a 127 code error. It appears the library libcrypto.so.1.0.0 is not in the correct location. Where should it be on Ubuntu 20.04?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Please provide the full output that you receive for the commands

uname -a
lsb_release -crid
sudo dpkg --audit
sudo dpkg --configure -a

Revision history for this message
Alfred Johnson (adj0159) said :
#2

info requested:

ubuntu@ubuntu:~$ uname -a
Linux ubuntu 5.4.0-1029-raspi #32-Ubuntu SMP PREEMPT Thu Feb 4 23:00:55 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
`
ubuntu@ubuntu:~$ sudo lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
ubuntu@ubuntu:~$

ubuntu@ubuntu:~$ sudo dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 flash-kernel utility to make certain embedded devices bootable

ubuntu@ubuntu:~$ sudo dpkg --configure -a
Setting up flash-kernel (3.103ubuntu1~20.04.1) ...
Using DTB: bcm2711-rpi-4-b.dtb
Installing /lib/firmware/5.4.0-1029-raspi/device-tree/broadcom/bcm2711-rpi-4-b.dtb into /boot/dtbs/5.4.0-1029-raspi/./bcm2711-rpi-4-b.dtb
Taking backup of bcm2711-rpi-4-b.dtb.
Installing new bcm2711-rpi-4-b.dtb.
flash-kernel: deferring update (trigger activated)
Processing triggers for flash-kernel (3.103ubuntu1~20.04.1) ...
Using DTB: bcm2711-rpi-4-b.dtb
Installing /lib/firmware/5.4.0-1029-raspi/device-tree/broadcom/bcm2711-rpi-4-b.dtb into /boot/dtbs/5.4.0-1029-raspi/./bcm2711-rpi-4-b.dtb
Taking backup of bcm2711-rpi-4-b.dtb.
Installing new bcm2711-rpi-4-b.dtb.
flash-kernel: installing version 5.4.0-1029-raspi
Taking backup of vmlinuz.
Installing new vmlinuz.
Taking backup of initrd.img.
Installing new initrd.img.
Generating boot script u-boot image... /usr/sbin/flash-kernel: 553: mkimage: not found
dpkg: error processing package flash-kernel (--configure):
 installed flash-kernel package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 flash-kernel
1 ubuntu@ubuntu:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#4

mkimage is provided by the package u-boot-tools.
Try installing it with the command

sudo apt install u-boot-tools -f

and report the results.

Revision history for this message
Alfred Johnson (adj0159) said :
#5

tried sudo apt install u-boot-tools -f

system suggestedd snap install uboot-tools

Results:

ubuntu@ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  bind9-dnsutils bind9-host bind9-libs librados2 librbd1
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 5408 kB of archives.
After this operation, 44.0 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 bind9-dnsutils arm64 1:9.16.1-0ubuntu2.7 [129 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 bind9-libs arm64 1:9.16.1-0ubuntu2.7 [1001 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 bind9-host arm64 1:9.16.1-0ubuntu2.7 [41.3 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 librbd1 arm64 15.2.8-0ubuntu0.20.04.1 [1378 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 librados2 arm64 15.2.8-0ubuntu0.20.04.1 [2859 kB]
Fetched 5408 kB in 2s (2581 kB/s)
(Reading database ... 223443 files and directories currently installed.)
Preparing to unpack .../bind9-dnsutils_1%3a9.16.1-0ubuntu2.7_arm64.deb ...
Unpacking bind9-dnsutils (1:9.16.1-0ubuntu2.7) over (1:9.16.1-0ubuntu2.6) ...
Preparing to unpack .../bind9-libs_1%3a9.16.1-0ubuntu2.7_arm64.deb ...
Unpacking bind9-libs:arm64 (1:9.16.1-0ubuntu2.7) over (1:9.16.1-0ubuntu2.6) ...
Preparing to unpack .../bind9-host_1%3a9.16.1-0ubuntu2.7_arm64.deb ...
Unpacking bind9-host (1:9.16.1-0ubuntu2.7) over (1:9.16.1-0ubuntu2.6) ...
Preparing to unpack .../librbd1_15.2.8-0ubuntu0.20.04.1_arm64.deb ...
Unpacking librbd1 (15.2.8-0ubuntu0.20.04.1) over (15.2.7-0ubuntu0.20.04.2) ...
Preparing to unpack .../librados2_15.2.8-0ubuntu0.20.04.1_arm64.deb ...
Unpacking librados2 (15.2.8-0ubuntu0.20.04.1) over (15.2.7-0ubuntu0.20.04.2) ...
Setting up librados2 (15.2.8-0ubuntu0.20.04.1) ...
Setting up flash-kernel (3.103ubuntu1~20.04.1) ...
Using DTB: bcm2711-rpi-4-b.dtb
Installing /lib/firmware/5.4.0-1029-raspi/device-tree/broadcom/bcm2711-rpi-4-b.dtb into /boot/dtbs/5.4.0-1029-raspi/./bcm2711-rpi-4-b.dtb
Taking backup of bcm2711-rpi-4-b.dtb.
Installing new bcm2711-rpi-4-b.dtb.
flash-kernel: deferring update (trigger activated)
Setting up bind9-libs:arm64 (1:9.16.1-0ubuntu2.7) ...
Setting up librbd1 (15.2.8-0ubuntu0.20.04.1) ...
Setting up bind9-host (1:9.16.1-0ubuntu2.7) ...
Setting up bind9-dnsutils (1:9.16.1-0ubuntu2.7) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for flash-kernel (3.103ubuntu1~20.04.1) ...
Using DTB: bcm2711-rpi-4-b.dtb
Installing /lib/firmware/5.4.0-1029-raspi/device-tree/broadcom/bcm2711-rpi-4-b.dtb into /boot/dtbs/5.4.0-1029-raspi/./bcm2711-rpi-4-b.dtb
Taking backup of bcm2711-rpi-4-b.dtb.
Installing new bcm2711-rpi-4-b.dtb.
flash-kernel: installing version 5.4.0-1029-raspi
Taking backup of vmlinuz.
Installing new vmlinuz.
Taking backup of initrd.img.
Installing new initrd.img.
Generating boot script u-boot image... /usr/sbin/flash-kernel: 553: mkimage: not found
dpkg: error processing package flash-kernel (--configure):
 installed flash-kernel package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 flash-kernel
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

What is the full output of the commands

which mkimage
sudo apt install u-boot-tools -f

?

Revision history for this message
Alfred Johnson (adj0159) said :
#7

Resolved. Thanks

On Mon, Mar 1, 2021 at 2:20 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #695804 on steam in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/steam/+question/695804
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> What is the full output of the commands
>
> which mkimage
> sudo apt install u-boot-tools -f
>
> ?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/steam/+question/695804
>
> You received this question notification because you asked the question.
>

--
___________________________
Alfred Johnson

Cell# 313 782 4886
Home# 313-0482
Skype#: +11-786-753-7677
USA Cell#: +1-281253-5546
Vonage#: 206-441-5285

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Please mark as solved if the issue is sorted out or please provide details

Revision history for this message
Alfred Johnson (adj0159) said :
#9

Thanks Manfred Hampl, that solved my question.