E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
solution:
To install or uninstall any software using non root user, you have to use sudo in your command.
for example, if I want to uninstall firefox, after finding the firefox packages, using command like this:
sudo apt-get purge firefox firefox-locale-en firefox-locale-zh-hans