When ever i install a new application using terminal command, i get this error
E: Could not open lock file /var/lib/dpkg/lock - open (21: Is a directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
What I tried is
sudo apt-get update
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo apt-get dist-upgrade
But I cannot solve this. I made a refer to the other answers but it's not finding to workout. Can anyone help? Thanks in advance