RockPi4C Dpkg Errors while updating Debian 9(missing bootloader image?)

Hello, I’m new to radxa forums. Just bought my RockPi4C and have been playing with it. I’m getting some errors while I try to update/upgrade official Debian 9 OS. Errors shown below:

Setting up rockpi4c-rk-ubootimg (2017.09-2695-g7c49a7da79) …
Consider upgrading device bootloader with ‘rockpi4c_upgrade_bootloader.sh’.
Missing board bootloader image: /usr/lib/u-boot-rockpi4c/rockpi4c-rk-uboot.img
dpkg: error processing package rockpi4c-rk-ubootimg (–configure):
subprocess installed post-installation script returned error exit status 1
Setting up firefox-esr (78.3.0esr-1~deb9u2) …
update-alternatives: using /usr/bin/firefox-esr to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/firefox-esr to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
Processing triggers for hicolor-icon-theme (0.15-1) …
dpkg: dependency problems prevent configuration of rockpi4c-rk-u-boot-latest:
rockpi4c-rk-u-boot-latest depends on rockpi4c-rk-ubootimg (= 2017.09-2695-g7c49a7da79); however:
Package rockpi4c-rk-ubootimg is not configured yet.
Version of rockpi4c-rk-ubootimg on system, provided by rockpi4c-rk-ubootimg:all, is .

dpkg: error processing package rockpi4c-rk-u-boot-latest (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
rockpi4c-rk-ubootimg
rockpi4c-rk-u-boot-latest
E: Sub-process /usr/bin/dpkg returned an error code (1)
linaro@linaro-alip:~$ ^C
linaro@linaro-alip:~$ rockpi4c_upgrade_bootloader.sh
bash: rockpi4c_upgrade_bootloader.sh: command not found

How can I fix this?. Errors shown above are showing every time I update/upgrade/install software on official Debian 9. Do I have some missing files in my RockPi4C? Please advise.

Thank you for reporting the problem.
We recently had an issue with a package submitted to APT, we will fix it tomorrow.

1 Like

Hi, we have solved this problem.

sudo apt-get update
sudo apt-get install -y rockpi4b-rk-u-boot-latest

My Debian 9 running from eMMC with ethernet connection.
I did both as instructed, still didn’t work for me as shown below:

root@linaro-alip:~# sudo apt-get install -y rockpi4b-rk-u-boot-latest
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
rockpi4b-rk-ubootimg
The following NEW packages will be installed:
rockpi4b-rk-u-boot-latest rockpi4b-rk-ubootimg
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
Need to get 1861 kB of archives.
After this operation, 7304 kB of additional disk space will be used.
Get:1 http://apt.radxa.com/stretch-testing stretch/main arm64 rockpi4b-rk-ubootimg all 2017.09-2696-g7c49a7da79 [1860 kB]
Get:2 http://apt.radxa.com/stretch-testing stretch/main arm64 rockpi4b-rk-u-boot-latest all 2017.09-2696-g7c49a7da79 [1078 B]
Fetched 1861 kB in 0s (2452 kB/s)
Selecting previously unselected package rockpi4b-rk-ubootimg.
(Reading database … 111441 files and directories currently installed.)
Preparing to unpack …/rockpi4b-rk-ubootimg_2017.09-2696-g7c49a7da79_all.deb …
Unpacking rockpi4b-rk-ubootimg (2017.09-2696-g7c49a7da79) …
dpkg: error processing archive /var/cache/apt/archives/rockpi4b-rk-ubootimg_2017.09-2696-g7c49a7da79_all.deb (–unpack):
trying to overwrite ‘/usr/local/sbin/rockpi_erase_spi_flash.sh’, which is also in package rockpi4c-rk-ubootimg 2017.09-2695-g7c49a7da79
Selecting previously unselected package rockpi4b-rk-u-boot-latest.
Preparing to unpack …/rockpi4b-rk-u-boot-latest_2017.09-2696-g7c49a7da79_all.deb …
Unpacking rockpi4b-rk-u-boot-latest (2017.09-2696-g7c49a7da79) …
Errors were encountered while processing:
/var/cache/apt/archives/rockpi4b-rk-ubootimg_2017.09-2696-g7c49a7da79_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any suggestions how to fix this? Thank you in advance.

Rebooted it now it shows this when I attempted to run it again:

root@linaro-alip:~# sudo apt-get install -y rockpi4b-rk-u-boot-latest
Reading package lists… Done
Building dependency tree
Reading state information… Done
rockpi4b-rk-u-boot-latest is already the newest version (2017.09-2696-g7c49a7da79).
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
rockpi4b-rk-u-boot-latest : Depends: rockpi4b-rk-ubootimg (= 2017.09-2696-g7c49a7da79)
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

Now it’s totally broken. It won’t install any software via CLI after a failed “sudo apt-get install -y rockpi4b-rk-u-boot-latest”

I just realized you were pointing to a wrong Rockpi4b u-boot file?. I have a Rockpi4C as already mentioned it several times.

“sudo apt-get install -y rockpi4b-rk-u-boot-latest”

@jtremblant

Sorry for the typo.

sudo apt-get remove rockpi4b-rk-u-boot-latest
sudo apt-get install -y rockpi4c-rk-u-boot-latest

sudo apt-get remove rockpi4b-rk-u-boot-latest
sudo apt-get install -y rockpi4c-rk-u-boot-latest

For some unknown reason, it didn’t work either.
I had to manually remove from /etc/var/dpkg/status all rockpi4b entries first.
Then I rebooted it, and run a
sudo apt-get upgrade
and this time, bootloader successfully upgraded to latest 2017.09-2696-g7c49a7da79 rockpi4c u-boot.
Problem solved here.