E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 爆错解决办法

author  :headsen chen

date : 2019-06-06  10:09:06

root@ubuntu:~# apt-get remove java-1.8.0-openjdk
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
root@ubuntu:
~# rm /var/lib/dpkg/lock
root@ubuntu:~# apt-get remove java-1.8.0-openjdk E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@ubuntu:
~# rm /var/lib/dpkg/updates/* root@ubuntu:~# apt-get remove java-1.8.0-openjdk Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package java-1.8.0-openjdk E: Couldn't find any package by glob 'java-1.8.0-openjdk' E: Couldn't find any package by regex 'java-1.8.0-openjdk'

# 至此:删除完成。
原文地址:https://www.cnblogs.com/kaishirenshi/p/10983418.html