When I ran this command:
sudo apt install openjdk-8-jre-headless
I keep getting this:
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?