[이 문서는 계속 업데이트 됩니다.]

워우... 해결

 

brew install gnupg

git config --global gpg.program $(which gpg)\n

gpg --list-secret-keys

git config --global user.signingkey 3F8DB12A018BF1B85B18

 

================================================= previous

gpg --gen-key

gpg: directory '/Users/junhoha/.gnupg' created

Note: Use "gpg --full-generate-key" for a full featured key generation dialog.

 

Real name: hajunho

Email address: mynameis@hajunho.com

You selected this USER-ID:

    "hajunho <mynameis@hajunho.com>"

 

Change (N)ame, (E)mail, or (O)kay/(Q)uit? O

We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy. We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy. gpg: /Users/junhoha/.gnupg/trustdb.gpg: trustdb created gpg: directory '/Users/junhoha/.gnupg/openpgp-revocs.d' created ......

 

gpg --list-secret-keys

git config --global user.signingkey

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/9b/fhn_5f0d63d4dv3lr2ggtd2m0000gn/T/SourceTreeTemp.Av5Ly5 -a 

error: gpg failed to sign the data

fatal: failed to write commit object

Completed with errors, see above

brew 로 파이썬 업그레이드 했는데 잘 사용하던 gpg가 망가지네.

GPG 오류가 갑자기 발생하는 것은 다음과 같은 이유 때문일 수 있습니다.

  1. GPG 키 만료:
    • GPG 키에는 만료 기간이 설정되어 있을 수 있습니다. 키가 만료되면 더 이상 유효하지 않아 서명에 사용할 수 없습니다.
    • gpg --list-keys를 실행하여 키의 만료 날짜를 확인하고, 필요한 경우 키를 갱신하거나 새로운 키를 생성해야 합니다.
  2. GPG 에이전트 문제:
    • GPG 에이전트가 예기치 않게 종료되거나 다시 시작되면 오류가 발생할 수 있습니다.
    • GPG 에이전트를 수동으로 다시 시작하거나 시스템을 재부팅하여 문제를 해결할 수 있습니다.
  3. 시스템 환경 변경:
    • 최근에 시스템 업데이트, 소프트웨어 설치 또는 구성 변경 등이 있었다면 GPG 설정에 영향을 미쳤을 수 있습니다.
    • 시스템 변경 사항을 검토하고 GPG 관련 설정을 확인해야 합니다.
  4. Git 구성 변경:
    • Git 설정이 변경되어 GPG 서명이 갑자기 활성화되었을 수 있습니다.
    • git config --global commit.gpgsign을 실행하여 Git의 GPG 서명 설정을 확인하고, 필요한 경우 git config --global commit.gpgsign false로 비활성화할 수 있습니다.
  5. GPG 버전 호환성 문제:
    • 시스템에 여러 버전의 GPG가 설치되어 있거나 최근에 GPG 버전을 업그레이드한 경우 호환성 문제가 발생할 수 있습니다.
    • 설치된 GPG 버전을 확인하고 Git 구성에서 올바른 GPG 실행 파일을 가리키는지 확인해야 합니다.

문제를 해결하려면 다음 단계를 시도해 볼 수 있습니다:

  1. GPG 키 확인:
    • gpg --list-secret-keys를 실행하여 만료되지 않은 유효한 GPG 키가 있는지 확인합니다.
    • 필요한 경우 키를 갱신하거나 새로운 키를 생성합니다.
  2. GPG 에이전트 재시작:
    • GPG 에이전트를 종료하고 다시 시작합니다.
    • 예를 들어, gpgconf --kill gpg-agent를 실행한 다음 gpg-agent --daemon을 실행하여 에이전트를 수동으로 시작할 수 있습니다.
  3. Git 구성 확인:
    • git config --global --list를 실행하여 Git의 GPG 관련 설정을 확인합니다.
    • 필요한 경우 git config --global commit.gpgsign false를 사용하여 GPG 서명을 일시적으로 비활성화할 수 있습니다.
  4. 시스템 재부팅:
    • 간단한 해결책으로 시스템을 재부팅하여 GPG 에이전트와 관련 서비스를 초기화할 수 있습니다.

 

===== 화사첨족 ======

What are the things you can't live without and the things you can live without?

 
 

gpg 에러 다른 방법 시도.

brew install gpg1

brew reinstall gnupg@1.4

git config --global commit.gpgsign true 

git config --global gpg.program gpg1

export GPG_TTY=$(tty)\n

echo "test" | gpg --clearsign

git config -l | grep gpg                      

commit.gpgsign=true

gpg.program=gpg1

brew upgrade gnupg gnupg2 pinentry-mac

git config --global user.signingkey xxxxxxxxxxx

git config --global commit.gpgsign true

git config --global gpg.program gpg\n

git commit --amend --no-edit -S     

error: cannot run gpgn: No such file or directory

error: gpg failed to sign the data

fatal: failed to write commit object

 

 

'{Infra} Server Setting' 카테고리의 다른 글

ubuntu 22.04 와 자바  (0) 2019.02.02
서버 인프라 담당자 모집에 대한 고찰  (0) 2019.01.31
cartoon face service setting  (0) 2019.01.27
freeRTOS 컴파일  (0) 2019.01.27
리눅스 커널 컴파일  (0) 2019.01.26

+ Recent posts