树莓派4B解决:
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 2796 (unattended-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it
查看进程
ps -aux
结束报错里面的进程
sudo kill -9 2796
重新安装
sudo apt-get install libmagickcore-dev