解決E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)錯誤
當在使用 synaptic 發生錯誤如下時: openstack@ubuntu:~$ sudo apt-get install vim 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? 解決方法如下 openstack@ubuntu:~$ ps aux | grep apt root 1290 0.0 0.0 4504 740 ? Ss 17:55 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily update root 1301 0.0 0.0 4504 1660 ? S 17:55 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held update root 2531 0.5 2.6 297344 104620 ? SNl 18:01 0:02 /usr/bin/python3 /usr/sbin/aptd _apt 2552 3.0 0.1 52416 5708 ? R 18:02 0:12 /usr/lib/apt/methods/http opensta+ 3299 0.0 0.0 21292 936 pts/1 R+ 18:09 0:00 grep --color=auto apt openstack@ubuntu:~$ sudo kill 1290 openstack@ubuntu:~$ sudo kill 1301 openstack@ubuntu:~$ sudo rm /var/lib/dpkg/lock 參考資料