Yarn: ヤーンDebianキーの有効期限が更新されました(EXPKEYSIG 23E7166788B63E1E)

作成日 2020年02月02日  ·  30コメント  ·  ソース: yarnpkg/yarn

次のようなエラーが表示された場合:

The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>

またはこのように:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease  The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>

これは、Yarnリリースの署名に使用されるGPGキーの古いバージョンがまだあることを意味します。 このキーの有効期限が2020年から2021年に延長されました。更新されたキーを取得するには、次のコマンドを実行します。

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

これは将来的に自動化される可能性があります。

bug-distrib os-linux

最も参考になるコメント

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.comは、この問題が発生しているさまざまなパッケージのこの問題を修正するためにも機能します

全てのコメント30件

自動化に関しては、ディストリビューションには通常、新しいキーで更新できる-keyringパッケージがありますが、それを調べたいと思いませんか? 例: https

@ dario23ええ、それは私がやろうとしていたことですが、私はそれを

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.comは、この問題が発生しているさまざまなパッケージのこの問題を修正するためにも機能します

ありがとう@alexcdot! このコマンドは、パッケージリポジトリのメンテナが公開鍵をUbuntuキーサーバーにアップロードすることに依存していますが、ほとんどの場合、そうするため、通常は問題になりません:)

ありがとうございました! @alexcdot

_sudo apt-key add -_コマンドの後に何も起こらないのはなぜですか? もう数分待っています。 システムが何かを待っているようです...

image

@Shekelmeコマンドを分割したため、入力を待っています。 コマンドはcurl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -として解釈する必要があります

本当にありがとう、それは今助けになりました!

Debianで1.22.0を利用できるようにする必要がありますか?

@millette申し訳ありませんが、Yarn v1サイトがclassic.yarnpkg.comに移動したときに、自動更新スクリプトが壊れました。 修正して1.22.0をデプロイします!

@millette今すぐ利用できるはずです: https

私のテストマシンの1つでテストしたところ、正常に機能しました。

% sudo apt install yarn
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  yarn
1 upgraded, 0 newly installed, 0 to remove and 323 not upgraded.
Need to get 891 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Get:1 http://dl.yarnpkg.com/debian stable/main amd64 yarn all 1.22.0-1 [891 kB]
Fetched 891 kB in 0s (2,328 kB/s)
Reading changelogs... Done
(Reading database ... 261276 files and directories currently installed.)
Preparing to unpack .../archives/yarn_1.22.0-1_all.deb ...
Unpacking yarn (1.22.0-1) over (1.21.1-1) ...
Setting up yarn (1.22.0-1) ...

15:19 daniel<strong i="9">@vps03</strong> /home/daniel
% yarn --version
1.22.0

私も、 @ Daniel15に感謝し

Windows10のUbuntuでも同じ問題が発生しました
Linux AVPHR-3HD87Y2-L 4.4.0-17134-Microsoft#1130-Microsoft Thu Nov 07 15:21:00 PST 2019 x86_64 x86_64 x86_64 GNU / Linux。

ありがとう@ Daniel15

解決策で解決することをお勧めします。

次のように問題なく更新されました:curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-keyadd-

十分長い間開かれているので、この問題を閉じます。

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.comは、この問題が発生しているさまざまなパッケージのこの問題を修正するためにも機能します

@alexcdotの推奨する修正がタイムアウトした場合は、ポート80を介してhkpを強制してみてください。

sudo apt-key adv --refresh-keys --keyserver hkp://keyserver.ubuntu.com:80

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.comは、この問題が発生しているさまざまなパッケージのこの問題を修正するためにも機能します

このコマンドは、AWS EC2 Ubuntu18.04で驚くほど機能します

