Dependencies trouble with uboot

Hello,
some weeks ago I tried configure boot to M.2 instead of from SD card. But I didnt complete it let it be like it was because it is still booting from SD without trouble.

Now I would like to install some packages and I got error like:

The following packages have unmet dependencies:

  • rockpi4b-rk-u-boot-latest : Depends: rockpi4b-rk-ubootimg (= 2017.09-2694-g04d66f4b45)*
    E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

So I used apt --fix-broken install and got

Preparing to unpack …/rockpi4b-rk-ubootimg_2017.09-2694-g04d66f4b45_all.deb …
Unpacking rockpi4b-rk-ubootimg (2017.09-2694-g04d66f4b45) over (2017.09-2690-gdf20631bd8) …
dpkg: error processing archive /var/cache/apt/archives/rockpi4b-rk-ubootimg_2017.09-2694-g04d66f4b45_all.deb (–unpack):

  • trying to overwrite ‘/usr/local/sbin/rockpi_erase_spi_flash.sh’, which is also in package rockpi4a-rk-ubootimg 2017.09-2694-g04d66f4b45*
    Errors were encountered while processing:
  • /var/cache/apt/archives/rockpi4b-rk-ubootimg_2017.09-2694-g04d66f4b45_all.deb*
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Can you help me somebody?
Now I dont want to boot from M.2 because I am satisfied how it is working from SD.

Can I somehow fix this situation pls?

Thank you a lot

Hello,

You need to add Radxa APT to the source.

it is there and still same

~ : cat /etc/apt/sources.list.d/apt-radxa-com.list
deb http://apt.radxa.com/bionic-testing/ bionic main

Try to reinstall

sudo apt-get install rockpi4b-rk-u-boot-latest --reinstall

Thank you but ddidnt help

~ : sudo apt-get install rockpi4b-rk-u-boot-latest --reinstall
Reading package lists… Done
Building dependency tree
Reading state information… Done
Reinstallation of rockpi4b-rk-u-boot-latest is not possible, it cannot be downloaded.
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-2694-g04d66f4b45)
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

What about the following command

cat /proc/device-tree/model
dpkg --list | grep uboot

cat /proc/device-tree/model
ROCK PI 4B~ :
~ : dpkg --list | grep uboot
iU rockpi4a-rk-u-boot-latest 2017.09-2694-g04d66f4b45 all rockpi4a u-boot latest version package: depends on rockpi4a-rk-ubootimg (= 2017.09-2694-g04d66f4b45)
iU rockpi4a-rk-ubootimg 2017.09-2694-g04d66f4b45 all rockpi4a u-boot package
iU rockpi4b-rk-u-boot-latest 2017.09-2694-g04d66f4b45 all rockpi4b u-boot latest version package: depends on rockpi4b-rk-ubootimg (= 2017.09-2694-g04d66f4b45)
iU rockpi4b-rk-ubootimg 2017.09-2690-gdf20631bd8 all rockpi4b u-boot package

sudo apt-get autoremove rockpi4a-rk-u-boot-latest
sudo apt-get install rockpi4b-rk-u-boot-latest --reinstall
sudo apt-get --fix-broken install

no success :frowning:
~ : sudo apt-get autoremove rockpi4a-rk-u-boot-latest
Reading package lists… Done
Building dependency tree
Reading state information… Done
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-2694-g04d66f4b45)
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

I did

sudo apt autoremove

and now I got another error when I wanted to upgrade packages

Preconfiguring packages ...
(Reading database ... 74540 files and directories currently installed.)
Removing linux-image-4.4.154-105-rockchip-ge14b7341757f (4.4.154-105-rockchip) ...
update-initramfs: Deleting /boot/initrd.img-4.4.154-105-rockchip-ge14b7341757f
Kernel configuration : earlyprintk console=ttyFIQ0,1500000n8 rw init=/sbin/init rootfstype=ext4 rootwait root=PARTUUID=B921B045-1DF0-41C3-AF44-4C6F280D3FAE

Creating new extlinux.conf...
cp: cannot stat '/usr/lib/linux-image-4.4.198-rockchip64': No such file or directory
run-parts: /etc/kernel/postrm.d/zz-update-extlinux exited with return code 1
dpkg: error processing package linux-image-4.4.154-105-rockchip-ge14b7341757f (--remove):
 installed linux-image-4.4.154-105-rockchip-ge14b7341757f package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-4.4.154-105-rockchip-ge14b7341757f
E: Sub-process /usr/bin/dpkg returned an error code (1)

are you using… Armbian?