Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

Ask Question

I have installed docker on windows 10 pro. I am facing an issue while running the following command in git-bash.

docker-compose up -d --build

and got following error.

E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
(23) Failed writing body
Error executing command, exiting
ERROR: Service 'web' failed to build: The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_8.x | bash' returned a non-zero code: 1
                but what if I get: #0 0.207 E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation even after your advice?
– Dmitriy Ogureckiy
                Feb 17 at 15:51
                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? 
– Dmitriy Ogureckiy
                Apr 6 at 18:33
  

E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

I resolved by using the following commands:

apt-get update
apt-get install gnupg
                Just a note for someone new to docker, add this to your docker file, don't install gnupg on host pc
– FoxMcCloud
                Jul 17, 2018 at 15:49
                +1 for following best practices :: Always combine RUN apt-get update with apt-get install in the same RUN statement.
– Gabe Gates
                Jan 30, 2019 at 20:10
                gnupg is sufficient, gnupg1 is the "classic" version and gnugp2 refers to gnugp for recent distros
– rmuller
                Feb 3, 2020 at 15:26
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.