ubuntu<strong i="9">@demo</strong>:~$ sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
Executing: /tmp/apt-key-gpghome.yhsIc98R5A/gpg.1.sh --refresh-keys --keyserver keyserver.ubuntu.com
gpg: refreshing 6 keys from hkp://keyserver.ubuntu.com
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: key 871920D1991BC93C: "Ubuntu Archive Automatic Signing Key (2018) <[email protected]>" not changed
gpg: key D94AA3F0EFE21092: 2 duplicate signatures removed
gpg: key D94AA3F0EFE21092: 62 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <[email protected]>" 59 new signatures
gpg: key 3B4FE6ACC0B21F32: 21 signatures not checked due to missing keys
gpg: key 3B4FE6ACC0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <[email protected]>" 18 new signatures
gpg: key 4F4EA0AAE5267A6C: "Launchpad PPA for Ondřej Surý" not changed
gpg: key 4F4EA0AAE5267A6C: "Launchpad PPA for Ondřej Surý" not changed
gpg: key 1646B01B86E50310: 3 signatures not checked due to missing keys
gpg: key 1646B01B86E50310: "Yarn Packaging <[email protected]>" 5 new signatures
gpg: Total number processed: 6
gpg:              unchanged: 3
gpg:         new signatures: 82
Executing: /tmp/apt-key-gpghome.N4svD19CdM/gpg.1.sh --refresh-keys --keyserver keyserver.ubuntu.com:80
gpg: refreshing 11 keys from keyserver.ubuntu.com:80
gpg: keyserver refresh failed: No keyserver available

@joesixpack Ubuntuキーサーバーへの接続に問題があるか、ダウンしています(メンテナンスなど)。 別のキーサーバーを使用してみてください。

その正確なエラーメッセージのためにここに来ました。 Raspbianを使用します。 数分前に@ Daniel15の提案を試したところ、次のようになりました( sudo ):

:~ $ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
gpg: no valid OpenPGP data found.

助言がありますか?

@luisfrochaは、 ca-certificatesパッケージがインストールされていることを確認してください。インストールされていない場合、すべてのSSL / TLS接続が失敗します。

@ Daniel15

:~ $ sudo apt install ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20190110).
0 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.

まあ、私はしたくありませんでしたが、結局私はしなければなりませんでした。 curlコマンドを実行し、 -kフラグを追加しました。これは正常に機能しました。

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.comは、この問題が発生しているさまざまなパッケージのこの問題を修正するためにも機能します

これは私のために働いた。 ありがとう:)

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.comは、この問題が発生しているさまざまなパッケージのこの問題を修正するためにも機能します

ありがとうございました

私は糸をインストールしようとしていますが、重要な問題にも遭遇しています。
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -は、次の出力を提供します。

gpg: invalid key resource URL '/tmp/apt-key-gpghome.gq2UKui5Xm/home:manuelschneid3r.asc.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 76F1A20FF987672F: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 17
gpg:       skipped new keys: 17

次のsudo apt update && sudo apt install yarn出力

W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

私もすでにsudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com試しましたが、同様のエラーが発生しました。

gpg: invalid key resource URL '/tmp/apt-key-gpghome.FtkPocMoE3/home:manuelschneid3r.asc.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 76F1A20FF987672F: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 16
gpg:       skipped new keys: 16

何がうまくいかない可能性があるかについてのアイデアを大いに感謝します。私はパッケージマネージャーの経験があまりなく、上記の提案は役に立たなかったようです。

更新:
申し訳ありませんが、キーエラーは糸ではなく別のパッケージから発生したようです。 今は問題なくインストールされました!

@LukasSchaeferそのエラーのGPGキーはどれも

sudo apt updateから得られる完全な出力は何ですか?

@ Daniel15そのヒントをありがとう。 キーエラーが別のパッケージから発生していることを完全に見逃しました。 このエラーを修正した後、ヤーンは上記のコマンドで問題なくインストールされました。

お詫びします!

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.comは、この問題が発生しているさまざまなパッケージのこの問題を修正するためにも機能します

それは私のために働きます。 ありがとうございました!

私も修正しました。解決策をわざわざチェックするのに少し時間がかかりました。 THX!

このページは役に立ちましたか?
0 / 5 - 0 評価