nasri@ubuntu:~/work/runninglinuxkernel_4.0$ ps -A | grep apt
2427 ? 00:00:00 apt.systemd.dai
2431 ? 00:00:00 apt.systemd.dai
nasri@ubuntu:~/work/runninglinuxkernel_4.0$ sudo kill -9 2427
nasri@ubuntu:~/work/runninglinuxkernel_4.0$ sudo kill -9 2431
使用sudo kill -9 kill掉对应的进程
这样还是不行
然后尝试直接删掉lock文件就可以了
nasri@ubuntu:~/work/runninglinuxkernel_4.0$ sudo rm /var/lib/dpkg/lock