development

E : gnupg, gnupg2 및 gnupg1이 설치되지 않은 것 같지만이 작업을 수행하려면 둘 중 하나가 필요합니다.

big-blog 2020. 11. 7. 10:46
반응형

E : gnupg, gnupg2 및 gnupg1이 설치되지 않은 것 같지만이 작업을 수행하려면 둘 중 하나가 필요합니다.


Windows 10 pro에 docker를 설치했습니다. git-bash에서 다음 명령을 실행하는 동안 문제가 발생했습니다.

docker-compose up -d --build

다음 오류가 발생했습니다.

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

어떤 도움이라도 대단히 감사합니다. 미리 감사드립니다.


Dockerfile에서 먼저 다음을 실행하십시오.

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

나는 같은 문제에 직면했다.

E : gnupg, gnupg2 및 gnupg1이 설치되지 않은 것 같지만이 작업을 수행하려면 둘 중 하나가 필요합니다.

다음 명령을 사용하여 해결했습니다.

apt-get update
apt-get install gnupg

기존 답변 외에 :

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

-y 플래그는 설치 프로세스 중 조건에 동의합니다. 빌드를 깨지 않는 것이 중요합니다


나는 데비안 9를 가지고 있으며 이것을 수정하기 위해 다음과 같이 새 라이브러리를 사용했습니다.

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

참고 URL : https://stackoverflow.com/questions/50757647/e-gnupg-gnupg2-and-gnupg1-do-not-seem-to-be-installed-but-one-of-them-is-requ

반응형