In order to avoid all unnecessary difficulties, I have freshly installed rockpi4_debian_stretch_lxde_armhf_20181105_2120-gpt.img.gz on my 32GB eMMC. Then I worked through all described steps.
https://wiki.radxa.com/Rockpi4/dev/libmraa
Unfortunately I cannot install libmraa-rockpi4.
mike@mpc4:~$ ssh linaro@rpi4b
linaro@rpi4bās password:
Linux rpi4b 4.4.154-75-rockchip-00013-gcc4fef3 #2 SMP Sat Mar 23 15:05:37 CST 2019 aarch64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Mar 26 08:42:21 2019 from 192.168.178.24
linaro@rpi4b:~$ sudo apt update
Hit:1 http://apt.radxa.com/stretch stretch InRelease
Ign:2 http://http.debian.net/debian stretch InRelease
Hit:3 http://repo.linaro.org/ubuntu/linaro-overlay stretch InRelease
Hit:4 http://security.debian.org stretch/updates InRelease
Hit:5 http://http.debian.net/debian stretch-updates InRelease
Hit:6 http://http.debian.net/debian stretch Release
Reading package lists⦠Done
Building dependency tree
Reading state information⦠Done
All packages are up to date.
linaro@rpi4b:~$ sudo apt install libmraa-rockpi4
Reading package lists⦠Done
Building dependency tree
Reading state information⦠Done
libmraa-rockpi4 is already the newest version (0.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up libmraa-rockpi4 (0.1) ā¦
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
dpkg: error processing package libmraa-rockpi4 (āconfigure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
libmraa-rockpi4
E: Sub-process /usr/bin/dpkg returned an error code (1)
linaro@rpi4b:~$
I donāt know why it is to this ālibmraa-rockpi4 is already the newest version (0.1).ā Message comes, this came already with the first attempt of the installation. After that I have to uninstall the package with āapt purgeā and then start over, but nothing changes. However, I get another, perhaps interesting, message.
linaro@rpi4b:~$ sudo apt purge libmraa-rockpi4
Reading package lists⦠Done
Building dependency tree
Reading state information⦠Done
The following packages will be REMOVED:
libmraa-rockpi4*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ⦠75098 files and directories currently installed.)
Removing libmraa-rockpi4 (0.1) ā¦
dpkg: warning: while removing libmraa-rockpi4, directory ā/usr/local/lib/python2.7ā not empty so not removed
linaro@rpi4b:~$
But there doesnāt seem to be any lock.
linaro@rpi4b:~$ sudo lsof /var/lib/dpkg/lock
linaro@rpi4b:~$