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?
Run ps command to see which processes are using apt.
# ps aux | grep apt root 3701 0.0 0.0 4628 772 ? Ss 01:17 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily install root 3705 0.0 0.0 4628 1680 ? S 01:17 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held install _apt 3744 0.5 0.4 88960 8560 ? S 01:18 0:00 /usr/lib/apt/methods/http root 3755 0.0 0.0 21536 1000 pts/0 S+ 01:18 0:00 grep --color=auto apt
Kill processes
# kill -9 3701 # kill -9 3705 # kill -9 3744
Check ps# ps aux | grep apt
root 3757 0.0 0.0 21536 1028 pts/0 S+ 01:18 0:00 grep --color=auto aptAfter killing processes and restart apt-get install command I could install packages.
If you have interrupted apt-get session when you install a package you may see an error.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.In this case to continue setup run:
sudo dpkg --configure -a
0 comments:
Post a Comment