Solved – Could not get lock /var/lib/dpkg/lock – open

Ubuntu 16.04中出现如下错误的解决方法

yitian@heron01:~$ sudo apt-get install -y python2.7 wget
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?
yitian@heron01:~$ ps -A | grep apt-get
yitian@heron01:~$ ps -A | grep apt
  1671 ?        00:00:00 apt.systemd.dai
  1675 ?        00:00:00 apt.systemd.dai
yitian@heron01:~$ ps -A | grep apt
  1671 ?        00:00:00 apt.systemd.dai
  1675 ?        00:00:00 apt.systemd.dai
yitian@heron01:~$ sudo kill -9 1671
yitian@heron01:~$ sudo kill -9 1675