apt-get struck so I killed apt-get using kill command and now when I use apt-get I receive a message "Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)".

Problem:

apt-get struck so I killed apt-get using kill command and now when I use apt-get I receive a messag:
Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)"
 

Solution:

Run the following command:
rm /var/lib/dpkg/lock
dpkg --configure -a