git-2_update_repo: can't update from git@github.comとか言われた時

多分運用でこれでアップデート出来るから だけだと詰まる時もあるかと思ってメモ

こんな感じでエラーが出た時

[code lang=text] astel@r01 ~ $ sudo emerge -vq hoge-server

  • IMPORTANT: 1 news items need reading for repository 'gentoo'.
  • Use eselect news read to view new items.

>>> Verifying ebuild manifests >>> Emerging (1 of 2) dev-java/sbt-bin-0.13.7::astel-experimental >>> Installing (1 of 2) dev-java/sbt-bin-0.13.7::astel-experimental >>> Emerging (2 of 2) test/hoge-server-9999::astel-products >>> Jobs: 1 of 2 complete, 1 running Load avg: 0.08, 0.03, 0.05The authenticity of host 'github.com (999.000.252.129)' can't be established. RSA key fingerprint is SHA256:321890382138912309128RomTxdCARLviKw6E5SY8. >>> Jobs: 1 of 2 complete, 1 running Load avg: 0.00, 0.01, 0.05 >>> Failed to emerge test/hoge-server-9999, Log file: >>> '/var/tmp/portage/test/hoge-server-9999/temp/build.log' >>> Jobs: 1 of 2 complete, 1 failed Load avg: 0.08, 0.03, 0.05 * Package: test/hoge-server-9999 * Repository: astel-products * USE: abi_x86_64 amd64 autoclean elibc_glibc kernel_linux symlink userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox Host key verification failed. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. * ERROR: test/hoge-server-9999::astel-products failed (unpack phase): * git-2_update_repo: can't update from git@github.com:test-develop/hogetion.git * * Call stack: * ebuild.sh, line 93: Called src_unpack * environment, line 2735: Called git-2_src_unpack * environment, line 1914: Called git-2_fetch * environment, line 1733: Called git-2_update_repo * environment, line 1972: Called die * The specific snippet of code: * -n ${EGIT_REPO_URI_SELECTED} || die "${FUNCNAME}: can't update from ${EGIT_REPO_URI}" * * If you need support, post the output of emerge --info '=test/hoge-server-9999::astel-products', * the complete build log and the output of emerge -pqv '=test/hoge-server-9999::astel-products'. * The complete build log is located at '/var/tmp/portage/test/hoge-server-9999/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/test/hoge-server-9999/temp/environment'. * Working directory: '/usr/portage/distfiles/egit-src/hogetion.git' * S: '/var/tmp/portage/test/hoge-server-9999/work/hoge-server-9999'

  • Messages for package test/hoge-server-9999:

  • ERROR: test/hoge-server-9999::astel-products failed (unpack phase):

  • git-2_update_repo: can't update from git@github.com:test-develop/hogetion.git *
  • Call stack:
  • ebuild.sh, line 93: Called src_unpack
  • environment, line 2735: Called git-2_src_unpack
  • environment, line 1914: Called git-2_fetch
  • environment, line 1733: Called git-2_update_repo
  • environment, line 1972: Called die
  • The specific snippet of code:
  •  [[ -n ${EGIT_REPO_URI_SELECTED} ]] || die "${FUNCNAME}: can't update from ${EGIT_REPO_URI}"
    

    *

  • If you need support, post the output of emerge --info '=test/hoge-server-9999::astel-products',
  • the complete build log and the output of emerge -pqv '=test/hoge-server-9999::astel-products'.
  • The complete build log is located at '/var/tmp/portage/test/hoge-server-9999/temp/build.log'.
  • The ebuild environment file is located at '/var/tmp/portage/test/hoge-server-9999/temp/environment'.
  • Working directory: '/usr/portage/distfiles/egit-src/hogetion.git'
  • S: '/var/tmp/portage/test/hoge-server-9999/work/hoge-server-9999'

  • IMPORTANT: 1 news items need reading for repository 'gentoo'.

  • Use eselect news read to view new items. [/code]

これはgitに接続できないって言ってる 初回接続時はyesと答えるやつがあるのでそれができてない そもそも出ない

emerge -q というオプションをつけているから省略されてしまっている emerge -av などのオプションを使って初回は構築しよう ユーザが変わるとまたこれに引っかかる可能性があったのでメモしておきます