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?
Find and kill all apt process which is running.
Ps -A | grep apt
Now kill the process using the below commands
kill -9 processnumber
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
step-3 :- Remove the lock-frontend
sudo rm var/lib/dpkg/lock-frontend
Refer to this link: https://curiousviral.com/unable-to-acquire-dpkg-frontend-lock/