Premise
When you install sudo apt-get install rabbitmq-server, stop somewhere, Ctrl + C doesn't work, kill his process, and when you reinstall Rabbitmq-server, the following error occurs:
ying@shi-pc:~$ sudo apt-get install Rabbitmq-server
E: Unable to get lock/var/lib/dpkg/lock-open (11: Resource is temporarily unavailable)
E: Unable to lock the admin directory (/var/lib/dpkg/), is there another process taking it?
Solving method
Forced unlock
$ sudo rm/var/cache/apt/archives/lock
$ sudo rm/var/lib/dpkg/lock
Install Rabbitmq-server again
$ sudo apt-get install Rabbitmq-server
E:dpkg is interrupted, you must manually run sudo dpkg--configure-a to resolve this issue.
If you follow the prompts, you can
$ sudo dpkg--configure-a
Processing triggers for ureadahead (0.100.0-16) ...
Setting Rabbitmq-server (3.5.2-1) ...
* Starting message Broker Rabbitmq-server
* Message Broker already running
... done.