I'm having the same problem with:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/)
If I find and kill apt, later I can apt-get update but it hangs at this stage:
Get:7
http://deb.debian.org/debian stretch/main DEP-11 64x64 Icons [6,804 kB]
0% [Working]
And it hangs here indefinitely.
I read elsewhere that one should NOT delete the lock (using rm), because it protects from worse things happening, but rather kill the Process. When I search for apt and ftp, there are processes with *progressive* five digit PIDs:
ps aux | grep apt
root 18031 0.0 0.0 4728 812 pts/0 S+ 13:19 0:00 grep apt
root@Workstation:/home/sunny# ps aux | grep apt
root 18033 0.0 0.0 4728 824 pts/0 R+ 13:19 0:00 grep apt
root@Workstation:/home/sunny# ps aux | grep apt
root 18035 0.0 0.0 4728 816 pts/0 S+ 13:19 0:00 grep apt
root@Workstation:/home/sunny# ps aux | grep apt
root 18086 0.0 0.0 4728 812 pts/0 S+ 13:33 0:00 grep apt
When I try to kill these:
killall apt* dpkg
apt*: no process found
dpkg: no process found
Any advice?