Documentation on fix issue for nltk,nltkdata

To fix the issued and resolve to install nltk and nltk data

Unable to acquire dpkg fronted lock (/var/lib/dpkg/lock-fronted), is another process using it.

 sudo apt-get install python-nltk

E: Could not get lock /var/lib/dpkg/lock-frontend – open (11: Resource temporarily unavailable)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

Step-1

Find and kill all apt process which is running.

               Ps -A | grep apt

Now kill the process using the below commands

             kill -9 processnumber

                                or

             kill -9 SIGKILL processnumber

use this commad,

nltk-> sudo apt-get install python-nltk

nltk data-> sudo python -m nltk.downloader -d /usr/share/nltk_data all

step-2:- Check the location of lock-frontend

ls varlib/dpkg/

step-3 :- Remove the lock-frontend

sudo rm var/lib/dpkg/lock-frontend

step-4:- Verify

ls /var/lib/dpkg/

Refer to this link:  https://curiousviral.com/unable-to-acquire-dpkg-frontend-lock/