Trying apt upgrade / Ubuntu MATE


I am trying to update the Ubuntu MATE image (2017-11-28-ubuntu-16.04-mate-desktop-bpi-r2-sd-emmc.img). It booted up really well and looks nice.

But when I try to do ‘apt upgrade -y’, as root, I get this error message:

pi@bpi-iot-ros-ai:~$ sudo apt upgrade 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?

I was able to do yum update -y with no problem – is there something else I need to do?

ta, t.

I have the same problem, but after a reboot it was resolved.

Hi, I’d just deleted the file and then, the upgrade is working again. So type in the following command: rm -f /var/lib/dpkg/lock That’s it.

thanks guys!

What I did was very simple – I just did a ps aux | grep apt and I saw the thing was locked by another program doing an update. I just did a kill -9, and I was able to proceed.

Since my banana pi learning curve has been a big one – I thought I did something wrong again!