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, 2020 in Docker by akhtar
• 38,260 points
14,584 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, 2020 by MD
• 95,460 points

Related Questions In Docker

+2 votes
2 answers
0 votes
7 answers

docker: executable file not found in $PATH

try to build the image with --no-cache. I ...READ MORE

answered Nov 1, 2020 in Docker by Deeptesh Agrawal
67,557 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
• 52,340 points
8,560 views
0 votes
1 answer

Docker image of maven returns this error - could not create local repository

Instead of mounting the root/.m2 folder to ...READ MORE

answered Aug 10, 2018 in Docker by Sophie may
• 10,620 points
7,417 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,818 views
0 votes
1 answer

mkdir: cannot create directory '/var/lib/grafana/plugins': Permission denied

Hi@akhtar, You are getting this error because Grafana ...READ MORE

answered Sep 7, 2020 in Docker by MD
• 95,460 points
20,108 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP