Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

People also ask

Where is Gnupg installed?

You will need a program that reads Zip files to unpack the compressed file. Unzip the contents of the compressed file into a new folder called gnupg under your C: drive (c:\gnupg is the default location).

What is the difference between GPG and GPG2?

GPG2 is extended version of GPG. Where changes are mostly in internal levels, thus commands are same. A major change between GPG and GPG2 is that all the crypto operations have been moved to the GPG agent, so without an agent, GPG2 can't work.


In your Dockerfile, run this first:

apt-get update && apt-get install -y gnupg2

or

apt-get update && apt-get install -y gnupg

I faced the same issue:

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

In addition to existing answers:

RUN apt-get update && apt-get install -y gnupg

-y flag agrees to terms during installation process. It is important not to break the build


I have debian 9 and to fix this i used the new library as follows:

ln -s /usr/bin/gpgv /usr/bin/gnupg2