E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)

0 votes

Hello Everyone,

I am trying to install software in my Docker container. But it is showing me the below error.

jenkins@f3460123b771:/root/.kube$ apt-get install apache2
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?


How can I solve this error?

Jun 6 in Docker by akhtar
• 14,590 points
152 views

1 answer to this question.

0 votes

Hi@akhtar,

To install any software using non root user, you have to use sudo in your command. Use the below given command.

jenkins@f3460123b771:/root/.kube$ sudo apt-get install apache2
answered Jun 6 by MD
• 32,730 points

Related Questions In Docker

0 votes
6 answers

docker: executable file not found in $PATH

file not found in $PATH READ MORE

answered May 9, 2019 in Docker by anonymous
22,839 views
0 votes
1 answer

docker missing var/lib/docker folder

Try restarting docker systemctl restart docker or sudo service docker ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 51,890 points
1,189 views
0 votes
1 answer
0 votes
1 answer

Init could not choose ip address error while doing docker swarm init

First look for the public IP of ...READ MORE

answered Aug 23, 2018 in Docker by Nilesh
• 6,970 points
707 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,530 points
604 views
0 votes
1 answer
0 votes
1 answer